Re: Problem with a MP3
Re: Problem with a MP3
- Subject: Re: Problem with a MP3
- From: p3consulting <email@hidden>
- Date: Sun, 21 Mar 2004 21:43:23 +0100
One thing you might want to try is playing the file with QuickTime
Player which has the same decoder but a different file parser so it may
be able to handle the file. That doesn't solve your problem but it may
give you another helpful data point.
Indeed PlayAudioFile fails but Finder works on the very same file
Long story short, there's nothing you can really do to pre-validate the
file.
OK, if there is no solution from inside one application, I will do the
preflight in a command line
tool I will include in the application bundle, according to the
original file size if the tool is still running
after (file size * some_coefficient_to_find_by_trial_and_error) = N
seconds or a GUI action by the user occured,
I kill it by sending it a signal and I display a message to the user
At least it will avoid the need of force quit the main application
(where user data may not be saved yet)
The best would be to make the full player in the tool and to
communicate with it from the main application thru a Mach port
(or any higher level interprocess comm)...
Pascal Pochet
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.