Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-13-2010, 09:18 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 6
ClarityGames is on a distinguished road
Default Sound playing in simulator but not device

Hi,

I'm relatively new to iPhone development and am having a problem getting a sound that plays on the Simulator to actually play on the device.

I'm using the SoundEffect class that comes along with the BubbleLevel demo project to play a .caf file. I've added the correct framework and I've checked the case of the file name I'm using, which seems to be the two main reasons for this sort of error, but to no avail. I know my iPod Touch test device isn't on mute either, so I'm at a loss for what to try next.

The SoundEffect class uses the AudioServices method of playing the sound file so I'm trying the simplest possible method for playing a.caf. My iPod and my simulator are both on 3.1. Anyone got any ideas for anything else that I could try?

Thanks
ClarityGames is offline   Reply With Quote
Old 02-14-2010, 07:21 AM   #2 (permalink)
Obj-C Learner
 
Join Date: Apr 2009
Location: Manchester, UK
Posts: 1,030
ZunePod is on a distinguished road
Send a message via MSN to ZunePod Send a message via Yahoo to ZunePod
Default

Try this : Sound on simulator but not device - Stack Overflow
ZunePod is offline   Reply With Quote
Old 02-14-2010, 11:30 PM   #3 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 21
dennisnederlof is on a distinguished road
Default

I have found that sounds over 5 seconds, will play on the sumulator, but not on my iPhone. I just shortened my sound effects, and it worked.
dennisnederlof is offline   Reply With Quote
Old 02-15-2010, 08:41 AM   #4 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 6
ClarityGames is on a distinguished road
Default

Thanks, zunePod and dennisnederlof. The issue turned out to be a lot simpler than that. My iPod's settings for 'Sound Effects' was set to speaker only, not headphones. I use my iPod for playing games more than for playing music so I did not suspect that there could be a setting on the iPod that would allow most games to play their sound effects but that would mute mine.

So my next question is this:-

If I use the AudioServices library and it's the only library that responds to the 'Sound Effects' setting of the iPod, how many people will find that, like me, their iPods / iPhones will play the sounds in all of their games except mine? What's the default setting for Sound Effects? And is there any way in code to override the Sound Settings on the device?
ClarityGames is offline   Reply With Quote
Reply

Bookmarks

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



» Advertisements
» Online Users: 400
7 members and 393 guests
13dario13, iOS.Lover, jeroenkeij, Leslie80, Wikiboo, Yosh_K
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,670
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Yosh_K
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:43 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0