Re: AudioFile problems with DVI ADPCM files
Re: AudioFile problems with DVI ADPCM files
- Subject: Re: AudioFile problems with DVI ADPCM files
- From: William Stewart <email@hidden>
- Date: Wed, 7 Jun 2006 12:00:16 -0700
The format in DVI is already Linear PCM isn't it? If so, then the job
you have to do is to pull the audio data out of this bitstream. this
isn't an audio converter operation - the converter works by you
providing the data you have already in contiguous blocks for
transformation to some other audio format.
This call is failing below because there is no Audio File component
that understands these files. You can write one - in which case its
main task would be too disentangle the audio data and return them
from the AudioFileReadPackets call. There's an example of this file
component in the CoreAudio SDK - /Developer/Examples/CoreAudio
Bill
On 07/06/2006, at 10:11 AM, Isaac Wankerl wrote:
Is it possible to convert DVI ADPCM wav files to kAudioFormatLinearPCM
using AudioFile and AudioConverter? Whenever I try to get the data
format of the input file like so:
CAStreamBasicDescription inputFormat;
UInt32 size = sizeof(inputFormat);
err = AudioFileGetProperty(infile, kAudioFilePropertyDataFormat,
&size, &inputFormat);
XThrowIfError (err, "AudioFileGetProperty
kAudioFilePropertyDataFormat");
noErr is returned but inputFormat is not filled in at all. Is this a
bug or am I (and the CoreAudio ConvertFile example) missing something
else in the setup?
Thanks,
Isaac
_______________________________________________
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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