Made previous patch apply to every other provider, too.

Originally committed to SVN as r1775.
This commit is contained in:
Rodrigo Braz Monteiro 2008-01-19 02:20:30 +00:00
parent ca1d42ba55
commit dd3047e571

View file

@ -238,6 +238,9 @@ AudioProvider *AudioProviderFactory::GetAudioProvider(wxString filename, int cac
}
}
// Give it a conversor if needed
if (provider && provider->GetBytesPerSample() != 2) provider = new ConvertAudioProvider(provider);
// Return
return provider;
}