• 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
Questions about ConvertFile Sample Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Questions about ConvertFile Sample Code


  • Subject: Questions about ConvertFile Sample Code
  • From: C Van Winkle <email@hidden>
  • Date: Tue, 26 Jul 2011 16:44:23 -0500

Hi, in reviewing the Apple-provided sample code here:

http://developer.apple.com/library/mac/#samplecode/ConvertFile/Listings/utils_cpp.html

There's some curious things in there:

1. Where are the following two headers?   I can not find them and searching via Google restricted to the domain of apple.com only yields the URL from above

    #include "QTLicensedTech.h" // So we can access the AAC aenc
    #include "CAWindows.h"

2.  There's mentions of Win32, is it _even possible_ to compile this on Win32?   I would assume that the QuickTime SDK for Windows is needed

int main (int argc, char * const argv[])
{
#if TARGET_OS_WIN32
    QTLicenseRef aacEncoderLicenseRef = nil;
    QTLicenseRef amrEncoderLicenseRef = nil;
    OSErr localerr;
#endif
    int result = 0;
    CFURLRef inputFileURL = NULL;
    CFURLRef outputFileURL = NULL;

#if TARGET_OS_WIN32
    InitializeQTML(0L);
    {
        OSErr localerr;
        const char *licenseDesc = "AAC Encode License Verification";
        const char *amrLicenseDesc = "AMR Encode License Verification";

        localerr = QTRequestLicensedTechnology("com.apple.quicktimeplayer","com.apple.aacencoder",
                    (void *)licenseDesc,strlen(licenseDesc),&aacEncoderLicenseRef);
        localerr = QTRequestLicensedTechnology("com.apple.quicktimeplayer","1D07EB75-3D5E-4DA6-B749-D497C92B06D8",
                    (void *)amrLicenseDesc,strlen(amrLicenseDesc),&amrEncoderLicenseRef);
    }
#endif



 _______________________________________________
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

  • Prev by Date: Re: stop a sound file after playing once?
  • Next by Date: Lion-USB Class devices, non-mixable integer support?
  • Previous by thread: Re: Headphone-only audio bug on iPad 2
  • Next by thread: Lion-USB Class devices, non-mixable integer support?
  • Index(es):
    • Date
    • Thread