Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 2    Views: 346

Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
09/02/14 12:27 PM (10 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: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
09/02/14 12:35 PM (10 years ago)
 
MacApple
Apple Fan
Profile
Posts: 4675
Reg: Oct 25, 2010
USA
61,150
like
09/02/14 05:51 PM (10 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.