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

Unified Diff: media/audio/pulse/pulse_input.h

Issue 1711823004: Let default device in PulseAudio be the system default device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | media/audio/pulse/pulse_input.cc » ('j') | media/audio/pulse/pulse_input.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/pulse/pulse_input.h
diff --git a/media/audio/pulse/pulse_input.h b/media/audio/pulse/pulse_input.h
index e0b2be9e2ef31134f7680b59e82956708844ca7f..901d71f02d18d9345c195433c6133d3a764f2825 100644
--- a/media/audio/pulse/pulse_input.h
+++ b/media/audio/pulse/pulse_input.h
@@ -15,6 +15,7 @@
#include "media/audio/audio_device_name.h"
#include "media/audio/audio_io.h"
#include "media/audio/audio_parameters.h"
+#include "media/audio/pulse/pulse_util.h"
Henrik Grunell 2016/03/07 11:37:17 Is this needed?
rchtara 2016/03/08 17:28:16 Done.
#include "media/base/audio_block_fifo.h"
namespace media {
@@ -52,6 +53,16 @@ class PulseAudioInputStream : public AgcAudioStream<AudioInputStream> {
int error,
void* user_data);
+ // pa_context_get_server_info callback. It's used by
+ // UseSystemDefaultInputDevice to set |device_name_| to the
+ // default system input device.
+ static void UseSystemDefaultInputDeviceCallback(pa_context* context,
+ const pa_server_info* info,
+ void* user_data);
+
+ // Use default system input device for the input stream.
+ void UseSystemDefaultInputDevice();
+
// Helper for the ReadCallback.
void ReadData();
« no previous file with comments | « no previous file | media/audio/pulse/pulse_input.cc » ('j') | media/audio/pulse/pulse_input.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698