12-02-2010, 10:28 AM
Hello people. Below is an example of DirectSound (DirectX 7).
DirectX 7 should be available in many OS including XP, I am not sure about the newer ones but their usage should be similar.
With DirectSound you can give your VB6 app multi-channel sounds, with very low usage. Loop or simple, perfect for games. :smile:
I wouldn't say this is made or found by me, I just modded the original example.
Full credits go to Jack Hoxley. Here is his website:
Here is the source. "Y:\VB\Piano\b.wav" is the Wav file it will play.
For this to work, you would have to refer DirectX 7 Visual Basic Type Library
DirectX 7 should be available in many OS including XP, I am not sure about the newer ones but their usage should be similar.
With DirectSound you can give your VB6 app multi-channel sounds, with very low usage. Loop or simple, perfect for games. :smile:
I wouldn't say this is made or found by me, I just modded the original example.
Full credits go to Jack Hoxley. Here is his website:
[To see links please register here]
I can't seem to find the original example now.Here is the source. "Y:\VB\Piano\b.wav" is the Wav file it will play.
Hidden Content
For this to work, you would have to refer DirectX 7 Visual Basic Type Library