Hello,
I've had incredible success using Doug Dawson's 64-bit gauge to make many system sounds on various airplanes.
The thing I was always wondering was why I always get a very short but very noticable gap between sounds that are single-play and looping. Is there a better way for me to code it? It's also worth noting I NEVER have this issue transitioning a loop sound to a single play sound.
Here is a video example, at 5 seconds you can clearly hear the transition from the start sound to the loop sound. Upon shutting down, you can clearly hear it's a very smooth transition and can barely tell that it's two different sound files.
Here's an example of the code I use, could it be better?
<!-- Equipment Cooling Sounds -->
<!-- Equipment cooling / bus powered on Sound -->
(L:AC_POWER_ON,number) 1 ==
(L:EQUIP_FANS_State,number) 0 == and
if{ 1 (>L:INT_EQUIP_FANS_START,number) 1 (>L:EQUIP_FANS_State,number) }
<!-- Check if start sound has been played, then switch sound control state -->
(L:EQUIP_FANS_State,number) 1 ==
(L:INT_EQUIP_FANS_START,number) 0 == and
if{ 2 (>L:EQUIP_FANS_State,number) }
<!-- play the loop sound -->
(L:AC_POWER_ON,number) 1 ==
(L:EQUIP_FANS_State,number) 2 == and
(L:INT_EQUIP_FANS_RUN,number) 0 == and
if{ 2 (>L:INT_EQUIP_FANS_RUN,number) }
<!-- End Loop and play "off" sound when AC power is lost, then reset control variable -->
(L:AC_POWER_ON,number) 0 ==
(L:EQUIP_FANS_State,number) 2 == and
if{ 1 (>L:INT_EQUIP_FANS_STOP,number) 0 (>L:INT_EQUIP_FANS_RUN,number) 0 (>L:EQUIP_FANS_State,number) }
I've had incredible success using Doug Dawson's 64-bit gauge to make many system sounds on various airplanes.
The thing I was always wondering was why I always get a very short but very noticable gap between sounds that are single-play and looping. Is there a better way for me to code it? It's also worth noting I NEVER have this issue transitioning a loop sound to a single play sound.
Here is a video example, at 5 seconds you can clearly hear the transition from the start sound to the loop sound. Upon shutting down, you can clearly hear it's a very smooth transition and can barely tell that it's two different sound files.
Here's an example of the code I use, could it be better?
<!-- Equipment Cooling Sounds -->
<!-- Equipment cooling / bus powered on Sound -->
(L:AC_POWER_ON,number) 1 ==
(L:EQUIP_FANS_State,number) 0 == and
if{ 1 (>L:INT_EQUIP_FANS_START,number) 1 (>L:EQUIP_FANS_State,number) }
<!-- Check if start sound has been played, then switch sound control state -->
(L:EQUIP_FANS_State,number) 1 ==
(L:INT_EQUIP_FANS_START,number) 0 == and
if{ 2 (>L:EQUIP_FANS_State,number) }
<!-- play the loop sound -->
(L:AC_POWER_ON,number) 1 ==
(L:EQUIP_FANS_State,number) 2 == and
(L:INT_EQUIP_FANS_RUN,number) 0 == and
if{ 2 (>L:INT_EQUIP_FANS_RUN,number) }
<!-- End Loop and play "off" sound when AC power is lost, then reset control variable -->
(L:AC_POWER_ON,number) 0 ==
(L:EQUIP_FANS_State,number) 2 == and
if{ 1 (>L:INT_EQUIP_FANS_STOP,number) 0 (>L:INT_EQUIP_FANS_RUN,number) 0 (>L:EQUIP_FANS_State,number) }
Last edited: