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
2 answers

[[SimpleAudioEngine sharedEngine]playeffect:@""] overloading probleam

In my game one audio is paying using [[SimpleAudioEngine sharedEngine]playeffect:@"audio.aac"]; function . When I touch one sprite I played another audio which 1 sec. My problem is that my first "audio.aac" stops when I touch sprite continuously for…
Sukeshj
  • 1,503
  • 1
  • 19
  • 25
0
votes
1 answer

Playing wav files with python simpleaudio produces: SimpleaudioError: Unable to start queue. -- CODE: -66681

import simpleaudio as sa wave_obj = sa.WaveObject.from_wave_file('path to wav file/test.wav') play_obj = wave_obj.play() play_obj.wait_done() # Wait until sound has finished playing The code was working until I installed a few packages (firebase,…
Baggy269
  • 1
  • 2
0
votes
1 answer

Need equation to find half step value in SimpleAudioEngine

Ok, my math is a bit rusty and I feel like this should be an easy problem, but yet I am here. For SimpleAudioEngine in Cocos2d, there is a pitch argument. It is defined as follows: 1.0 is original pitch 0.5 is one octave (12 half steps) lower 2.0…
Jason Pawlak
  • 792
  • 1
  • 6
  • 20
0
votes
3 answers

How do I update python on my Raspberry Pi to at least 3.6?

As some brief background information: I was origianlly trying to use Miniconda (with conda) to install dependencies that I need for my project on my Raspberry Pi. After trying to use Conda to install the SimpleAudio package, I got an error saying…
mcgirlja
  • 167
  • 3
  • 13
0
votes
2 answers

How do I stop Simpleaudio from playing a file twice simulaneously?

I am using simpleaudio in a text-based adventure game. I am using Python 3. In my main loop, I want to achieve this: play a short audio clip, and once it finishes, start playing the same audio clip again. My problem is, that I cannot figure out how…
Caspian Ahlberg
  • 934
  • 10
  • 19
0
votes
1 answer

Iphone cocas2d game : Playing sound

i am also facing same problem .. by doing this background music stop but i my case i want to play another sound for a while .. like a blast sound and then again play old sound .. but whn i do this type of code [[SimpleAudioEngine sharedEngine]…
Haseeb Warraich
  • 141
  • 1
  • 2
  • 12
0
votes
1 answer

cocos2d music preload

how i can preload mp3 background music file async in cocos2d? Like textures [[CCTextureCache sharedTextureCache] addImageAsync:@"textures.png" target:self selector:@selector(textureLoaded:)]; i search only this solution …
bnetangel
  • 233
  • 1
  • 2
  • 6
0
votes
0 answers

SimpleAudioEngine fails to play SFX after soft reset but not every time

When handling soft resets in iOS anyone have any idea why resumeAllEffects() may not work? Have tried calling within Appdelegate and in our Main.js (we're doing a load under JS)... Only thing that seems to fix it is restarting the engine under…
0
votes
1 answer

Using MPMediaItem with simpleaudioengine

I've been making a project in cocos-2dx, but needed to create a .mm to select music from the iOS library to play in the background. I got it working by playing the music in the .mm file, but for various reasons, it needs to play in cocos-2dx using…
0
votes
0 answers

pauseAllEffects() not pausing sounds

I'm using some sound effects and background music in my cocos2d-x app. When I try to pause using CocosDenshion::SimpleAudioEngine::getInstance()->pauseAllEffects() it don't pause sounds. StopSounds also not…
Nargis
  • 739
  • 7
  • 30
0
votes
2 answers

SimpleAudioEngine, background Volume down on playEffect then back up

In Cocos2d (android) Im trying to down the Background Volume when playEffect runs and than after the playEffect ends to bring it back up. I have this code: auto audio =…
MePo
  • 1,044
  • 2
  • 23
  • 48
0
votes
1 answer

How to play a particular portion of an audio file in Cocos2d

I am playing an audio file named 'myTrack.mp3' with SimpleAudioEngine as: [[SimpleAudioEngine sharedEngine]playBackgroundMusic:@"myTrack.mp3" loop:NO]; The audio if of the length of 00:17 seconds, and my plays the whole file. But now I need to play…
Thampuran
  • 644
  • 5
  • 22
0
votes
2 answers

music completion handler in cocos2dx

my goal is to call a function after background music ends in cocos2dx. playing background music using this code CocosDenshion::SimpleAudioEngine::sharedEngine()->playBackgroundMusic("shortSound.wav",false); and need to call my Function void…
Anand
  • 1,129
  • 7
  • 29
0
votes
2 answers

Why I play/preload soundEffect with error in cocos2dx (ios)?

Whether play or preload sound effect. code here: CocosDenshion::SimpleAudioEngine::sharedEngine()->playEffect("debug.mp3"); I will get this error: ExtAudioFileOpenURL The sound file is exist in app. And file is right.
zszen
  • 1,428
  • 1
  • 14
  • 18
0
votes
2 answers

Cocos2d 2.0 SimpleAudioEngine stop sound effect in another object

I am trying to stop audio effect using simpleaudioengine in Cocos2d 2.0. I have the following situation; Farm Scene with two sky layers day/night. These are placed sprites, created within the layer in the scene. I also have sprite classes for…