Valhalla Legends Forums Archive | General Programming | Re: Playing Sounds out of the HD [VB] or [C++]

AuthorMessageTime
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"..
March 5, 2006, 10:28 PM
Myndfyr
Why wouldn't you just do something.... crazy!... like import the PlaySound API?
March 5, 2006, 11:11 PM
MysT_DooM
[code]
Public Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
[/code]
March 6, 2006, 1:08 AM
iago
Does it actually come out of the HD?
March 6, 2006, 4:16 PM
Stealth
[quote author=iago link=topic=14440.msg147732#msg147732 date=1141661819]
Does it actually come out of the HD?
[/quote]

Reminds me of "Scanjet-elise" (WMV)

Edit: Thanks for the better link
March 7, 2006, 1:07 AM
iago
[quote author=Stealth link=topic=14440.msg147773#msg147773 date=1141693637]
[quote author=iago link=topic=14440.msg147732#msg147732 date=1141661819]
Does it actually come out of the HD?
[/quote]

Reminds me of "Scanjet-elise" (WMV)
[/quote]

Better link :)

That's pretty cool, though :)
March 7, 2006, 2:26 AM
Grok
[quote author=iago link=topic=14440.msg147732#msg147732 date=1141661819]
Does it actually come out of the HD?
[/quote]

Definition of hard drive:  "the box that my monitor/keyboard/mouse is attached to."
March 30, 2006, 10:48 PM

Search