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.

First attempt at sound gauge

Featured Replies

I'm trying to produce a gradually changing gear wind sound using Jose Oliveira's code ( DxSound ). Here are the code snippets.MODULE_VAR airspeed = { AIRSPEED };MODULE_VAR gearhndpos = { GEAR_HANDLE_POS };...case PANEL_SERVICE_PRE_INSTALL:if (InitDirectSound()==S_OK) { LoadWaveFile( 0 , "Soundwind_general.wav" ); }...case PANEL_SERVICE_PRE_UPDATE:lookup_var(&airspeed);lookup_var(&gearhndpos);if (gearhndpos.var_value.n > 0) PlayBuffer( 0, 1 ); Eventually I plan to do something like this:if (gearhndpos.var_value.n > 0) { ChangeVolume( 0, some_function_of_airspeed ); PlayBuffer( 0, 0 ); }Eventually, because as of now no sound is played. Where should I start debugging ? Is there a way to include the wav file as a resource ? BTW, right now I have ZERO resources in this:MAKE_STATIC ( gws_static, NULL, NULL, NULL, IMAGE_USE_TRANSPARENCY, 0, 0,0 )Also, I keep getting compilation error about no type definition in this line of fs9gauges.htypedef (*GAUGE_KEY_EVENT_HANDLER) (ID32 event, UINT32 evdata, PVOID userdata);I changed it to :typedef void (*GAUGE_KEY_EVENT_HANDLER) (ID32 event, UINT32 evdata, PVOID userdata);but I'm not sure wheather this is correct (it doesn't make a difference in this gauge).

Disregard, I got it to work.

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.