Advertisement
2002ASP Sound/MP3 #1161

Audio LED

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.

AI

Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Codice sorgente
original-source
Upload
Commenti originali (3)
Recuperato da Wayback Machine