gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Soundloop

#74769 - Payk - Tue Mar 07, 2006 2:43 pm

is it possible to play a sound in a "endlessloop" and if yes its possible to stop that loop again? Thanx

#74770 - melw - Tue Mar 07, 2006 2:54 pm

Code:
// set looping on:
SCHANNEL_CR(channel) |= SOUND_REPEAT;

// stop (looping) sound:
SCHANNEL_CR(channel) = 0;


You may of course want to use whole lot of other flags, for full list see libnds arm7/audio.h

#74773 - Payk - Tue Mar 07, 2006 4:10 pm

hey thanx thats nice...