mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-25 21:40:08 +00:00
Fix surround channel mappings on PulseAudio
This commit is contained in:
1 parent
0698e8b43f
commit
781afc7c66
1 file changed
+4
-1
+4
-1
@@ -79,8 +79,11 @@ static int pulse_renderer_init(int audioConfiguration, POPUS_MULTISTREAM_CONFIGU
|
|||||||
.channels = opusConfig->channelCount
|
.channels = opusConfig->channelCount
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pa_channel_map map;
|
||||||
|
pa_channel_map_init_auto(&map, opusConfig->channelCount, PA_CHANNEL_MAP_ALSA);
|
||||||
|
|
||||||
char* audio_device = (char*) context;
|
char* audio_device = (char*) context;
|
||||||
dev = pa_simple_new(NULL, "Moonlight Embedded", PA_STREAM_PLAYBACK, audio_device, "Streaming", &spec, NULL, NULL, &error);
|
dev = pa_simple_new(NULL, "Moonlight Embedded", PA_STREAM_PLAYBACK, audio_device, "Streaming", &spec, &map, NULL, &error);
|
||||||
|
|
||||||
if (!dev) {
|
if (!dev) {
|
||||||
printf("Pulseaudio error: %s\n", pa_strerror(error));
|
printf("Pulseaudio error: %s\n", pa_strerror(error));
|
||||||
|
|||||||
Reference in new issue
Block a user