This tutorial teaches you how to make an app on xcode that has a play button pause and stop button and it controls a song that repeats often used for back ground music... Don't Forget to subscribe, rate, and comment!!!
how do I lose the gap in the sound when looping? if i play an audio sound using this method there is a gap. If i want a sound to have no gap such as a background audio do you have aby ideas how to do this? there is a PrepareToPlay method? that preloads the buffer but i cant seem to make it work. has anyone used this? thanks...
Nice tutorial but what's the difference between stop and pause? Both are same, aren't they?
Just set the current time in zero
[myMusic setCurrentTime:0];
[myMusic stop];
nxchannel 3 months ago
thanks for the tutorial
patto2k 7 months ago
@karamsafwat Hi I have the same problem! meaby you already solved the problem or you know how play music or a sound with code.
I hope you can help me :)
ulbricho 10 months ago
everything with 'myMusic' is 'undeclared'. Can anyone help me?
BrightShadowTuts 11 months ago
how do I lose the gap in the sound when looping? if i play an audio sound using this method there is a gap. If i want a sound to have no gap such as a background audio do you have aby ideas how to do this? there is a PrepareToPlay method? that preloads the buffer but i cant seem to make it work. has anyone used this? thanks...
eddieemit7 1 year ago
Anyone got the source code?
Bornisen 1 year ago
Exactly how long did it take you to figure out you never declared the volume variable?
SebbernVideos 1 year ago
I did all what you did but i have one warning which says:
AVFoundation.framework/AVFoundation, missing required architecture i386 in file
and an error which says: "_OBJC_CLASS_$_AVAudioPlayer", referenced from: objc-class-ref-to-AVAudioPlayer in songViewController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status.
Please do you or any body have any idea how to fix this issues.thanks.
karamsafwat 1 year ago
[myMusic setCurrentTime:0];
[myMusic pause];
obaidjawad 1 year ago
Ah now i found it , my volume was on 0,2 , put it on 1 and it works !
But , now when i press on stop its like pause !
sacha1996suchi 1 year ago