by reza talatian azad (1 Submission)
Category: Sound/MP3
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (5 Votes)
press the keys and hear the different note from pc internal speaker.you can play music like piano.
this code work in
win 95,98,me .I promise next time to write the code for windows 2000 .in this coe I use port address of internal pc speaker.plese vote it.thank you.
(YOU MUST COPY "INPOUT.DLL" to directory "windows\system" and "windows\system32" or
in run type regsvr32 path\inpout32.dll
Inputs
the address of internal pc speaker for turn on and turn off it
Code Returns
different sound. music note
API DeclarationsPublic Declare Function Inp Lib "inpout32.dll" _
Alias "Inp32" (ByVal PortAddress As Integer) As Integer
Public Declare Sub Out Lib "inpout32.dll" _
Alias "Out32" (ByVal PortAddress As Integer, ByVal Value As Integer)