Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I am trying to add sound to my game, both using the action 'play a sound' and by creating a 3D sound object, but when I run my game( WebGL ) I cannot hear anything. The sound object plays in CopperCube though just not online. I am using CopperCube 2.5.5. I have tried using .wav and .mp3 on chrome and firefox. |
||||
|
When CopperCube 2 was released, the HTML 5 audio API was pretty unstable and didn't work reliable in any browser. Today, it's still not very compatible between browsers and lacks a lot of functionality, but it's a bit better. That's why audio output started to be supported only with CopperCube 3. So I'm afraid, but you would have to upgrade, it seems.. |
||||
|
Thanks, would I be still able to use sounds with CopperLicht, even if I didn't have a sound file created in CopperCube? |
||||
|
Yes, sure, that should be no problem. You can use a sound scene node, there are a few posts in this forum describing how to use them. Also, there is a (still undocumented) sound manager, you can usually access it using CL3D.gSoundManager, it has a method play2D() and addSound(). |
||||
|
|
||||
|
Sad how old this post is. :( |
||||
|
Hi, I'm new to coppercube so I don't know much, someone could tell me how I put the audio on, for example: I have a radio, and when my neighbor plays it, excuse my English |
|