mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-11 13:45:25 +00:00
Fix seek implementation of our Vorbis stream.
svn-id: r47635
This commit is contained in:
parent
1c906a1f08
commit
0417c0ab88
@ -169,7 +169,9 @@ int VorbisInputStream::readBuffer(int16 *buffer, const int numSamples) {
|
||||
}
|
||||
|
||||
bool VorbisInputStream::seek(const Timestamp &where) {
|
||||
int res = ov_pcm_seek(&_ovFile, convertTimeToStreamPos(where, getRate(), isStereo()).totalNumberOfFrames());
|
||||
// Vorbisfile uses the sample pair number, thus we always use "false" for the isStereo parameter
|
||||
// of the convertTimeToStreamPos helper.
|
||||
int res = ov_pcm_seek(&_ovFile, convertTimeToStreamPos(where, getRate(), false).totalNumberOfFrames());
|
||||
if (res) {
|
||||
warning("Error seeking in Vorbis stream (%d)", res);
|
||||
_pos = _bufferEnd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user