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

Side by Side Diff: media/audio/pulse/pulse_util.h

Issue 1317033006: Linux: Do not use a hard coded app name for PulseAudio output. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « media/audio/pulse/pulse_output.cc ('k') | media/audio/pulse/pulse_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef MEDIA_AUDIO_PULSE_PULSE_UTIL_H_ 5 #ifndef MEDIA_AUDIO_PULSE_PULSE_UTIL_H_
6 #define MEDIA_AUDIO_PULSE_PULSE_UTIL_H_ 6 #define MEDIA_AUDIO_PULSE_PULSE_UTIL_H_
7 7
8 #include <pulse/pulseaudio.h> 8 #include <pulse/pulseaudio.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // Create a playback stream for the threaded mainloop, return true if success, 64 // Create a playback stream for the threaded mainloop, return true if success,
65 // otherwise false. This function will create a new Pulse threaded mainloop, 65 // otherwise false. This function will create a new Pulse threaded mainloop,
66 // and the handles of the mainloop, context and stream will be returned by 66 // and the handles of the mainloop, context and stream will be returned by
67 // |mainloop|, |context| and |stream|. 67 // |mainloop|, |context| and |stream|.
68 bool CreateOutputStream(pa_threaded_mainloop** mainloop, 68 bool CreateOutputStream(pa_threaded_mainloop** mainloop,
69 pa_context** context, 69 pa_context** context,
70 pa_stream** stream, 70 pa_stream** stream,
71 const AudioParameters& params, 71 const AudioParameters& params,
72 const std::string& device_id, 72 const std::string& device_id,
73 const std::string& app_name,
73 pa_stream_notify_cb_t stream_callback, 74 pa_stream_notify_cb_t stream_callback,
74 pa_stream_request_cb_t write_callback, 75 pa_stream_request_cb_t write_callback,
75 void* user_data); 76 void* user_data);
76 77
77 } // namespace pulse 78 } // namespace pulse
78 79
79 } // namespace media 80 } // namespace media
80 81
81 #endif // MEDIA_AUDIO_PULSE_PULSE_UTIL_H_ 82 #endif // MEDIA_AUDIO_PULSE_PULSE_UTIL_H_
OLDNEW
« no previous file with comments | « media/audio/pulse/pulse_output.cc ('k') | media/audio/pulse/pulse_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698