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
0
votes
1 answer

Objective-C: SimpleAudioEngine's playEffect does not work via bluetooth speaker

SimpleAudioEngine's playEffect does not work on bluetooth player. However playBackgroundMusic does work on bluetooth speaker. Both playBackgroundMusic and playEffect work on iPad on it's own but when it comes to playing it via bluetooth speaker,…
Pointo Senshi
  • 541
  • 5
  • 17
0
votes
1 answer

How to play audio at launch image in Cocos2D v3.x iOS?

I'm making a game in Cocos2D iOS and would like play a short audio clip (in .m4a format) when the launch image (Default) is displayed. I tried adding this line: [[OALSimpleAudio sharedInstance] playBg:@"clip.m4a"]; in application…
Hyder
  • 1,163
  • 2
  • 13
  • 37
0
votes
1 answer

Playing audio in cocos2d v3

I am trying to get background music playing and looping as well as one-shot sounds every now and again, e.g. level up etc. I have found many tutorials on this that are using SimpleAudioEngine, but when I import SimpleAudioEngine.h the compiler is…
RichC
  • 73
  • 1
  • 10
0
votes
2 answers

Filtering collisions in Chipmunk for trapped bodies

Background I'm making an iOS app for kids where you can use your finger to drag balls around on a screen. I'm using Chipmunk 7.0.0 for the physics simulation. I've adapted the Chipmunk demo code to implement the dragging functionality. I'm using 2…
godel9
  • 7,340
  • 1
  • 33
  • 53
0
votes
0 answers

SimpleAudioEngine stops playing sounds?

For some reason, at first, simpleAudioEngine worked to play all sounds, but then, after a while, they stop working. I am using the simple audio engine to play sound effects that are under 1 second long and are all mp3s, while playing music using…
0
votes
1 answer

Play background music outside of app bundle using SimpleAudioEngine

I need to play background music residing in the app's document folder (using hosted content downloads which I put in the document folder after download). It seems that SimpleAudioEngine's way of playing background music is to take a relative path…
Jonny
  • 15,955
  • 18
  • 111
  • 232
0
votes
2 answers

Override mute switch with SimpleAudioEngine

when the external mute switch is on the app has no sound. I use SimpleAudioEngine in my app to play sound effects. How can I play sounds even if the mute switch is set to silent?
0
votes
1 answer

is it safe to use out of bounds SimpleAudioEngine volume ranges?

Ive couple of lines. 2nd line is documented. 1st line is out of bounds somehow it really works. Albeit documentation and other QA's says that range is 0f to 1f : on higher volume something like 20, 30; really increases volume of sound effects.so it…
Zen Of Kursat
  • 2,672
  • 1
  • 31
  • 47
0
votes
1 answer

SimpleAudioEngine: No Music After Phone Sleeps

I just want to ask if it is possible to stop music from playing when the device sleeps? I am using SimpleAudioEngine to play music. A user is claiming that the music stops from playing when his phone slept, turning on and off the sound from settings…
0xdeadfa11
  • 63
  • 1
  • 7
0
votes
1 answer

SimpleAudioEngine background volume with CCActionTween

Is it possible to have a fade out effect for SimpleAudioEngine background music using the CCActionTween? I know that the volume property is an float between 1 and 0. If it is possible, then a sample code would be much appreciated. Thanks
plawres
  • 313
  • 4
  • 19
0
votes
1 answer

SimpleAudioEngine takes time to play sound

I am using SimpleAudioEngine to play sounds in my cocos2D application. I have a situation of continues shooting bullets on tapping on a button and playing a sound whenever a bullet is shot. When i continuously tap the shoot button sometimes, game…
NiKKi
  • 3,296
  • 3
  • 29
  • 39
0
votes
1 answer

cocos2d-iphone SimpleAudioEngine preload strategy

What is the best strategy for SimpleAudioEngine effects preload ? Preload all sound effects at game startup ? Or in each screen's creation preload only the effects used in this screen ? Are loaded effects released at some point ?
sdabet
  • 18,360
  • 11
  • 89
  • 158
0
votes
2 answers

SimpleAudioEngine always play the same effect?

i record some file then play it with : NSArray *dirPaths; NSString *docsDir; dirPaths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask, YES); docsDir =…
user1280535
  • 347
  • 3
  • 13
0
votes
1 answer

Background musicplayer and cocos2d SimpleAudioEngine

I have provided mute functionality in my game. But if music player is running in background and when I start my game in normal mode (not in silent mode) music player is not getting paused I have used [[SimpleAudioEngine sharedEngine]…
-4
votes
1 answer

Simple audio engine not playing audio on actual device. Plays it on simulator though

I am trying to integrate background music into my cocos2d game using simple audio engine. I use the playBackgroundMusic method of simple audio engine here is the line of code I use: [[SimpleAudioEngine…
PoKoBros
  • 701
  • 3
  • 9
  • 25
1 2 3 4
5