summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-10 19:08:46 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-10 19:08:46 +0200
commit4bdc23789b19f2fcfcdea5bad5100897466095c7 (patch)
tree29587826c46e9d6aed853a5bd816c762d5eccdd5
parent37eb90a8060cbe6e97c8da5c08bbf2fae113cc0b (diff)
pulse: fixed channelmask
-rw-r--r--plugins/pulse/pulse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/pulse/pulse.c b/plugins/pulse/pulse.c
index 9a08ff08..cf71eae5 100644
--- a/plugins/pulse/pulse.c
+++ b/plugins/pulse/pulse.c
@@ -50,7 +50,6 @@ static int pulse_terminate;
static pa_simple *s;
static pa_sample_spec ss;
-static pa_channel_map channel_map;
static ddb_waveformat_t requested_fmt;
static int state;
static uintptr_t mutex;
@@ -91,8 +90,8 @@ static int pulse_set_spec(ddb_waveformat_t *fmt)
ss.channels = plugin.fmt.channels;
// Try to auto-configure the channel map, see <pulse/channelmap.h> for details
- pa_channel_map_init_extend(&channel_map, ss.channels, PA_CHANNEL_MAP_DEFAULT);
- //pa_channel_map_init(&channel_map);
+ pa_channel_map channel_map;
+ pa_channel_map_init_extend(&channel_map, ss.channels, PA_CHANNEL_MAP_WAVEEX);
trace ("pulse: channels: %d\n", ss.channels);
// Read samplerate from config