fix for seeking in .wav files
This commit is contained in:
parent
34fd8f0c4d
commit
fe784c04f6
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue