¡@

Home 

2014/10/15 ¤U¤È 10:14:13

iphone Programming Glossary: simpleaudioengine

SimpleAudioEngine, playing .caf files [duplicate]

http://stackoverflow.com/questions/10286686/simpleaudioengine-playing-caf-files

playing .caf files duplicate Possible Duplicate playing a .caf file works fine in simulator but not in iPhone I'm trying.. files duplicate Possible Duplicate playing a .caf file works fine in simulator but not in iPhone I'm trying to use SimpleAudioEngine to play background music in an iPhone app I'm working on. I play the background music using the following code SimpleAudioEngine.. to play background music in an iPhone app I'm working on. I play the background music using the following code SimpleAudioEngine sharedEngine preloadBackgroundMusic @ MenuTheme.mp3 SimpleAudioEngine sharedEngine playBackgroundMusic @ MenuTheme.mp3 loop..

Objective-C Category and new iVar

http://stackoverflow.com/questions/10502539/objective-c-category-and-new-ivar

C Category and new iVar I try to extend the functionality of SimpleAudioEngine of cocos2d with the ability to play several sound effect one after another as some kind of chain. I tried to do this with.. yet another way that allows me to do this The header with the category #import Foundation Foundation.h @interface SimpleAudioEngine SoundChainHelper CDLongAudioSourceDelegate void playSoundChainWithFileNames NSString filename ... @end And the .m file with.. NSString filename ... @end And the .m file with the extension #import SoundChainHelper.h @interface SimpleAudioEngine NSMutableArray soundsInChain int currentSound @end @implementation SimpleAudioEngine SoundChainHelper read in all filenames..

Sound slider for cocos2d?

http://stackoverflow.com/questions/11250839/sound-slider-for-cocos2d

volume of your sound as explained here . Here a pseudo code to show you how to achieved this Create your audio engine SimpleAudioEngine sharedEngine playBackgroundMusic @ music.mp3 Create the slider CCControlSlider slider CCControlSlider sliderWithBackgroundFile.. self addChild slider ... void valueChanged CCControlSlider sender Change volume of your sounds SimpleAudioEngine sharedEngine setEffectsVolume sender.value SimpleAudioEngine sharedEngine setBackgroundMusicVolume sender.value I hope it'll..