diff options
author | Max Kellermann <max@duempel.org> | 2009-02-25 21:52:11 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-25 21:52:11 +0100 |
commit | 99f535ad773f9fb47d2db642e5a2baf9c56f641e (patch) | |
tree | 4dbeb5729621bf80e3b5a936dc4fad4ca03071bf /src/output/mvp_plugin.c | |
parent | 8491f61d6c4ea95e4bca32dea2d9934376d35675 (diff) | |
download | mpd-99f535ad773f9fb47d2db642e5a2baf9c56f641e.tar.gz mpd-99f535ad773f9fb47d2db642e5a2baf9c56f641e.tar.xz mpd-99f535ad773f9fb47d2db642e5a2baf9c56f641e.zip |
mvp: fall back to 16 bit audio samples
Looks like the MVP audio output only supports 16 and 24 bit audio
samples. If MPD generates any other sample formats, force it to use
16 bit.
Diffstat (limited to '')
-rw-r--r-- | src/output/mvp_plugin.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/output/mvp_plugin.c b/src/output/mvp_plugin.c index 08e92bd85..3c302f0a0 100644 --- a/src/output/mvp_plugin.c +++ b/src/output/mvp_plugin.c @@ -152,7 +152,11 @@ mvp_set_pcm_params(struct mvp_data *md, struct audio_format *audio_format) break; default: - return false; + g_debug("unsupported sample format %u - falling back to stereo", + audio_format->bits); + audio_format->bits = 16; + mix[1] = 2; + break; } mix[3] = 0; /* stream type? */ |