• 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
AudioFile CGI problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioFile CGI problems


  • Subject: AudioFile CGI problems
  • From: Ashley Allen <email@hidden>
  • Date: Wed, 01 Apr 2009 16:46:23 -0700

Hi,

I have written a CGI script that uses Core Audio and Core Foundation to load some samples and render them to a file. Everything works find when I run the script as a command-line utility. However, when I run it as a CGI script it hangs in the code that loads the samples.  I am making the following calls:

        result =  CFURLCreateDataAndPropertiesFromResource (kCFAllocatorDefault, sampleElement->uri, &(sampleElement->resourceData), &(sampleElement->properties), desiredProperties, &errorCode);
fprintf(stderr,"CFURLCreateDataAndPropertiesFromResource reulted in %d\n",  errorCode); 
fflush(stderr);
        fprintf(stderr,"Calling AudioFileOpenWithCallbacks\n"); 
status = AudioFileOpenWithCallbacks ((void*)sampleElement->resourceData, MyAudioFile_ReadProc, MyAudioFile_WriteProc, MyAudioFile_GetSizeProc, NULL, 0, &sampleElement->fileid);


The CGI script never makes it out of the CFURLCreateDataAndPropertiesFromResource. 

This seems like standard stuff.  Has anyone done something similar using Core Audio and Core Foundation?


Thanks,
Ashley

 
 _______________________________________________
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

  • Follow-Ups:
    • Re: AudioFile CGI problems
      • From: james mccartney <email@hidden>
  • Prev by Date: Re: track location information
  • Next by Date: Quicktime for Windows sound capture
  • Previous by thread: Re: track location information
  • Next by thread: Re: AudioFile CGI problems
  • Index(es):
    • Date
    • Thread