by Dave Katrowski (16 Submissions)
Category: Sound/MP3
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)
Led follows wav file. See how to Load a wav file into a byte array using DirectSounds ReadBuffer method, then read that info into an led at run-time. Simply check for playing wavs position, then use that position as a lookup point in the byte array. Then some simple math turns 0-127 into 0-10. This is not completly accurate because some wavs are mono and some are stereo.
Download Audio LED (5 KB)