Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting audio files to > 48 kHz




Le 30 juin 08 à 19:45, Bjorn Roche a écrit :

Hey all,

So I got this working. The trick is to recognize that QT does high sample rates only with versions 7 and later. If you don't already know that I don't know how you could ever do this. Anyway, once you know that, you can look in the QT docs for what changes in QT 7, and find the magic invocation, which looks sort of like this:

  Boolean useHighResolutionAudio = true;

// Hey exporter, I understand high-resolution audio!!
(void) QTSetComponentProperty(// disregard error
exporter,
kQTPropertyClass_MovieExporter,
kQTMovieExporterPropertyID_EnableHighResolutionAudioFeatures,
sizeof(Boolean),
&useHighResolutionAudio);


Why that's not the default is explained in the docs and you should probably read it. Anyway, of course this is not accessible from QTJ, because it's a QT 7 call and apple hasn't updated QTJ since before QT 7, which is a real shame, so I needed to write some JNI to make it work, but it does seem to work. Hopefully more testing won't reveal that my tiny bit of JNI to make that call didn't break something else :).

As long as I've done that, I might change my code to use JNI to simply set the conversion parameters programmatically rather than setting up tons of atom files (mono/stereo, 8/16/24/32/64 bit, 44.1/48/88.2/96/176.4/196 kHz) because I understand there is an API for that....

It would be great if someone wrote an up-to-date book on QuickTime, so you can find this kind of info where you expect it, rather than having to comb through updates.

bjorn

Maybe we should wait the release of QuickTime X before writing an up- to-date book. I don't have information about it, but I bet it will introduce some major changes, else it will be QuickTime 8 ;-)



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden

References: 
 >Converting audio files to > 48 kHz (From: Bjorn Roche <email@hidden>)
 >Re: Converting audio files to > 48 kHz (From: Bjorn Roche <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.