¡@

Home 

2014/10/15 ¤U¤È 10:05:49

iphone Programming Glossary: currentsound

Objective-C Category and new iVar

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

.m file with the extension #import SoundChainHelper.h @interface SimpleAudioEngine NSMutableArray soundsInChain int currentSound @end @implementation SimpleAudioEngine SoundChainHelper read in all filenames and start off playing process void playSoundChainWithFileNames.. va_start params filename while filename soundsInChain addObject filename filename va_arg params NSString va_end params currentSound 0 self cdAudioSourceDidFinishPlaying nil play first file this will also always automatically be called as soon as the previous.. sound has finished playing void cdAudioSourceDidFinishPlaying CDLongAudioSource audioSource if soundsInChain count currentSound CDLongAudioSource mySound CDAudioManager sharedManager audioSourceForChannel kASC_Right mySound load soundsInChain objectAtIndex..

Playing html5 audio in android browser

http://stackoverflow.com/questions/3069124/playing-html5-audio-in-android-browser

in which the audioplayer should go var audio document.createElement 'audio' audio.src sound audio.controls controls if currentSound null soundcv.replaceChild audio currentSound else soundcv.appendChild audio currentSound audio By the way I am also trying.. document.createElement 'audio' audio.src sound audio.controls controls if currentSound null soundcv.replaceChild audio currentSound else soundcv.appendChild audio currentSound audio By the way I am also trying to enlarge the audio button that shows up.. audio.controls controls if currentSound null soundcv.replaceChild audio currentSound else soundcv.appendChild audio currentSound audio By the way I am also trying to enlarge the audio button that shows up in the iphone the default one is quite small..