mvp: fall back to stereo

When the channel count is greater than 2, fall back to stereo sound.
This commit is contained in:
Max Kellermann 2009-02-25 21:51:39 +01:00
parent 6722c508a1
commit 8491f61d6c
2 changed files with 6 additions and 1 deletions

1
NEWS
View File

@ -17,6 +17,7 @@ ver 0.15 - (200?/??/??)
* audio outputs:
- shout: enlarged buffer size to 32 kB
- null: allow disabling synchronization
- mvp: fall back to stereo
* commands:
- "playlistinfo" supports a range now
- added "sticker database", command "sticker", which allows clients

View File

@ -134,7 +134,11 @@ mvp_set_pcm_params(struct mvp_data *md, struct audio_format *audio_format)
break;
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 */