Re: AIFFWriter - Select Output Encoding Format dialog box
Re: AIFFWriter - Select Output Encoding Format dialog box
- Subject: Re: AIFFWriter - Select Output Encoding Format dialog box
- From: Brad Ford <email@hidden>
- Date: Sat, 31 Jan 2009 21:02:09 -0800
On Jan 31, 2009, at 3:19 PM, James Udo Ludtke wrote:
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?
Sounds like you're using a QuickTime component for the dialog. It's
unclear which one you're using, scdi/soun, or scdi/audi? The latter
is the preferred method. scaudiocompress sample code shows how to
configure the SCAudio component. You provide it an output asbd before
displaying the dialog, and it will contain the sample rate from the
output asbd you provided.
-Brad Ford
QuickTime Engineering
_______________________________________________
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