Audio seekToTime

Hi,

I try to seek to time ci::audio like this :

mVoice ->start();
mVoice = audio::Voice::create(audio::load(loadAsset(“sound.ogg”)));
mVoice ->getSamplePlayerNode()->seekToTime(time);

The audio voice work but seekToTime not.

Any idea or alternative ?

Thanks

Try:

mVoice = audio::Voice::create(audio::load(loadAsset("sound.ogg")));
mVoice->getSamplePlayerNode()->seekToTime(time);
mVoice->start();

cheers,
Rich

No it does not work too !

Cheers

Colin

Works for me. Tested with the VoiceBasic sample, placing the call to seekToTime( 0.2f ) on this line.

Ok thanks !
Sorry perhaps something that me an escape !