`Soloud->seek()` doesn't work and kills the sound
Hello, i'm developing my own "engine" and using SoLoud as an audio library.
After many testings, Soloud->seek() function isn't working at all and kills the sound, at any formats.
Code:
void audio::set_pos(GBAudio* snd, double pos)
{
SAssert;
snd->pos = pos;
__mus_handle->setPause(snd->handle,true);
__mus_handle->seek(snd->handle,pos);
__mus_handle->setPause(snd->handle,false);
return;
}
__mus_handle -> new SoLoud::Soloud
GBAudio -> struct {SoLoud::WavStream chunk; int handle; ...;};
snd->handle -> __mus_handle->play(snd->chunk,1);
Hi @elpoeprod, I'm also using seek method and it works fine for me. Why do you pause and unpause? And also the value of "pos" is in seconds?
Hi @elpoeprod, I'm also using seek method and it works fine for me. Why do you pause and unpause? And also the value of "pos" is in seconds?
because pausing and unpausing was written in SoLoud documentation, but it also doesn't work with and without pausing/unpausing
pos value is in seconds obviously. I didn't mention i use MiniAudio as a backend
also, i am seeking LOOPED (__mus_handle->loop()) music position
help pls i still have this issue