| Main > Software Forum |
| Sound and Programming in VB6 |
| (1/8) > >> |
| digitaldj:
Has anybody worked with sound and VB6. What i need to do is add sound to a lighting program a couple of friends and i have written but none of us have ever worked with sound from the computer before. Thanks, Jukeman |
| headkaze:
Just use the PlaySound API function. Here is some example code http://www.a1vbcode.com/snippet-179.asp |
| digitaldj:
Here is what it explains: ---------------------------------------------------------------------------------------------------------- This code uses the Playsound API function. Playsound can read files from standard WAV files on disk, by reference from the system registry, or from a resource file. For the application developer, this means that you can create a registry entry for your sound effects, which means that the end user can use the control panel to customize their preferences in sounds. You avoid designing another configuration screen or panel, and the user can still customize the application. ---------------------------------------------------------------------------------------------------------- I want to monitor the sound from the sound card and i want to filter it for one option so i can do red for highs, green for mids and blue for bass. The other option is to control patterns from sound. The sound would have to be converted so my processor boards would understand it. I hope this is a better explanation and if this api does it i don't see that it will do it for me! Jukeman |
| headkaze:
This VUMeter example shows how you can monitor the wave out. You must go into your recording settings using the volume control (sndvol32.exe) and set it to Stereo Mix. |
| digitaldj:
I'm not getting anyhting when i run the code, if it is because i am using mp3 instead of wave how do i fix that? Jukeman |
| Navigation |
| Message Index |
| Next page |