_beep(nFrequency,nDurationInMilliseconds)

Windows specific questions.
Post Reply
jimdunn
Posts: 13
Joined: Jan 28, 2016 15:07

_beep(nFrequency,nDurationInMilliseconds)

Post by jimdunn »

Hey, I'm hoping someone can tell me why this is happening and a cool work-around... what else is new, right? : )

ENVIRONMENT: I have speakers in my laptop, and 3.5mm headphones, and a USB headset, and... a bluetooth headset. I have them ALL plugged in but only use them one at a time. When I plug in the 3.5mm headphones, it turns off the laptop speakers, when I plug in the USB headset it turns off the headphones, and when I turn on the bluetooth headset it turns off the USB headset.

GOOD NEWS: When I play a movie or music, I can hear everything just fine with all of the above listed hardware... all as expected, no problems!

BAD NEWS: When I try to use the _beep() function, I can hear the beep everywhere EXCEPT on the bluetooth headset.

Here's my code:

Code: Select all

#Define UNICODE
#Define WIN_INCLUDEALL
#Include Once "windows.bi"

Private Sub jBlip (ByVal n1 As LONG = 3000, ByVal n2 As LONG = 250)
    _beep n1, n2
End Sub

jBlip()
Thanks!!
adeyblue
Posts: 300
Joined: Nov 07, 2019 20:08

Re: _beep(nFrequency,nDurationInMilliseconds)

Post by adeyblue »

jimdunn wrote: Oct 22, 2023 16:12 Hey, I'm hoping someone can tell me why this is happening
You probably have system sounds muted in the volume mixer thing when the bluetooth is plugged in.
and a cool work-around
Unmute them
Post Reply