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.

Silencing dsd_sound outside the cockpit

Featured Replies

I put this in the gauge... (A:COM TRANSMIT:1,bool) 1 == if{ 1 (>L:c1on,number) 0 (>L:c2on,number) } (A:COM TRANSMIT:2,bool) 1 == if{ 0 (>L:c1on,number) 1 (>L:c2on,number) } (P:ACTIVE VIEW MODE,enum) 3 >= if{ 1 (>L:dsd_xml_sound_volume,number) } els{ 95 (>L:dsd_xml_sound_volume,number) } My only question is this - is it a bad idea to keep telling dsd_sound a volume setting with every refresh? I don't notice any sort of performance hit at all, I was just wondering.

All you're doing here is assigning a value to an L:Var. That's pretty cheap as far as CPU cost goes. Do keep in mind though, nothing will happen unless you are also setting the sound's control variable somewhere.The other thing to keep in mind, if you are looking to be efficient with processing power, is that playing a sound has the same CPU cost, regardless of volume level. If you really want to save CPU cycles, refine your logic to actually shut the sounds off when the user is in an external view.Doug

Actually, I decided that I didn't like NO sound, so I set it to be very faint instead.At any rate, I just wanted to be sure I wasn't doing something that was going to create a situation where resources were being consumed and would build up into a problem - like an endless loop of sorts...Again, thanks for this great "Gauge" to bridge the gap between XML gauges and sound! :-yellow1 :7

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.