Setting the Loop Mode during plackback

Started by vbfan, March 29, 2015, 11:58:27 AM

Previous topic - Next topic

vbfan

Hi,
Currently exploring Audio Dj Studio.NET. I've no playlist, so every time a single song is loaded in the player. I've a checkbox with text "Repeat". I want that if checkbox is checked during playback, song is repeated (infinite loop) and vice versa. Tried the loop related functions but problem is that they work like for example:

< initially checkbox is unchecked >
1: Load a song > check the checkbox > hit the play button. Song will play in loop. It's OK  :)
2: Load a song > hit the Play button > check the check box. Song will not play in loop.

What function or code I should use that can toggle the loop mode during play back.  I don't know what I'm missing. Please guide me in this regard?

Thanks and Regards.

Administrator

Hello,

when the check box in your user interface is checked, the correct method to call is PlaySoundEnableLoop: with this method you have the possibility to put in loop mode a specific portion of sound or the full file by specifying 0 for the nFromPosition parameter and -1 for the nToPosition parameter.

Kind Regards

Severino Delaurenti
MultiMedia Soft