Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(762)

Side by Side Diff: media/audio/audio_output_stream_sink.h

Issue 2060833002: Implementation of 'AudioContext.getOutputTimestamp' method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implementation of 'AudioContext.getOutputTimestamp' method Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_STREAM_SINK_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_STREAM_SINK_H_
6 #define MEDIA_AUDIO_AUDIO_OUTPUT_STREAM_SINK_H_ 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_STREAM_SINK_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 26 matching lines...) Expand all
37 void Start() override; 37 void Start() override;
38 void Stop() override; 38 void Stop() override;
39 void Pause() override; 39 void Pause() override;
40 void Play() override; 40 void Play() override;
41 bool SetVolume(double volume) override; 41 bool SetVolume(double volume) override;
42 OutputDeviceInfo GetOutputDeviceInfo() override; 42 OutputDeviceInfo GetOutputDeviceInfo() override;
43 43
44 // AudioSourceCallback implementation. 44 // AudioSourceCallback implementation.
45 int OnMoreData(AudioBus* dest, 45 int OnMoreData(AudioBus* dest,
46 uint32_t total_bytes_delay, 46 uint32_t total_bytes_delay,
47 uint32_t frames_skipped) override; 47 uint32_t frames_skipped,
48 const AudioTimestamp& timestamp) override;
48 void OnError(AudioOutputStream* stream) override; 49 void OnError(AudioOutputStream* stream) override;
49 50
50 private: 51 private:
51 ~AudioOutputStreamSink() override; 52 ~AudioOutputStreamSink() override;
52 void ClearCallback(); 53 void ClearCallback();
53 54
54 // Helper methods for running AudioManager methods on the audio thread. 55 // Helper methods for running AudioManager methods on the audio thread.
55 void DoStart(const AudioParameters& params); 56 void DoStart(const AudioParameters& params);
56 void DoStop(); 57 void DoStop();
57 void DoPause(); 58 void DoPause();
(...skipping 23 matching lines...) Expand all
81 82
82 // The actual AudioOutputStream, must only be accessed on the audio thread. 83 // The actual AudioOutputStream, must only be accessed on the audio thread.
83 AudioOutputStream* stream_; 84 AudioOutputStream* stream_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(AudioOutputStreamSink); 86 DISALLOW_COPY_AND_ASSIGN(AudioOutputStreamSink);
86 }; 87 };
87 88
88 } // namepace media 89 } // namepace media
89 90
90 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_STREAM_SINK_H_ 91 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_STREAM_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698