Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29302 Discussions

Fortran source code sample for reading a .wav file in Visual Fortran?

drstevekramer
Beginner
1,339 Views
Could anyone point me towards sample code to read an uncompressed .wav file and store the time and amplitude values in arrays?
Alternatively, if you know of a free DLL that handles reading .wav files andthat could be called from DVF 6.0, that would work as well.
Thanks,
Steve
0 Kudos
3 Replies
garyscott
Beginner
1,339 Views
Hi, I have some code but since it is proprietary, I can't provided it. However, I used the following format definitions and found it quite straightforward. In my case, I just skipped over some of the optional parts such as those dealing with play lists.
0 Kudos
Intel_C_Intel
Employee
1,339 Views

Hi Steve,

I have a file loader plug-in for reading WAV files that will be included with the next release of Array Visualizer. The plug-in will allow you to read WAV data from Fortran in addition to viewing the data in the Array Viewer program. This will only work with the Array Visualizer version included with IVF 8.0 though.

If you are interested in trying it out I can send you the plug-in .exe.

John

0 Kudos
drstevekramer
Beginner
1,339 Views

Thanks very much for the reply, John. Unfortunately, we have only CVF 6.0, not IVF 8.0 nor the Array Visualizer, so I'm afraid the plug-in wouldn't be of use. I did use Gary Scott's suggested reference websites and was able to write the needed code. Thanks again to both of you.

Best regards,
Steve

0 Kudos
Reply