Hello from a newbie,
I am trying to do some research on an upcoming project that involves reading
in audio files of various formats and using the audio signal as a source of
noise to generate pretty pictures. (like windows media player visual plugins.
I will be developing in C++ and was wondering if there are any packaged
libraries out there that I can use to read audio files encoded in different
formats and lets me easily access the data part of the audio already decoded.
Thanks in advance for the help!
-Vincent
William DePalo [MVP VC++] - 19 Jun 2005 18:37 GMT
> I am trying to do some research on an upcoming project that involves
> reading
[quoted text clipped - 8 lines]
> formats and lets me easily access the data part of the audio already
> decoded.
There is an API for reading and writing RIFF files that goes way back. The
functions within it all have names that start with mmio... which is short
for multimedia I/O.
Sadly, the really old samples that demonstrated the use of these functions
were pulled from the PSDK some time ago.
You may still be able to find one of those samples (named ACMAPP for audio
compression manager application) here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html
/vcsmpacmapp.asp
It does not do what you want exactly, but in order to compress and
decompress wave files, it has to open them, examine their formats, "descend"
into the data "chunk" etc. which is what you'd have to do to plot a graph
and whatnot.
> Thanks in advance for the help!
You are welcome. Please post follow-up in the multimedia group
microsoft.public.win32.programmer.mmedia
Regards,
Will
Carl Daniel [VC++ MVP] - 19 Jun 2005 20:00 GMT
> Hello from a newbie,
>
[quoted text clipped - 7 lines]
> encoded in different formats and lets me easily access the data part
> of the audio already decoded.
You should look into DirectPlay. What you describe would be a render
(output) filter in a DirectPlay filter graph, with the DrictX runtime
suppling all of the file format and compression codec modules.
-cd