• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Audio File Services won't open some SDII files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio File Services won't open some SDII files


  • Subject: Re: Audio File Services won't open some SDII files
  • From: James McCartney <email@hidden>
  • Date: Thu, 24 Sep 2009 12:29:53 -0700


Please file a bug at bugreporter.apple.com and attach the files to the bug.

On Sep 24, 2009, at 9:40 AM, Sebastian Morsch wrote:

Alejandro,

fortunately, I learned a little bit more about the issue by sending you the two files...

Before I sent them, I changed the file names into something more meaningful and added the .sd2 extension:
'Knock Door 1 (not working).sd2'
'Knock Door 2 (working).sd2'

I just tried to load these renamed files again with CoreAudio and - tadaa - AudioFileOpenURL was able to open them!


So I did more testing. Here's the result compiled for everyone who might stumble across this in the future:

- for an unknown reason some SDII files WITHOUT the '.sd2' extension won't open with 'AudioFileOpenURL' (even though QuickTime is able to open them).
- opening those files will fail with an 'kAudioFileUnsupportedDataFormatError' (4-char: 'fmt?').
- using the 'inFileTypeHint' parameter doesn't help.
- if the file name DOES end with '.sd2', these files CAN be opened!
- for other (uncorrupted) SDII files, it doesn't matter if the extension '.sd2' is present or not.


I just don't know why those two files couldn't be opened by your application at all, that's very weird. On my system, AU Lab and my own code both where able to play the files in question when .sd2 was appended to the file name.


Thanks for  the help.
Sebastian



Am 23.09.2009 um 22:18 schrieb Alejandro:

Sebastian,

You are welcome!

What I have found is that the QuickTime player runs perfectly the files, but Audiohive (our own app) does not recognise the file format and cannot open it. Our code tries first to use the Apple AudioFile library. If it is not successful with the file then it tries with the QuickTime library. Some of the files (like MP3, AC3 and such compressed files and also movie files with embedded audio) can only be read from the QuickTime Library.

I guess that something is wrong in your files because none of the Apple libraries can open them. They can be corrupted somehow? I can assure that regular Sound Designer II files are correctly read.
But then I can't guess why the QuickTime player can!

Alejandro

--

Alejandro Palencia

Open Studio Networks

www.openstudionetworks.com

+34 667440770

Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Audio File Services won't open some SDII files (From: Alejandro <email@hidden>)
 >Re: Audio File Services won't open some SDII files (From: Sebastian Morsch <email@hidden>)

  • Prev by Date: Re: Audio File Services won't open some SDII files
  • Next by Date: Re: Reduce Audio Time Latency
  • Previous by thread: Re: Audio File Services won't open some SDII files
  • Next by thread: Re: Coreaudio-api Digest, Vol 6, Issue 365
  • Index(es):
    • Date
    • Thread