AIFFWriter - Select Output Encoding Format dialog box
AIFFWriter - Select Output Encoding Format dialog box
- Subject: AIFFWriter - Select Output Encoding Format dialog box
- From: James Udo Ludtke <email@hidden>
- Date: Sat, 31 Jan 2009 18:19:27 -0500
Hi There,
This is a continuation from an earlier post "Write a sound file with
sounds generated within the app".
Rather than write the sound file in real time while it is being
played, I took the advise and write the file using a duplicated tone
generator method. I based my code on the Apple sample code
"AIFFWriter". I have everything working OK. To my surprise, on my
MacPro, generating the sound values and writing the AIFF file for ten
minute playing time, takes a few seconds.
The code I borrowed from the sample code throws up a dialogue box
called "Select Output Encoding Format". To enhance my customer's
interface experience I would like to:
1. Preset the rate to a value depending on the type of tone sequence I
generate.
2. Suppress the appearance of the dialogue box altogether.
Item 2 can be done easily by deleting: err = SCRequestImageSettings(ci);
I do need help with item 1.
The default rate selected in the dialogue is 22050. How can I set the
default value to one of the other suggested values, such as 44100?
Thanks,
James
_______________________________________________
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