View Full Version : AIFF & WavSource()
Dark-Cracker
9th April 2004, 22:30
hi,
i just write this thread to ask a silly question :)
AIFF and WAV file are PCM uncompressed file (execpt for aiff-c) .
i just ask me a question , u can open .wav file using the function WavSource() and using DirectShowSource(), but for .aiff i can only use directshowsource() but there is no direct show filter needed (only direct output).
so my question is : why not add .aiff support on the wavsource function. but perhaps it's useless and directshow() function will give u exactely the same result ?
Bye.
stickboy
9th April 2004, 23:18
I'm admittedly ignorant on AIFF, but here are my initial thoughts:
WAV files are not necessarily uncompressed PCM. Even uncompressed PCM WAV files are not directly interchangeable with uncompressed AIFF files, although the conversion should be pretty trivial. (I assume they have different endianness.)
Are AIFF files that common anymore (at least in the Windows PC world)?
There are plenty of existing tools to convert between AIFF and uncompressed PCM WAV.
I think WAVSource's implementation is dependent on RIFF headers, which AIFF files won't have.
Opening an AIFF file with WAVSource doesn't make conceptual sense.Someone could write an AIFFSource plug-in, though. Is there demand for it?
Dark-Cracker
10th April 2004, 00:20
1. yes
2. no
3. perhaps
4. yes
5. yes
in fact i use .aiff because uncompressed wav generated by some software (besweet,surely dtsdec) have a limit of the filesize at 2GB dspguru have not time to fix this and using .aiff there is no such limit. i suppose but avisynth use a function WavSource() to use ACM codec to get uncompressed audio data, so my question is : is it correct to use directshowsource() function to use .aiff while it's an uncompressed format.
esby
10th April 2004, 04:02
is it correct to use directshowsource() function to use .aiff while it's an uncompressed format.
Yes, it is correct,
DirectShowSource() has nothing to do with the compressed/uncompressed state.
It just means it tries to load the file via calling the directShow filters installed on the computer.
Since aiff is not wav,
you are forced to use directShowSource() supposing a decoding direct show filter exist.
In fact you would need either an AiffSource() or either a directshow decoding filter.
The fact it the data are not compressed does not allow to load it directly, since it uses a different format, which avisource() or wavesource() is not supposed to known.
esby
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.