Sound Without Multimedia 
Author Message
 Sound Without Multimedia

I've declared the PlaySound function and it works fine.  Anyone know the
best way to STOP the sound?  I tried setting the retval of that function to
null but that doesn't work.

Thanks



Wed, 07 Jan 2004 01:06:10 GMT  
 Sound Without Multimedia


The retval as Null ? Why ?

sndPlaySound(vbNullString) might do it. Can't look it up now.

Quote:
>I've declared the PlaySound function and it works fine.  Anyone know the
>best way to STOP the sound?  I tried setting the retval of that function to
>null but that doesn't work.

>Thanks

Regards, Frank.


Wed, 07 Jan 2004 13:36:36 GMT  
 Sound Without Multimedia
Thanks ....that did it.

Option Explicit
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA"
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

Private Sub Command1_Click()
Dim retval As Variant
retval = sndPlaySound(vbNullString, &H1)
End Sub

Still learning ...thanks again
Gene


Quote:
> I've declared the PlaySound function and it works fine.  Anyone know the
> best way to STOP the sound?  I tried setting the retval of that function
to
> null but that doesn't work.

> Thanks



Thu, 08 Jan 2004 02:00:31 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Capturing sound info from sound card without a WAV file

2. How to produce sounds without a sound card

3. Sound, Wave, Multimedia, API, How?

4. Programming for MultiMedia:Sound

5. Multimedia MCI Control repeats the sound forever

6. MultiMedia Sound please help

7. Can MultiMedia control play AVI with sound track?

8. Multimedia Control Quality of Recorded Sound

9. linking multimedia sound bits in a MS-Access database to a VB-application

10. Multimedia Sound amplitude and frequency

11. Multimedia Sound amplitude and frequency

12. Is there any way to play a wav and avi without having teh ocx multimedia controls

 

 
Powered by phpBB® Forum Software