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.

xml sound

Featured Replies

Hi,Is it possible, and how to program!!, to play different sounds with toggle Afterburner?I mean, when you click a switch on, you must hear "Afterburner1" and when you click the switch off, "Afterburner2"When i program, both sounds are played by clicking on and off.Here is my wrong! code:L:ub1, bool) ! (>L:ub1, bool) (>K:TOGGLE_AFTERBURNER1) !(>K:TOGGLE_AFTERBURNER2)Any advise or help is very welcome.And when i'm not posting anything before 2003,i whish you all a merry Christmas and a happy new year!Janhttp://community.webshots.com/storage/1/v4...75aouncN_th.jpg

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Hi Jan,The XMLsound gauge just monitors the state of the Toggle_Afterburner state; when this changes, it plays the .wav file coupled to it.What you need to program is something like: (L:ub1,bool) ! (>L:ub1,bool) (L:ub1,bool) if{ >K:TOGGLE_AFTERBURNER1 } els{ >K:TOGGLE_AFTERBURNER2 }So, toggle the state of ub1 and, depending on the new state, play one sound or the other.Rob

Hi Jan,I'm sure it's not an elegant way and a programmer could write the code much more professional but it should work:(L:ub1, bool) 1 == if{ 0 (>L:ub1, bool) (>K:Toggle_Afterburner1) } els{ 1 (>L:ub1, bool) (>K:Toggle_Afterburner2) }The code switches ub1 to 0 if the actual position is 1 and to boolean 1 if the actual position is 0. When switching to boolean 0 Afterburner 1 is played and when switching to 1 Afterburner 2 would be played. Haven't tried it yet.Best RegardsMatthias

  • Author

Thanks for your efforts Matthias and Rob!I applied it in the APU of Roman and now you can hear the APU start etc. and when you switch it off you hear only the click.Of course i use a large WAV-file for the APU (1820kb) and the wellknown clicksound.Here is the working code:(G:Var1) 0 == if{ 3 (>G:Var1) + (P:Local Time, seconds) 0.65 + (>G:Var2) 1 (>K:TOGGLE_AFTERBURNER3) } els{ 0 (>G:Var1) } 1 (>K:TOGGLE_AFTERBURNER1)Greetings,Janhttp://community.webshots.com/storage/1/v4...75aouncN_th.jpg

Jan

 

 

 

"Beatus ille qui procul negotiis..."

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.