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

Unified Diff: media/audio/linux/alsa_input.h

Issue 8818012: Remove the AudioManager singleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Made ResourceContext::audio_manager() abide the same rules as other accessors Created 9 years 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
Index: media/audio/linux/alsa_input.h
===================================================================
--- media/audio/linux/alsa_input.h (revision 113173)
+++ media/audio/linux/alsa_input.h (working copy)
@@ -16,6 +16,7 @@
#include "media/audio/audio_parameters.h"
class AlsaWrapper;
+class AudioManagerLinux;
// Provides an input stream for audio capture based on the ALSA PCM interface.
// This object is not thread safe and all methods should be invoked in the
@@ -29,7 +30,8 @@
// Create a PCM Output stream for the ALSA device identified by
// |device_name|. If unsure of what to use for |device_name|, use
// |kAutoSelectDevice|.
- AlsaPcmInputStream(const std::string& device_name,
+ AlsaPcmInputStream(AudioManagerLinux* audio_manager,
+ const std::string& device_name,
const AudioParameters& params,
AlsaWrapper* wrapper);
virtual ~AlsaPcmInputStream();
@@ -54,6 +56,7 @@
// Utility function for talking with the ALSA API.
snd_pcm_sframes_t GetCurrentDelay();
+ AudioManagerLinux* audio_manager_;
scherkus (not reviewing) 2011/12/09 22:47:30 document that this is not reffed?
tommi (sloooow) - chröme 2011/12/10 00:11:14 Done.
std::string device_name_;
AudioParameters params_;
int bytes_per_packet_;

Powered by Google App Engine
This is Rietveld 408576698