fix for seeking in .wav files

This commit is contained in:
rdb 2013-08-26 21:22:00 +00:00
parent 34fd8f0c4d
commit fe784c04f6

View File

@ -322,7 +322,8 @@ seek(double t) {
}
}
_last_seek = _stream->tellg() / _byte_rate;
_data_pos = _stream->tellg() - _data_start;
_last_seek = _data_pos / _byte_rate;
_samples_read = 0;
}