Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 2    Views: 328

Bonzo
Apple Fan
Profile
Posts: 780
Reg: Jan 30, 2012
Basingstoke
13,500
09/02/14 12:27 PM (9 years ago)

[SOLVED] Audio over 30 seconds

Anyone know how to play an audio file over 30 seconds? i have 3 audio files with lengths of 19s, 50s, 1:10s the 19s audio file plays perfectly using CFBundleRef mainBundle = CFBundleGetMainBundle(); CFURLRef soundFileURLRef; soundFileURLRef = CFBundleCopyResourceURL(mainBundle, (CFStringRef) @"songname", CFSTR ("wav"), NULL); UInt32 soundID; AudioServicesCreateSystemSoundID(soundFileURLRef, &soundID); AudioServicesPlaySystemSound(soundID); audios over 30 seconds will not play though. :( Help! Thanks
 
Bonzo
Apple Fan
Profile
Posts: 780
Reg: Jan 30, 2012
Basingstoke
13,500
like
09/02/14 12:35 PM (9 years ago)
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
09/02/14 05:51 PM (9 years ago)
Posted and solved in 30 seconds as well! Good stuff.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.