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

Side by Side Diff: media/audio/win/audio_manager_win.h

Issue 17401: Low level windows audio support (part 1 of 2)... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « media/audio/audio_output.h ('k') | media/audio/win/audio_output_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « media/audio/audio_output.h ('k') | media/audio/win/audio_output_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698