ID:177855
![]() Jul 22 2002, 1:45 pm
|
|
How can I import sound files onto the dreammaker?
|
Lucas Gates wrote:
i think thats it. i don't know. i m stupid Objection you honor.Hes openly admitting that he is stupid to therefor sho that he wasn't smart enough to have coded that pice of junk.:P |
Lucas Gates wrote:
world << sound("name of the music file") For even better put
world << sound('sound file here')
RaeKwon |
I got these errors for some reason...
music.dm:2:error:world:duplicate definition music.dm:2:error:'Mini Bosses - Super Metroid':value not allowed here music.dm:2:error::duplicate definition music.dm:2:error:<< :instruction not allowed here Thanx in advance, Punkrock546 #;} |
Punkrock546 wrote:
I got these errors for some reason... Good thing you didn't actually show us the lines of code that points to. That'd be bad. Lummox JR |
you don't understand what I'm asking, show us the code AROUND the usr << music
is it in a code file alone? is that what you are saying? |
you can't just start a code file and put usr << 'music.wav' at the top, it has to be under some command to trigger it.
try this: world New() world << 'music.wav' ..() |
Punkrock546 wrote:
I put it in a file called music.dmi it's the only thing in the file. I assume you mean .dm, not .dmi? .dmi is an icon file. Lummox JR |
Punkrock546 wrote:
world << sound('Mini Bosses - Super Metroid') Funny, but I don't see a .wav or .mid extension on that file. I also don't see a proc that this code goes in. You can't just put an instruction line by itself in the middle of nowhere and expect it to mean something. If it's going to play from startup, put it in world/New(). Lummox JR |
Punkrock546 wrote:
Yeah the code is alone. If that is the entire code, it will not execute. Reread Lummox's last post. |
world << sound("name of the music file")
i think thats it. i don't know. i m stupid