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

Unified Diff: media/audio/openbsd/audio_manager_openbsd.cc

Issue 3301007: Fixed OpenBSD build. (Closed)
Patch Set: - Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/openbsd/audio_manager_openbsd.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/openbsd/audio_manager_openbsd.cc
diff --git a/media/audio/openbsd/audio_manager_openbsd.cc b/media/audio/openbsd/audio_manager_openbsd.cc
index c2c7b98ee40813ad3107a3f55f61db596ed93268..251a085c18101521979710e5ecd5e504812728ae 100644
--- a/media/audio/openbsd/audio_manager_openbsd.cc
+++ b/media/audio/openbsd/audio_manager_openbsd.cc
@@ -21,21 +21,15 @@ bool AudioManagerOpenBSD::HasAudioInputDevices() {
return false;
}
-AudioInputStream* AudioManagerOpenBSD::MakeAudioInputStream(
- Format format,
- int channels,
- int sample_rate,
- char bits_per_sample,
- uint32 samples_per_packet) {
+AudioOutputStream* AudioManagerOpenBSD::MakeAudioOutputStream(
+ AudioParameters params) {
NOTIMPLEMENTED();
return NULL;
}
-AudioOutputStream* AudioManagerOpenBSD::MakeAudioOutputStream(
- Format format,
- int channels,
- int sample_rate,
- char bits_per_sample) {
+AudioInputStream* AudioManagerOpenBSD::MakeAudioInputStream(
+ AudioParameters params,
+ uint32 samples_per_packet) {
NOTIMPLEMENTED();
return NULL;
}
@@ -58,20 +52,6 @@ void AudioManagerOpenBSD::UnMuteAll() {
NOTIMPLEMENTED();
}
-void DestroyAudioManagerOpenBSD(void* not_used) {
- delete g_audio_manager;
- g_audio_manager = NULL;
-}
-
-AudioManager* AudioManager::GetAudioManager() {
- if (!g_audio_manager) {
- g_audio_manager = new AudioManagerOpenBSD();
- g_audio_manager->Init();
- base::AtExitManager::RegisterCallback(&DestroyAudioManagerOpenBSD, NULL);
- }
- return g_audio_manager;
-}
-
// static
AudioManager* AudioManager::CreateAudioManager() {
return new AudioManagerOpenBSD();
« no previous file with comments | « media/audio/openbsd/audio_manager_openbsd.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698