The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

2.2 Unlock / Jailbreak OS X | Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-13-2008, 01:39 AM
sweeneytodd's Avatar
What's Jailbreak?
 
Join Date: Jun 2008
Device + Firmware: iPhone 3G 16GB (2.0)
Operating System: Macbook Pro - OSX Leopard (10.5)
Posts: 26
Thanks: 1
Thanked 2 Times in 2 Posts
Having a button play a sound.

Hello.

I would really appreciate help with this as it is boggling my mind for almost a week now.

Ok, so, I am trying to have this button play a sound when clicked. I just have no idea how to do this.

I mean I know basics and stuff.

In Interface Builder:
Pretty much, what I have set up is Button connected to an object called sounds. Then, the event chosen is called "playsound1".


I wrote the class files, put them in the classes folder. and now I'm staring at the sounds.h and sounds.m in Xcode, with no idea what to do.

I was able to create a simple "Beep app" for REGULAR Cocoa using NSBeep. I just don't know how I can create an app that has this button that plays a given sound file in the app's filesystem.

As always, thanks so much for all the help!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2 (permalink)  
Old 07-13-2008, 08:39 AM
My iPhone is a Part of Me
 
Join Date: Jul 2007
Device + Firmware: iPhone 3G 2.0 Jailbroke!
Operating System: MAC OSX 10.5.4
Location: Deltona, Fl
Posts: 538
Thanks: 40
Thanked 46 Times in 41 Posts

lol that would be a cool app especially if you could change the sounds. I used to have a sound on my treo that sounded like a guy at works GPS so I would keep hitting it and it would drive him nuts! he even took it in for repair!! lmao!!

Check out ifart and igiggle they do something similar to what you want I think
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3 (permalink)  
Old 07-13-2008, 02:45 PM
sweeneytodd's Avatar
What's Jailbreak?
 
Join Date: Jun 2008
Device + Firmware: iPhone 3G 16GB (2.0)
Operating System: Macbook Pro - OSX Leopard (10.5)
Posts: 26
Thanks: 1
Thanked 2 Times in 2 Posts

they kind of do... but I can't get the source code... and.. they're jailbreak apps, so they are of no aid to me, unfortunately.

bump?

I found this:

AudioServicesCreateSystemSoundID

on the dev site.

any ideas?

Last edited by sweeneytodd; 07-13-2008 at 02:45 PM.. Reason: Automerged Doublepost
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


Go to Top
ModMyI

All times are GMT -6. The time now is 05:37 PM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 | Dedicated Server Hosting by SingleHop | Copyright © 2007-09 by ModMy, LLC. All rights reserved.

RSS / Contact Us / / ModMyi Home / Archive / Privacy Statement / Top


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122