Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 2    Views: 169

Bonzo
Apple Fan
Profile
Posts: 756
Reg: Jan 30, 2012
Hampshire, ENGL...
13,260
09/02/14 12:27 PM (5 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: 756
Reg: Jan 30, 2012
Hampshire, ENGL...
13,260
like
09/02/14 12:35 PM (5 years ago)
 
MacApple
Apple Fan
Profile
Posts: 4651
Reg: Oct 25, 2010
USA
60,910
like
09/02/14 05:51 PM (5 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.