• Welcome to Valhalla Legends Archive.
 

Re: Playing Sounds out of the HD [VB] or [C++]

Started by iNsaNe, March 05, 2006, 04:28 PM

Previous topic - Next topic

iNsaNe

VB6 --

Create an OLE and scroll down to sound file, it will be in format .wav. Under the command you want you put:

Private sub Command1_Click()
   
       OLE1.Action = 7

End Sub

The sound is already loaded into that OLE and 7 means play sound.
Or if you want the program to beep.... the command is "Beep"..

MyndFyre

Why wouldn't you just do something.... crazy!... like import the PlaySound API?
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

MysT_DooM


Public Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long


vb6, something about that combination of numbers and letters is sexy

iago

This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Stealth

#4
Quote from: iago on March 06, 2006, 10:16 AM
Does it actually come out of the HD?

Reminds me of "Scanjet-elise" (WMV)

Edit: Thanks for the better link
- Stealth
Author of StealthBot

iago

This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Grok

Quote from: iago on March 06, 2006, 10:16 AM
Does it actually come out of the HD?

Definition of hard drive:  "the box that my monitor/keyboard/mouse is attached to."