MCPcopy Create free account
hub / github.com/axmolengine/axmol / seek

Method seek

core/audio/AudioDecoderMp3.cpp:290–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290bool AudioDecoderMp3::seek(uint32_t frameOffset)
291{
292#if !AX_USE_MPG123
293 return 0 == mp3dec_ex_seek(&_handle->_dec, frameOffset);
294#else
295 off_t offset = mpg123_seek(_handle, frameOffset, SEEK_SET);
296 // AXLOGD("mpg123_seek return: {}", (int)offset);
297 return (offset >= 0 && offset == frameOffset);
298#endif
299}
300} // namespace ax

Callers 5

minimp3_seek_rFunction · 0.45
mpg123_lseek_rFunction · 0.45
createDecoderMethod · 0.45
rotateBufferThreadMethod · 0.45
readDataTaskMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected