Questions tagged [simpleaudioengine]

SimpleAudioEngine is a Cocos2d library, providing support for basic audio functions. It wraps a CDAudioManager to provide higher level access to sound effects and background music playing capability.

SimpleAudioEngine is a Cocos2d class that provides access to basic sound effect and audio playback functionality.

The bulk of its functionality is derived from the CDAudioWrapper class (indeed, it is just a wrapper around it).

References:

75 questions
9
votes
1 answer

How to detect when sound effect finish playing?

I'm using SimpleAudioEngine and I'm trying to detect if a sound effect is finish playing before continuing. I'm looking for any method, but the one I'm trying to implement doesn't work! CDSoundEngine *engine = [CDAudioManager…
6
votes
3 answers

Cocos Denshion: Play sound effect in sync with music

I am making a music game and when the user presses a note it will produce a sound. The sound naturally needs to play immediately when the user presses, so they can tell whether they are in time with the music. However, it feels as if the sound is…
Arbel
  • 425
  • 8
  • 26
6
votes
1 answer

Detect whether a sound effect is currently playing in SimpleAudioEngine

I want to detect whether [SimpleAudioEngine sharedEngine] is currently playing any effect. For Background music there is a method that gives you the information whether background music is playing: [[SimpleAudioEngine sharedEngine]…
gebirgsbärbel
  • 2,327
  • 1
  • 22
  • 38
4
votes
2 answers

How to wait finish current audio for playing next audio?

I'm working with cocos2d. How to wait finish current audio for playing next audio? I can't make it with SimpleAudioEngine.
Sveta
  • 1,270
  • 3
  • 16
  • 33
4
votes
2 answers

/dev/dsp not found error while audio playback in centOS 6.x

I am trying develop an application using C++ which will record audio data from mic and will playback the data. But while trying audio capture I am getting following error message. cannot open /dev/dsp Can anyone advise me on this?
3
votes
5 answers

Cocos2d - SimpleAudioEngine - Sound is not playing on iPhone

Recently I have a problem with playing my soundeffects using CocosDenshion. The sound is playing on the iPhone Simulator, but not on my own device. I am not sure what I am doing wrong. Off course I checked if my speakers are still working, but they…
3
votes
3 answers

how to play background music in android cocos2d

Hi i am new in cocos2d android. I couldn't find SimpleAudioEngine and CDAudioEngine in android cocos2d that is in iphone cocos2d. Then how can i play background music in android.
ArunGJ
  • 2,685
  • 21
  • 27
3
votes
1 answer

Unable to install SimpleAudio with Conda or Pip

I am trying to install SimpleAudio with Conda although I run into errors. I then try Pip and get a different error. I am running Raspbian Buster on the Raspberry Pi 4 with python version 3.6.6. Conda version 4.5.1. Pip version 18.0. Processor is…
mcgirlja
  • 167
  • 3
  • 13
3
votes
2 answers

SimpleAudioEngine Cocos2d Leaking Memory

I am running Instruments and it indicates that the SimpleAudioEngine is leaking memory. The screenshot is attached. The memory leak is multiple times although the screenshot only shows one instance. Also, sometimes it points to the following…
azamsharp
  • 19,710
  • 36
  • 144
  • 222
3
votes
1 answer

Preloading multiple background music

I am trying to preload a bunch of background music files. Basically i am calling preloadBackgroundMusic several times. This breaks on me when i try it with SimpleAudioEngine : [[SimpleAudioEngine sharedEngine]…
Frank
  • 3,073
  • 5
  • 40
  • 67
3
votes
2 answers

Playing sounds in sequence with SimpleAudioEngine

I'm building an iOS app with cocos2d 2, and I'm using SimpleAudioEngine to play some effects. Is there a way to sequence multiple sounds to be played after the previous sound is complete? For example in my code: [[SimpleAudioEngine sharedEngine]…
Corey
  • 2,453
  • 4
  • 35
  • 63
3
votes
3 answers

SimpleAudioEngine doesn't play

I want to play a background music and a sound effect on my game. I make the import of SimpleAudioEngine.h and called the methods: [[SimpleAudioEngine sharedEngine] playBackgroundMusic:@"backgroundMusic.caf"]; [[SimpleAudioEngine sharedEngine]…
douglasd3
  • 761
  • 2
  • 10
  • 27
2
votes
2 answers

Is it possible to adjust the sound volume cocos2d?

I am using the following method, and express a sound effect in cocos2d. [[SimpleAudioEngine sharedEngine] playBackgroundMusic:@"BackGround.m4a"]; But sound volume of BackgroundMusic is too small. so, is there a way that adjust a sound volume?
S.J. Lim
  • 3,095
  • 3
  • 37
  • 55
2
votes
1 answer

Reducing Volume of a background music

In My application,I am playing a music using the following code.But i want to reduce the volume of the background music.How to do that. Thanks, Anish
Anish
  • 2,889
  • 1
  • 20
  • 45
2
votes
1 answer

Playing sound in cocos2d game

I'm checking code of a build game by another developer. You can understand how tuf it is. :) I have to make a change in its sound. When game is running the background sound remain same till game is over. My task is to change sound after a specific…
Haseeb Warraich
  • 141
  • 1
  • 2
  • 12
1
2 3 4 5