mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
Update sfxSndStream.cpp
fix for stereo files (2d sound files) frames report back as bytesPerSample * channels which for us is bytesPerSample. This needs to be applied to the return from read so sfx resource knows we have read all the info.
This commit is contained in:
parent
d2ac25195f
commit
6bc4ace2e5
|
|
@ -113,7 +113,7 @@ U32 SFXSndStream::read(U8* buffer, U32 length)
|
|||
Con::errorf("SFXSndStream - read: %s", sf_strerror(sndFile));
|
||||
}
|
||||
|
||||
return framesRead;
|
||||
return framesRead * mFormat.getBytesPerSample();
|
||||
}
|
||||
|
||||
bool SFXSndStream::isEOS() const
|
||||
|
|
|
|||
Loading…
Reference in a new issue