mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
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…
x
Reference in New Issue
Block a user