Commit 8491f61d authored by Max Kellermann's avatar Max Kellermann

mvp: fall back to stereo

When the channel count is greater than 2, fall back to stereo sound.
parent 6722c508
...@@ -17,6 +17,7 @@ ver 0.15 - (200?/??/??) ...@@ -17,6 +17,7 @@ ver 0.15 - (200?/??/??)
* audio outputs: * audio outputs:
- shout: enlarged buffer size to 32 kB - shout: enlarged buffer size to 32 kB
- null: allow disabling synchronization - null: allow disabling synchronization
- mvp: fall back to stereo
* commands: * commands:
- "playlistinfo" supports a range now - "playlistinfo" supports a range now
- added "sticker database", command "sticker", which allows clients - added "sticker database", command "sticker", which allows clients
......
...@@ -134,7 +134,11 @@ mvp_set_pcm_params(struct mvp_data *md, struct audio_format *audio_format) ...@@ -134,7 +134,11 @@ mvp_set_pcm_params(struct mvp_data *md, struct audio_format *audio_format)
break; break;
default: default:
return false; g_debug("unsupported channel count %u - falling back to stereo",
audio_format->channels);
audio_format->channels = 2;
mix[0] = 0;
break;
} }
/* 0,1=24bit(24) , 2,3=16bit */ /* 0,1=24bit(24) , 2,3=16bit */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment