VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

A PIECE OF CODE FOR READING WAVE FILES

Altis  (3 Submissions)   Files/File Controls/Input/Output   Visual Basic 3.0   Advanced   Wed 3rd February 2021

(Updates is on https://www.vbcoders.com/xq/ASP/txtCodeId.26377/lngWId.1/qx/vb/scripts/ShowCode.htm)
Fellow">https://www.vbcoders.com/xq/ASP/txtCodeId.26377/lngWId.1/qx/vb/scripts/ShowCode.htm">https://www.vbcoders.com/xq/ASP/txtCodeId.26377/lngWId.1/qx/vb/scripts/ShowCode.htm)
Fellow programmers. Ever wonder how one company's software reads a wave file and show it as a wave sample?


This code demonstrated how you can read a wave file and DISPLAY it as a wave sample without using a single API! It opens a wave file (FOR RANDOM) to reads the so-call BINARY (ASCII) and draws the lines in a picture box according to the data in the file.

Please note that the wave samples produces by this code are not as detail as those you found in some WAVE EDITOR.


I'm still figuring out the wave format and try to play the sound. If you know a function that can play sections of a wave file, generate sounds at different volume and frequency or directly make the speakers (connected to the sound card) vibrate at different frequency and volume, please send me an E-mail...Thanks.

Assumes
Insert a command button, picture box and a common dialog box before running this code.

Returns
WAVE SAMPLES

Rate A PIECE OF CODE FOR READING WAVE FILES (17(17 Vote))
A PIECE OF CODE FOR READING WAVE FILES.bas

A PIECE OF CODE FOR READING WAVE FILES Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters