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

Side by Side Diff: media/audio/mac/audio_low_latency_output_mac.h

Issue 8520033: Add OVERRIDE to media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « media/audio/fake_audio_output_stream.h ('k') | media/audio/mac/audio_output_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Implementation notes: 5 // Implementation notes:
6 // 6 //
7 // - It is recommended to first acquire the native sample rate of the default 7 // - It is recommended to first acquire the native sample rate of the default
8 // output device and then use the same rate when creating this object. 8 // output device and then use the same rate when creating this object.
9 // Use AUAudioOutputStream::HardwareSampleRate() to retrieve the sample rate. 9 // Use AUAudioOutputStream::HardwareSampleRate() to retrieve the sample rate.
10 // - Calling Close() also leads to self destruction. 10 // - Calling Close() also leads to self destruction.
(...skipping 21 matching lines...) Expand all
32 public: 32 public:
33 // The ctor takes all the usual parameters, plus |manager| which is the 33 // The ctor takes all the usual parameters, plus |manager| which is the
34 // the audio manager who is creating this object. 34 // the audio manager who is creating this object.
35 AUAudioOutputStream(AudioManagerMac* manager, 35 AUAudioOutputStream(AudioManagerMac* manager,
36 const AudioParameters& params); 36 const AudioParameters& params);
37 // The dtor is typically called by the AudioManager only and it is usually 37 // The dtor is typically called by the AudioManager only and it is usually
38 // triggered by calling AudioOutputStream::Close(). 38 // triggered by calling AudioOutputStream::Close().
39 virtual ~AUAudioOutputStream(); 39 virtual ~AUAudioOutputStream();
40 40
41 // Implementation of AudioOutputStream. 41 // Implementation of AudioOutputStream.
42 virtual bool Open(); 42 virtual bool Open() OVERRIDE;
43 virtual void Close(); 43 virtual void Close() OVERRIDE;
44 virtual void Start(AudioSourceCallback* callback); 44 virtual void Start(AudioSourceCallback* callback) OVERRIDE;
45 virtual void Stop(); 45 virtual void Stop() OVERRIDE;
46 virtual void SetVolume(double volume); 46 virtual void SetVolume(double volume) OVERRIDE;
47 virtual void GetVolume(double* volume); 47 virtual void GetVolume(double* volume) OVERRIDE;
48 48
49 static double HardwareSampleRate(); 49 static double HardwareSampleRate();
50 50
51 private: 51 private:
52 // DefaultOutputUnit callback. 52 // DefaultOutputUnit callback.
53 static OSStatus InputProc(void* user_data, 53 static OSStatus InputProc(void* user_data,
54 AudioUnitRenderActionFlags* flags, 54 AudioUnitRenderActionFlags* flags,
55 const AudioTimeStamp* time_stamp, 55 const AudioTimeStamp* time_stamp,
56 UInt32 bus_number, 56 UInt32 bus_number,
57 UInt32 number_of_frames, 57 UInt32 number_of_frames,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Volume level from 0 to 1. 90 // Volume level from 0 to 1.
91 float volume_; 91 float volume_;
92 92
93 // Fixed playout hardware latency in frames. 93 // Fixed playout hardware latency in frames.
94 double hardware_latency_frames_; 94 double hardware_latency_frames_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(AUAudioOutputStream); 96 DISALLOW_COPY_AND_ASSIGN(AUAudioOutputStream);
97 }; 97 };
98 98
99 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_OUTPUT_MAC_H_ 99 #endif // MEDIA_AUDIO_MAC_AUDIO_LOW_LATENCY_OUTPUT_MAC_H_
OLDNEW
« no previous file with comments | « media/audio/fake_audio_output_stream.h ('k') | media/audio/mac/audio_output_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698