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.

Using sustaining loops in sounds

Featured Replies

As you may know, you can create sustaining loops in sounds, as MS has which allow the spin up, sustaining part, and spin down of sounds to all be contained and played in a single sound file (at least using the FS sound system).However, when the FS sound system will not trigger sounds for us, and we have to do so ourselves with directX, I am wondering how we can do something similar, ie. trigger the sound which will play the clip with the sustaining part, and then trigger sometime later the "tail" of the sound.I'm searching the directX SDK as we speak, but if you can clue me in I thank you.

I think the GetCurrentPosition and SetCurrentPosition methods are what you are looking for.Doug

Thanks Doug.It seems I have to extend my sound system a bit.

I just looked those functions up. We're dealing in bytes here, not seconds. Only way to keep it to integer values I guess.Grim...Doug

Actually, I think I have to read these as midi to make this work. =(Would have been nice if the dang starter just worked and would trigger sounds so I could use the game engine instead.For some reason, the starter is there, and toggles now (they fixed that), but won't trigger any sound under engine type 3.

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.