OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_WIN_H_ |
| 6 #define MEDIA_AUDIO_AUDIO_MANAGER_WIN_H_ |
| 7 |
| 8 #include <windows.h> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "media/audio/audio_output.h" |
| 12 |
| 13 class PCMWaveOutAudioOutputStream; |
| 14 class AudioOutputStreamMockWin; |
| 15 |
| 16 // Windows implementation of the AudioManager singleton. This class is internal |
| 17 // to the audio output and only internal users can call methods not exposed by |
| 18 // the AudioManager class. |
| 19 class AudioManagerWin : public AudioManager { |
| 20 public: |
| 21 AudioManagerWin() {} |
| 22 // Implementation of AudioManager. |
| 23 virtual AudioOutputStream* MakeAudioStream(Format format, int channels, |
| 24 int sample_rate, |
| 25 char bits_per_sample); |
| 26 virtual void MuteAll(); |
| 27 virtual void UnMuteAll(); |
| 28 virtual const void* GetLastMockBuffer(); |
| 29 |
| 30 // Windows-only methods to free a stream created in MakeAudioStream. These |
| 31 // are called internally by the audio stream when it has been closed. |
| 32 void ReleaseStream(PCMWaveOutAudioOutputStream* stream); |
| 33 void ReleaseStream(AudioOutputStreamMockWin* stream); |
| 34 |
| 35 private: |
| 36 virtual ~AudioManagerWin(); |
| 37 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); |
| 38 }; |
| 39 |
| 40 #endif // MEDIA_AUDIO_AUDIO_MANAGER_WIN_H_ |
| 41 |
OLD | NEW |