Added: 2 years ago
From: willythetomato
Views: 8,277
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (29)

Sign In or Sign Up now to post a comment!
  • 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];

  • thanks for the tutorial

  • everything with 'myMusic' is 'undeclared'. Can anyone help me?

  • 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...

  • Anyone got the source code?

  • Exactly how long did it take you to figure out you never declared the volume variable?

  • I did all what you did but i have one warning which says:

    AVFoundation.framework/AVFound­ation, missing required architecture i386 in file

    and an error which says: "_OBJC_CLASS_$_AVAudioPlayer", referenced from: objc-class-ref-to-AVAudioPlaye­r 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 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 :)

  • 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 !

  • Comment removed

  • [myMusic setCurrentTime:0];

    [myMusic pause];

  • When I click play mt song doesn't play !

    Can somebody help me please ?

  • im having the issue with the stop button acting like a pause button....im hoping there is an easy solution.  I would greatly appreciate your help fixing that. I can't for the life4 of me figure out how to do it myself.

  • @illusionist987

    To fix that problem add the line:

    [myMusic setCurrentTime:0];

    to the end of the -stop method in the View Controller

  • Comment removed

  • Dude, that's wack!!! All that coding just for that?????

  • First of all Thank you a lot!

    but I've got a problem:

    I think the "Stop" Button doesn't reset the playposition!

    When I hit it, and then the "Play" button again, it has the same effect as the "Pause" Button.

    That's not how it's supposed to work, or is it?

    Could you explain that to me?

    Again Thanks a lot for the tutorial

  • i 2000 viewer

  • can you make a tutorial how add multiple songs to there ?

  • i am the 555 viewer :D

  • its working :)::):):)):

  • i thought this was on how to stream live music like AOL Radio.

  • I'm getting a linking error, is there a place i can download the project?

  • This is great!

    Any way you could add a slider for volume??

  • It doesn't work for me, It terminates due to uncaught exception.

    Great vid,

    Didn't work for me though.

  • @Uploadthedownload

    me too, how do we fix it =(

  • @Alias1EE7

    omg its cause song file name typed wrong

  • wow this is so cool your so cool i wish i was your friend because you seem really cool great video your cool have a good day and did i mention that-that was the coolest video ever!!!! YOU ROCK MY SOX

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more