DSLua Community
Welcome, Guest. Please login or register.
May 18, 2012, 08:40:41 PM
1371 Posts in 262 Topics by 33109 Members
Latest Member: Limewire Download
DSLua Community  |  DSLua - Best scripting language for Nintendo DS  |  Need Help?  |  Loop « previous next »
Pages: [1]
Author Topic: Loop  (Read 1410 times)
Öhr GmbH
Waxing Crescent
**
Posts: 51


« on: May 01, 2006, 10:40:34 AM »

how can i set a loop with sound files(.raw/snd)?


uhh and whats this: Sound:Free() Huh
Logged
waruwaru
Administrator
Waxing Crescent
*****
Posts: 78


« Reply #1 on: May 01, 2006, 11:16:01 AM »

how can i set a loop with sound files(.raw/snd)?

Right now, I can only think of 2 ways:
1. figure out how long the music is, and use DSLua.VBlankCount() to tell when you need to restart the music
2. modify your .mod file, so it automatically loops forever

Quote
uhh and whats this: Sound:Free() Huh

Sound:Free() and Music:Free() are used to clean up the memory your sound/music file eats up.  So, use it when you are done playing your sound/music.  Or you might run out of memory later...

Waruwaru
Logged
Öhr GmbH
Waxing Crescent
**
Posts: 51


« Reply #2 on: May 01, 2006, 12:59:36 PM »

its not .mod, its .raw/.snd so, i cant use the second mode.
i dont know why, but the music is faster on the ds then on my pc.
these are my settings: Sample 11050 | 8 bit signed | mono | PCM
Logged
Pages: [1]
« previous next »
    Jump to: