In cocos2d objective c port, we can easily play sound effects by:
[[SimpleAudioEngine sharekEngine] playEffect:@"xyz.wav"];
What am I supposed to use for javascript port of cocos2d?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as I can tell cocos2d for Javascript does not have audio functionality. See this thread from last year:
http://cocos2d-javascript.org/2010/Dec/10/site-launched-for-cocos2d-javascript
As stated, you can play sounds this way:
That’s it.