Try to support 7.1 on Linux.
authorCarl Hetherington <cth@carlh.net>
Thu, 10 Jan 2019 00:26:31 +0000 (00:26 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 10 Jan 2019 00:26:31 +0000 (00:26 +0000)
RtAudio.cpp

index 0e4fe4a91f0a9865291e3d28d7bd183090f504b2..228541bcd97448efc8fbdcd29071f9365b8d4182 100644 (file)
@@ -8643,14 +8643,15 @@ bool RtApiPulse::probeDeviceOpen( unsigned int device, StreamMode mode,
     /* XXX: hard-coded for DCP-o-matic */\r
     pa_channel_map map;\r
     pa_channel_map_init(&map);\r
-    /* XXX: need to check 7.1 */\r
-    map.channels = 6;\r
+    map.channels = 8;\r
     map.map[0] = PA_CHANNEL_POSITION_FRONT_LEFT;\r
     map.map[1] = PA_CHANNEL_POSITION_FRONT_RIGHT;\r
     map.map[2] = PA_CHANNEL_POSITION_FRONT_CENTER;\r
     map.map[3] = PA_CHANNEL_POSITION_LFE;\r
     map.map[4] = PA_CHANNEL_POSITION_REAR_LEFT;\r
     map.map[5] = PA_CHANNEL_POSITION_REAR_RIGHT;\r
+    map.map[6] = PA_CHANNEL_POSITION_SIDE_LEFT;\r
+    map.map[7] = PA_CHANNEL_POSITION_SIDE_RIGHT;\r
 \r
     pah->s_play = pa_simple_new( NULL, streamName.c_str(), PA_STREAM_PLAYBACK, NULL, "Playback", &ss, &map, NULL, &error );\r
     if ( !pah->s_play ) {\r