diff options
author | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-14 08:16:50 +0000 |
---|---|---|
committer | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-14 08:16:50 +0000 |
commit | 9fb3102a8332d0c49dc5c49733b7eb13c1d2a0b8 (patch) | |
tree | e6b0b0e3511933d9ee8405cce8f26d7e15f30319 /media/audio/mac/audio_manager_mac.h | |
parent | eee3452dafdca8a97fa73ea466b6621dcff77238 (diff) | |
download | chromium_src-9fb3102a8332d0c49dc5c49733b7eb13c1d2a0b8.zip chromium_src-9fb3102a8332d0c49dc5c49733b7eb13c1d2a0b8.tar.gz chromium_src-9fb3102a8332d0c49dc5c49733b7eb13c1d2a0b8.tar.bz2 |
Add recording capability to AudioManager, and implemented on windows using the WaveIn APIs.
Implementation for other platforms will follow in future patches.
Also includes a unit test.
BUG=none
TEST=no user visible change yet, just adding audio recording backend.
Review URL: http://codereview.chromium.org/2966005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52292 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/mac/audio_manager_mac.h')
-rw-r--r-- | media/audio/mac/audio_manager_mac.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/media/audio/mac/audio_manager_mac.h b/media/audio/mac/audio_manager_mac.h index 492481d..c05e092 100644 --- a/media/audio/mac/audio_manager_mac.h +++ b/media/audio/mac/audio_manager_mac.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -19,9 +19,14 @@ class AudioManagerMac : public AudioManager { // Implementation of AudioManager. virtual bool HasAudioOutputDevices(); + virtual bool HasAudioInputDevices(); virtual AudioOutputStream* MakeAudioOutputStream(Format format, int channels, int sample_rate, char bits_per_sample); + virtual AudioInputStream* MakeAudioInputStream(Format format, int channels, + int sample_rate, + char bits_per_sample, + uint32 samples_per_packet); virtual void MuteAll(); virtual void UnMuteAll(); |