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
|