Re: writing raw data
Re: writing raw data
- Subject: Re: writing raw data
- From: Brad Ford <email@hidden>
- Date: Sun, 10 Sep 2006 23:02:11 -0700
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).
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?
-Brad Ford
QuickTime Engineering
Thanks
Sandeep
_______________________________________________
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
_______________________________________________
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