Added: 3 years ago
From: SimpleSDK
Views: 19,977
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (106)

Sign In or Sign Up now to post a comment!
  • Only when I can hear their gum being chewed in the audio. :(

  • whats with kids making programming tutorials?

  • @nuskafg do you have a problem with kids making tutorials?

  • Comment removed

  • FYI, your pointers don't care about the spacing around the asterisk. When making a tutorial, it's good to be consistent and maybe a little less "down to the character" specific.

  • Good Tutorial. But please don't eat chewing gum while you are speaking. It is terrible to hear this all the time.

  • For some reason it doesnt open the main window file

  • listen to this kid! oh man I can't believe the youngsters these days! you smarty pants!

  • @docdelusion I'm 8 and gonna make an app for Mac, PC, and DOS

  • I must be using a different version of xcode than you! PLEASE HELP!

  • @cod4glitchfreak What happened why isnt working with yours do you know version your using of Xcode

  • @Ineedhelpwithappdev I am using 3.2.6.

  • @cod4glitchfreak umm thats the free stuff u get with apple developers you can download I wonder when u build it under project is it listing your using like ios 4 latest or what ever when you trying simulate or something cause I think would work using that Xcode

  • @Ineedhelpwithappdev U could always try making soundboard app they show tutorials here on You Tube how do those its almost same for sound file and would play soundfile thing

  • @Ineedhelpwithappdev I have free version of Xcode for free developers the 3. thing like you have it will work for like sound board and thats like playing a sound file pretty much is

  • why are u eating ?!? XD

  • Comment removed

  • i havent got Class actions? What should i do? i think its my version of Xcode any suggestions?

  • hoho. speed learning by a kid. Us old fogey programmers are seriously trying to keep up!! :-)

  • doesnt work with Xcode 4 100% positive tried 6 times

  • You are moving your cursor everytime away from the stuff we need to see and i can't find avfoundation. Thanks, you waisted 8 minutes of my life! Tutorial for playing sound in C#, VB, C++ in Windows: 10 sec. Tutorial for playing sound on a Mac: 8 min (480 seconds). Thats 48 time's longer. Apple sucks!

  • @murdoch201 If you're a Windows fan then why are you here?

    Besides, this if for making an iPhone app in Objective-C.

    If you make a Mac app, you import it, then drag and drop it wherever you want, and that's it.

  • @A135S4656 Trying to make an app for my iPad (which i will bring soon back to the store)

  • hey i cant find avfoundation.framework file help me plz

  • Can so plz tell me the difference of placing the * on the right or left side like these: NSString *path = [[NSBundle mainBundle] pathForResource:@"Beat" ofType:@"wav"]; AVAudioPlayer* theAudio=[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];

    thxalot

  • @STRATWOW There is none I don't think. You can do NSString*path, NSString* path or NSString *path. I have tried all of them and they all work. It doesn't seem to make a difference.

  • @MilmersXcode thx so much :)

  • Great lesson, but in the future, please do not chew gum while you are recording a video. Thanks.

  • I have seven actions right now and number eight doesn't show up in the Interface Builder. How come????

  • I did what you did and it says error: expected ':' before ']' token what do I do to fix it?

  • so if i have a menu with 250 buttons (let's say a tips menu) and I want the same sound every time the user touches any of the buttons, should I just connect the sound file to each of the 250 buttons or is there a way of gathering all 250 in one place and connected only once? How do i gather them all together for that? Thanks a lot!

  • It says AVAudio and the Audio is undeclared help me

  • Thank you. :)  I'm just now learning to program, and you helped me ;)

  • Stop eating while you are recording. I hardly can hear what your saying

  • Stop eating while you are recording. I hardly cant hear what your saying

  • @SimpleSDK What XCode are you using? I'm using 3.2.4 and when you did the mainwindow.xib inspector build thing class action, I didn't have that option. And also, how do I get sounds to play when my app opens?

  • When a click build and run ther's an error. It says "Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain". What is that mean???

  • Comment removed

  • How do i get the sounds to not play over the other sounds when i press another button?

  • When I press build and run there's an error. It says There is no SDK with the name or path 'iphoneos2.2'.

  • YES

  • I can't start my app on my iPod, I've programming it for iOS 4.0...

    The App shut down when i start it. On my Mac the app crashed when I press the button to play the sound:(

  • Are you eatin gum? It realy anoies me :p

  • i dont have that add a action or actions bit.PLZ HELP!

  • I get that warning that you mention in the last few seconds of your video because I'm using a view controller. What is the line of code to add to my appdelegate file? Because the sound won't run.

  • i am tryin to build appn on i phone using xcode can any one suggest best material

  • You sound like a kid haha

  • @ludopieters hes 12 he said in a video

  • Great tutorial, works like a charm. I was wondering,... how do you do you a long sounds?

  • how can you make a stop button?  I tried 2 actions, connect them to the two buttons, and changed [theAudio play] to [theAudio stop], but only the play button works? please help

  • i had the same problem as stupidmoviesrock100. for some reason it doesn't say class actions. i think my version of xcode might be newer?

  • SimpleSDK! Thanks, you're the greatest! How do I get in touch with you if I need apps developed? I really haven't had time to concentrate on my first app and have been trying, for months, to get multiple sounds to play & following your tutorial and duplicating your steps I was able to produce my multisoundapp! I hope to finish this weekend and post it at the app store! I would have figured it out on my own, but you saved me some time and around $3,000 that developers wanted to charge me!

  • hi this is lak and i would need ur help to learn basics can u give suggestions

  • Man you are the kid in the Block. MMM love the tutorials, its like a pizza.

  • I cant find where to assign the action

  • Please help, i´m getting a error then i build it. The error is in the MainView.m

    " error: syntax error before 'theAudio' "

    Please help me. Nice vid by the way.

  • Simple SDK, I tried this tutorial and it worked beautifully. Then I tried it again, but added an ImageView b4 the MainView for a background image. When I build and go - the buttons are not active in the Simulator. It's like there is something covering the buttons-they are not active. What 's happening here?

    Thanks again for all of your great videos - I will definitely keep checking them out!

  • @bt3d maybe try sending the background to the back

  • why do ppl fake tutorials...i mean whoever wrote this code should have talked rather than making this kid talk...and that pch pch noise that you make during explaining something sucks..

  • i have tutorials

  • How can I make a button work to stop the sound file?

  • where do i get the sounds

  • Thank you for this. Someone in a forum directed me here and it has helped out a lot. I've spent weeks trying to get my program to play sound and this finally made it work.

  • Yo m8, I got a question, how do I add more sound to the file?

    So I can choose between two buttons (that plays two diff sounds)?

  • I did this. All i get is a black screen when i run it in the iphone simulator.

    Where did i go wrong??

    How do i fix it?

  • What resources did you use to learn objective-c???

  • I second that. I really wanna learn it but I can't seem to find any tutorials for newcomers to programming

  • When I open the Daft Punk app, it comes up with the screen (cell?) where you can select the "Better, Faster, Stronger" tab. How do you add another tab to take you to another screen? For example, to add artist info or whatever.

  • That Daft Punk App is AWESOME!!!!

  • I am getting this error...

    error: syntax error before '=' token

    error: syntax error before '=' token

    It's in the file we made called MainView.m

    Here's my code for it....

    #import "MainView.h"

    @implementation MainView

    - (IBAction)pushButton {

    }

    @end

  • I don't freakin have AVFoundation, can u help me??

  • Neither do I... :(

  • Me neither...

  • Actually, just do a spotlight search for it. It's there, somewhere. :)

    Search for "AVFoundation"

  • Thanks a lot.

    I actually had some problems with some Livetype.component and Divx 5.component located in the Library/Quicktime folder.

    Apparently they mess up the compiling or something, so if anyone is experiencing the same trouble just trash them out and you're fine to go!

    Nice video, keep them coming! cheers.

  • hey it gives me a error along with that so i cant run the app plz help

  • just letting u know i tried your app source code and every time i run it it freezes

  • how do you make more actions for mulitiple sounds

  • make more actions and connect them to other buttons

  • How do you do this with multiple sounds and buttons? Thanks- Will

  • make more actions.

  • then what would the code be because it gives me some errors...so i renamed "TheAudio" variable...and i dont know how to tell it to play the sound on the second button...please help!

  • how much more code or what do you put?

  • Comment removed

  • can you do .aiff?

  • Yep.

  • Sweet thanks

  • @SimpleSDK

    How to automatic play songs on start?

  • @Dreceon  put that code on the ViewDidLoad method.

  • nice job man

  • every time i try to copy what you do on my xcode project i always get like 14 errors!!!! I just don't understand!

  • Your forget to add the framwork

  • That might be it.

  • I get this to build exactly the same as you but when I press the push button it just remains highlighted and no sound comes out. Could this be the sound file I am using. I have tried .mp3 .wav and .mp4 too but still the same

  • Comment removed

  • haha. nice sound.

  • hey can you help me....i got an error when i made this app..when i tried building this app an error came up in the mainview.m file. the error states this.. error: 'theAudio' undeclared (first use in this function) do i need to declare this as a variable becaue my code is exact to yours and you didn't have to declare it...is there any reason that you know of or a solution to this problem??

  • I have the same problem. did you figure it out?

  • thanks for your tutorial video. have a niceday !

  • can you make a tutorial on how to put your applications on you iPhone in real life plz

  • ill try. i know how, but well ill give it a shot

  • this is a good video =) but can you make one that tells how to play a video, make multiple windows, and use the swipe action, please help, i need some guidence =)

  • Yes i know how to do those but the videos kept getting messed up. I plan to make 4 videos this week.

  • you got great vidoes keep them coming

  • Amazing

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