mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 11:20:40 +00:00
Don't crash if the audio couldn't be initialized. There is already the warning.
This commit is contained in:
parent
c88c884be0
commit
bf00268c33
@ -331,7 +331,7 @@ public:
|
||||
|
||||
template<bool stereo, bool reverseStereo>
|
||||
RateConverter *makeRateConverter(st_rate_t inrate, st_rate_t outrate) {
|
||||
if (inrate != outrate) {
|
||||
if (outrate && inrate != outrate) {
|
||||
if ((inrate % outrate) == 0) {
|
||||
return new SimpleRateConverter<stereo, reverseStereo>(inrate, outrate);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user