Re: writing raw data
Re: writing raw data
- Subject: Re: writing raw data
- From: "Sandeep Chandna" <email@hidden>
- Date: Mon, 11 Sep 2006 17:44:35 +0530
plz c inline
On 11/09/06, Brad Ford <email@hidden> wrote:
On Sep 10, 2006, at 10:47 PM, Sandeep Chandna wrote:
> I have to encode raw samples of Audio data using Quicktime 7 API
> (scaudiofillbuffer etc).
>
> The scaudiocompress example uses a function
> 'MovieAudioExtractionFillBuffer' which (correct me if i am wrong)
> takes a MovieAudioExtractionRef as argument and writes encoded data
> in the AudioBufferList.
In the scaudiocompress example, you've got the following input /
output scenarios:
INPUT to SCAudioFillBuffer():
QuickTime Movie using MovieAudioExtraction (in this case the input
format is always PCM)
AudioFile API (in this case the input format is the format encoded in
the source file, which may be compressed)
OUTPUT from SCAudioFillBuffer():
QuickTime Movie using AddMediaSample2 (data may be any format,
compressed or uncompressed)
.CAF file using AudioFileWritePackets (data may be any format).
My question here is that if I get
a pointer to audio data (raw samples) how do I copy it to the
AudioBufferList (which is passed to the inInputDataProcRefCon) for scaudiofillbuffer to read/encode.
>
> I need to encode the raw data and write into AudioBufferList
> without using MovieAudioExtraction APIs. Can anyone help?
Not sure I understand the question. What's your source format? What
format do you want to produce? Are you asking how to properly fill
out an AudioStreamBasicDescription for some flavor of PCM?
Yes!
Like we had SoundComponentData in the SoundMgr API how do we set the
corresponding AudioStreamBasicDescription with the necessary encoding
parameters to get started with the encoding?
-Brad Ford
QuickTime Engineering
>
> Thanks
> Sandeep
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list (
>
> This email sent to email@hidden
--
Sandeep Chandna
98183-59325
_______________________________________________
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