Thursday, 08 January 2009
 
  Home arrow Forum  
Main Menu
Home
News
Forum
Documentation
Download
Links
Administrator
Login Form
Welcome, Guest. Please login or register.
January 08, 2009, 08:39:22 AM
Username: Password:
Login with username, password and session length

Forgot your password?
Loop
DSLua Community
Welcome, Guest. Please login or register.
January 08, 2009, 08:39:22 AM
1724 Posts in 316 Topics by 10256 Members
Latest Member: Humminuptus
DSLua Community  |  DSLua - Best scripting language for Nintendo DS  |  Need Help?  |  Loop « previous next »
Pages: [1]
Author Topic: Loop  (Read 756 times)
Öhr GmbH
Waxing Crescent
**
Posts: 64


« 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: 94


« 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: 64


« 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:  



    (C) 2009 DSLua

    DSLua - Best scripting language for Nintendo DS home-brew!