diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-05-14 00:41:18 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-05-14 00:41:18 +0000 |
commit | be05b18c6fb6f0e2e2b74ffdf251692a45eaa045 (patch) | |
tree | 7974db8d050c3fd6e19dcd3aaa7dde5875f91168 /src/polypcore/play-memchunk.c | |
parent | e46f8f8eb3fd586f8728e43292509434e0e8b089 (diff) |
* add new parameter to pa_open_config_file() to specify open mode
* modify pa_sink_input_new() to take initial volume settings as argument
* call pa_sink_input_set_volume() when changing stream volume in protocol-esound.c to make sure that subscribe events are issued properly
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@858 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polypcore/play-memchunk.c')
-rw-r--r-- | src/polypcore/play-memchunk.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/polypcore/play-memchunk.c b/src/polypcore/play-memchunk.c index ec79254b..37ebdcf1 100644 --- a/src/polypcore/play-memchunk.c +++ b/src/polypcore/play-memchunk.c @@ -98,12 +98,9 @@ int pa_play_memchunk( if (cvolume && pa_cvolume_is_muted(cvolume)) return 0; - if (!(si = pa_sink_input_new(sink, name, __FILE__, ss, map, 0, PA_RESAMPLER_INVALID))) + if (!(si = pa_sink_input_new(sink, name, __FILE__, ss, map, cvolume, 0, PA_RESAMPLER_INVALID))) return -1; - if (cvolume) - si->volume = *cvolume; - si->peek = sink_input_peek; si->drop = sink_input_drop; si->kill = sink_input_kill; |