///////////////////////////////////////////////////////
| 195 | |
| 196 | //////////////////////////////////////////////////////////// |
| 197 | void SoundFileReaderOgg::seek(std::uint64_t sampleOffset) |
| 198 | { |
| 199 | assert(m_vorbis.datasource && "Vorbis datasource is missing. Call SoundFileReaderOgg::open() to initialize it."); |
| 200 | |
| 201 | ov_pcm_seek(&m_vorbis, static_cast<ogg_int64_t>(sampleOffset / m_channelCount)); |
| 202 | } |
| 203 | |
| 204 | |
| 205 | //////////////////////////////////////////////////////////// |