Chromium Code Reviews

Side by Side Diff: media/audio/openbsd/audio_manager_openbsd.cc

Issue 2966005: Add recording capability to AudioManager, and implemented on windows using the WaveIn APIs. (Closed)
Patch Set: Patch Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "media/audio/openbsd/audio_manager_openbsd.h" 5 #include "media/audio/openbsd/audio_manager_openbsd.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace { 10 namespace {
11 AudioManagerOpenBSD* g_audio_manager = NULL; 11 AudioManagerOpenBSD* g_audio_manager = NULL;
12 } // namespace 12 } // namespace
13 13
14 // Implementation of AudioManager. 14 // Implementation of AudioManager.
15 bool AudioManagerOpenBSD::HasAudioOutputDevices() { 15 bool AudioManagerOpenBSD::HasAudioOutputDevices() {
16 NOTIMPLEMENTED(); 16 NOTIMPLEMENTED();
17 return false; 17 return false;
18 } 18 }
19 19
20 bool AudioManagerOpenBSD::HasAudioInputDevices() {
21 NOTIMPLEMENTED();
22 return false;
23 }
24
25 AudioInputStream* AudioManagerOpenBSD::MakeAudioInputStream(
26 Format format,
27 int channels,
28 int sample_rate,
29 char bits_per_sample,
30 uint32 samples_per_packet) {
31 NOTIMPLEMENTED();
32 return NULL;
33 }
34
20 AudioOutputStream* AudioManagerOpenBSD::MakeAudioOutputStream( 35 AudioOutputStream* AudioManagerOpenBSD::MakeAudioOutputStream(
21 Format format, 36 Format format,
22 int channels, 37 int channels,
23 int sample_rate, 38 int sample_rate,
24 char bits_per_sample) { 39 char bits_per_sample) {
25 NOTIMPLEMENTED(); 40 NOTIMPLEMENTED();
26 return NULL; 41 return NULL;
27 } 42 }
28 43
29 AudioManagerOpenBSD::AudioManagerOpenBSD() { 44 AudioManagerOpenBSD::AudioManagerOpenBSD() {
(...skipping 19 matching lines...)
49 } 64 }
50 65
51 AudioManager* AudioManager::GetAudioManager() { 66 AudioManager* AudioManager::GetAudioManager() {
52 if (!g_audio_manager) { 67 if (!g_audio_manager) {
53 g_audio_manager = new AudioManagerOpenBSD(); 68 g_audio_manager = new AudioManagerOpenBSD();
54 g_audio_manager->Init(); 69 g_audio_manager->Init();
55 base::AtExitManager::RegisterCallback(&DestroyAudioManagerOpenBSD, NULL); 70 base::AtExitManager::RegisterCallback(&DestroyAudioManagerOpenBSD, NULL);
56 } 71 }
57 return g_audio_manager; 72 return g_audio_manager;
58 } 73 }
OLDNEW
« no previous file with comments | « media/audio/openbsd/audio_manager_openbsd.h ('k') | media/audio/win/audio_input_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine