Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Programmatically determine if sound is on or off

Featured Replies

Do you know a way to determine in a gauge if the sound of FS is currently on or off?As I play gauge sounds in my code, I wouldn't like these sounds to play if the FS sound is off...Eric

Hi Eric,I don't think there is a way.The simplest way is to force the FS sound On when the gauge loads, and then maintain the current FS sound status locally by monitoring the sound events.Doug Dawson applied this "trick" in his latest XMLsound gauge.Cheers, RobPS: How is your A321 panel progressing ?? I'm still interrested :-)

It's not very reliable but:Test the Q key in a hook or intercept the sound off message (never tried htis last approach)Jos

Hi Jose,That's what I suggested as well :-)The only problem is that if FS starts up with SoundDisabled, you'll never get the SOundOff event ..Cheers, Rob

For a C gauge:Took me about 30 seconds of playing with a memory search program to find that Global.dll + 0x3B20 (Linkage + 0x0B20) is just what you're looking for. You can even write that value to turn sound on/off. ;-)

Matt Kaprocki

Boeing777_Banner_DevTeam.jpg

For fastest support, please submit a ticket at http://support.precisionmanuals.com

  • Commercial Member

Matt-you sure you didn't cheat by looking into Pete Dowson's "FSUIPC for Programmers.doc" file which has most "old" global.dll pointer values ready for you? :-)(just teasing...)Best,

Lefteris Kalamaras - Founder

www.flightsimlabs.com

 

sig_fsldeveloper.jpg

Hi Matt,Good to see you at Air Orlando last week!W. Sieffert

Bill Sieffert

  • Author

Thanks for the info, but I'd rather NOT use this method because it is not very "standard", and not documented. It will probably not work in FS2006.Nevertheless, it works fine in FS2004 :-)Thanks.Eric

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.