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

Unified Diff: media/audio/pulse/pulse_output.cc

Issue 129793012: Implement hook to change audio output device for PulseAudio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build error. Created 6 years, 10 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/pulse/pulse_output.h ('k') | media/audio/pulse/pulse_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/pulse/pulse_output.cc
diff --git a/media/audio/pulse/pulse_output.cc b/media/audio/pulse/pulse_output.cc
index bfa963f0b8dc5901d83713bbe9573af89cdaf17c..a67ee7f74106572f0bd6eda3ef38d69b299a63b9 100644
--- a/media/audio/pulse/pulse_output.cc
+++ b/media/audio/pulse/pulse_output.cc
@@ -39,8 +39,10 @@ void PulseAudioOutputStream::StreamRequestCallback(pa_stream* s, size_t len,
}
PulseAudioOutputStream::PulseAudioOutputStream(const AudioParameters& params,
+ const std::string& device_id,
AudioManagerBase* manager)
: params_(params),
+ device_id_(device_id),
manager_(manager),
pa_context_(NULL),
pa_mainloop_(NULL),
@@ -64,7 +66,7 @@ PulseAudioOutputStream::~PulseAudioOutputStream() {
bool PulseAudioOutputStream::Open() {
DCHECK(manager_->GetTaskRunner()->BelongsToCurrentThread());
return pulse::CreateOutputStream(&pa_mainloop_, &pa_context_, &pa_stream_,
- params_, &StreamNotifyCallback,
+ params_, device_id_, &StreamNotifyCallback,
&StreamRequestCallback, this);
}
« no previous file with comments | « media/audio/pulse/pulse_output.h ('k') | media/audio/pulse/pulse_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698