Add missing throw statement

Originally committed to SVN as r4720.
This commit is contained in:
Thomas Goyne 2010-08-02 08:18:45 +00:00
parent caf81157f1
commit 596ad4d65d

View file

@ -205,7 +205,7 @@ AudioProvider *CreateConvertAudioProvider(AudioProvider *source_provider) {
{
// @todo add support for more bitdepths (i.e. 24- and 32-bit audio)
if (provider->GetBytesPerSample() > 2)
AudioOpenError("Audio format converter: audio with bitdepths greater than 16 bits/sample is currently unsupported");
throw AudioOpenError("Audio format converter: audio with bitdepths greater than 16 bits/sample is currently unsupported");
provider = new ConvertAudioProvider(provider);
}