So I'm A Clickteam guy...

Chat about anything not covered in these forums, but keep it civil!

Post » Sat Apr 19, 2008 1:46 pm

Alright I got it working. thanks!
B
2
G
4
Posts: 14
Reputation: 1,078

Post » Wed Apr 23, 2008 12:04 am

I'm having some trouble playing some music... :?
B
2
G
4
Posts: 14
Reputation: 1,078

Post » Wed Apr 23, 2008 12:09 am

+CONDITION
-DirectSound: Play music from file "path\to\Music.mp3";

If you use paths, be sure they are backslashes [\] in Windows.

Does that help, or are you doing something more specific?
B
3
S
2
G
4
Posts: 310
Reputation: 2,120

Post » Thu Apr 24, 2008 9:26 pm

Ok it's working but... how do I get it to loop? :oops:
B
2
G
4
Posts: 14
Reputation: 1,078

Post » Thu Apr 24, 2008 9:29 pm

Only in "Channels" -> "Play" you have loop option maybe use that.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Thu Apr 24, 2008 9:37 pm

Or play the music in an Every X Milliseconds event, and find the length of the file. Not ideal but I can't remember why loop wasnt included :?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Apr 24, 2008 9:40 pm

[quote="Codemonkey":2ujvgx7x]Ok it's working but... how do I get it to loop? :oops:[/quote:2ujvgx7x]

You could do it manually, with an "Every # milliseconds" or something, but there really needs to be some new features added to the DirectSound object for music, like an "Is music playing" condition and a "loop" option for the play command and such.

The Channels have those kinds of features, but Channels only work for things like .wav because they're meant for sound effects.

Edit:
Oof, beaten by Ashley yet again
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Thu Apr 24, 2008 9:47 pm

phpbb3 has a post timing conflict resolver, so you're the fool now :mrgreen:
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Previous

Return to Open Topic

Who is online

Users browsing this forum: josinaldo and 1 guest