sound doesnt play

Get help using Construct 2

Post » Sun Oct 16, 2011 6:56 am

ok, so i managed to import a sound into a test project, this is great. however, the sound does not play

system -> on start of layout --> audio play sound (tag "blah")
                                 audio set "blah" looping

nothing gets played
     play layout and export project = no sound

???
B
16
S
2
G
1
Posts: 43
Reputation: 1,473

Post » Sun Oct 16, 2011 8:37 am

http://dl.dropbox.com/u/36472942/construct/forumhelp/LOLAudioPlayer.capx
I commented the capx.

It shows how to set up the audio and use it, as well as a few tricks using animations and a "defiling" text (pretty much like the HTML <marquee> used to do).
Those tricks are auxiliary (not directly related to audio).

The sounds and sprites used are those included in C2's Free Bundle (top package to make quick examples with good quality music, sounds and sprites).
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sun Oct 16, 2011 2:29 pm

Thanx a million (again)
B
16
S
2
G
1
Posts: 43
Reputation: 1,473

Post » Tue Oct 18, 2011 8:29 pm

I ran into the same issue last night. Thanks Kyatric.
B
22
S
9
G
3
Posts: 202
Reputation: 3,645

Post » Wed Oct 19, 2011 3:29 am

Seems sounds don't work at all in IE9.
B
22
S
9
G
3
Posts: 202
Reputation: 3,645

Post » Wed Oct 19, 2011 4:31 am

http://www.scirra.com/blog/44/on-html5-audio-formats-aac-and-ogg

Audio is an issue because of the way it is implemented in the browsers.
For the example I posted above, I imported only OGG format, since I'm not under 7 and the conversion to aac is not automaticly done.
If you want your sound to be playing in IE, you have to import .aac sound files (I think audacity allows to convert audio files to aac).
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Wed Oct 19, 2011 2:31 pm

Just a heads up, the file format is .m4a (which is AAC audio, but in a different container).
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Wed Nov 16, 2011 4:43 am

Is there anyone with references to play audio with character movements? the sound for a slash only plays once after i attack. Haven't seen anything the XAudio2 options that could help me out.

Thanks,
B
1
G
3
Posts: 1
Reputation: 627

Post » Wed Nov 16, 2011 4:13 pm

@modkva, XAudio2 is only in Construct Classic, not Construct 2, are you sure you posted in the right forum?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Wed Nov 16, 2011 9:22 pm

I am having trouble with Music, but my sounds are working ok in the Chrome
Browser.

I think that the Audio Object is still a bit dodgy. See comments at
http://www.scirra.com/forum/any-success-with-music_topic46113.html

Cheers
B
4
S
1
G
2
Posts: 45
Reputation: 1,365

Next

Return to How do I....?

Who is online

Users browsing this forum: currypuff, makotto, randomly, Walessio and 28 guests