Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Playing Sounds

mushra
Registered User
Quote
2011-12-10 18:15:38

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.


niko
Moderator
Quote
2011-12-11 08:29:23

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..


mushra
Registered User
Quote
2011-12-11 14:03:56

Thanks, would I be still able to use sounds with CopperLicht, even if I didn't have a sound file created in CopperCube?


niko
Moderator
Quote
2011-12-11 21:30:17

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().


joao
Guest
Quote
2020-01-13 00:48:33




AnAverageGuest
Guest
Quote
2020-02-03 01:44:36

Sad how old this post is. :(


maiconaf
Registered User
Quote
2020-04-11 17:44:40

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


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact