![]() |
[VB6] DirectSound Example - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework) +--- Thread: [VB6] DirectSound Example (/Thread-VB6-DirectSound-Example) |
[VB6] DirectSound Example - Coder-san - 12-02-2010 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. ![]() 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: www.dx4vb.da.ru 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. Code: Option Explicit For this to work, you would have to refer DirectX 7 Visual Basic Type Library |