New Release XRSound 1.0 and Updated XR Vessels Released

DaveS

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,434
Reaction score
688
Points
203
Quick q: Could XRSound be made so that the RCS thruster ignition sound is played each time a thruster is ignited? Right now it ignores the second thruster if another thruster is already firing.
 

Xyon

Puts the Fun in Dysfunctional
Administrator
Moderator
Orbiter Contributor
Addon Developer
Webmaster
GFX Staff
Beta Tester
Joined
Aug 9, 2009
Messages
6,926
Reaction score
794
Points
203
Location
10.0.0.1
Website
www.orbiter-radio.co.uk
Preferred Pronouns
she/her

dbeachy1

O-F Administrator
Administrator
Orbiter Contributor
Addon Developer
Donator
Beta Tester
Joined
Jan 14, 2008
Messages
9,216
Reaction score
1,562
Points
203
Location
VA
Website
alteaaerospace.com
Preferred Pronouns
he/him
Quick q: Could XRSound be made so that the RCS thruster ignition sound is played each time a thruster is ignited? Right now it ignores the second thruster if another thruster is already firing.

From previous experiments with that, you don't really hear any difference if two identical sounds are playing both at max volume. However, what I could do is update XRSound to always play an RCS attack sound via separate sound slots whenever a thruster fires, even if an RCS thruster (or RCS thrusters) are already firing (i.e., playing RCS sustain). I'll look into this for the upcoming patch release -- assuming it doesn't sound too noisy, it will be in the patch. :tiphat:
 

DaveS

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
9,434
Reaction score
688
Points
203
From previous experiments with that, you don't really hear any difference if two identical sounds are playing both at max volume. However, what I could do is update XRSound to always play an RCS attack sound via separate sound slots whenever a thruster fires, even if an RCS thruster (or RCS thrusters) are already firing (i.e., playing RCS sustain). I'll look into this for the upcoming patch release -- assuming it doesn't sound too noisy, it will be in the patch. :tiphat:
The "attack" sound is what I'm referring to. The sustain sound sound actually be pretty silent as you can't hear it. The sound you hear when the thruster(s) are initially ignited are really just the initial split second of unstable combustion when the propellants are actually ignited (for hypergolic propellants this is when the propellants actually come in contact with each other in the combustion chamber). The STS PRCS jets were very noisy and intense, they caused the entire vehicle to shutter when they were fired. That's why the orbiter were equipped with a set of low thrust jets called the vernier jets which were barely a tenth of of thrust of the big primary jets (24 lbf vs 870 lbf).
 
Last edited:

Loru

Retired Staff Member
Retired Staff
Addon Developer
Donator
Joined
Sep 30, 2008
Messages
3,731
Reaction score
6
Points
36
Location
Warsaw
Just dedicate 6 separate channels/slots for each RCS axis/ pos/neg direction.
 

dbeachy1

O-F Administrator
Administrator
Orbiter Contributor
Addon Developer
Donator
Beta Tester
Joined
Jan 14, 2008
Messages
9,216
Reaction score
1,562
Points
203
Location
VA
Website
alteaaerospace.com
Preferred Pronouns
he/him
OK, that makes sense. What I'll do is add a few slots dedicated just to the default RCS attack sounds so XRSound can then play overlapping RCS attack sounds (plus overlapping with RCS sustain sound, of course).
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,866
Reaction score
2,128
Points
203
Location
between the planets
In short, the practice of writing code to create a bridge between two incompatible interfaces.

Or just getting the bridge from somebody who already wrote it. For windows 2000 there used to be a lot of dlls around wrapping various features that were only supported by XP and ME, I would be surprised if the same wasn't true for XP.

Keep it simple please.

Most simple I can break it down to:
1) Use error message to figure out what dll caused the issue.
2) Google for dll wrappers that contain those calls and map them to adequate XP calls.
3) Download dlls and drop into working directory of offending application.
4) repeat for all the other errors that will certainly pop up as soon as the first is resolved.
It's tedious, but that's usually the price you have to pay for holding on to an old system.
 
Last edited:

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,133
Reaction score
407
Points
123
Location
Rome
Website
www.tuttovola.org
OK, that makes sense. What I'll do is add a few slots dedicated just to the default RCS attack sounds so XRSound can then play overlapping RCS attack sounds.
Does it mean that the continous-single RCS press (let's say I press Numpad 6 one time, and keep it down) will make one attack (thump) sound only?
Now, such a continous keypress sounds like many single keypresses.
 

dbeachy1

O-F Administrator
Administrator
Orbiter Contributor
Addon Developer
Donator
Beta Tester
Joined
Jan 14, 2008
Messages
9,216
Reaction score
1,562
Points
203
Location
VA
Website
alteaaerospace.com
Preferred Pronouns
he/him
I don't follow -- when I press and hold an RCS key, I hear one RCS attack ("thump"), followed by one continuous, unbroken RCS thrust sound on loop. If you're hearing continual RCS attack sounds ("thumps") just from holding down a single RCS key, please post a scenario reproducing that and I'll look into it.

If you meant there is a tiny audible "click" each time the RCS sustain sound loops, I tested that just now and I do hear that if I crank the volume up, so I just re-edited the RCS sustain sound to be more seamless on its looping point -- this will be in the upcoming patch release.
 

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,133
Reaction score
407
Points
123
Location
Rome
Website
www.tuttovola.org
The scenario is the default DG-XR1 ISS approach.
I don't remember the exact name, but that was it, and I was pressing numpad 6, keeping it down.

The sound was one RCS attack, followed by one short continuous RCS thrust sound, maybe one second duration. Then this whole loop (thump-rcs) started over again.
 

Xyon

Puts the Fun in Dysfunctional
Administrator
Moderator
Orbiter Contributor
Addon Developer
Webmaster
GFX Staff
Beta Tester
Joined
Aug 9, 2009
Messages
6,926
Reaction score
794
Points
203
Location
10.0.0.1
Website
www.orbiter-radio.co.uk
Preferred Pronouns
she/her
The scenario is the default DG-XR1 ISS approach.
I don't remember the exact name, but that was it, and I was pressing numpad 6, keeping it down.

The sound was one RCS attack, followed by one short continuous RCS thrust sound, maybe one second duration. Then this whole loop (thump-rcs) started over again.

Have you got any other addon or Windows keyboard setting that might result in some kind of "turbo" effect - simulating many rapid keypresses instead of one continuous one?
 

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,133
Reaction score
407
Points
123
Location
Rome
Website
www.tuttovola.org
No, not at all.

---------- Post added at 15:50 ---------- Previous post was at 10:03 ----------

I had OrbiterSound installed of course, but its module is disabled.
I'll try to recreate a clean Orbiter2016 folder, and retest.
 

dbeachy1

O-F Administrator
Administrator
Orbiter Contributor
Addon Developer
Donator
Beta Tester
Joined
Jan 14, 2008
Messages
9,216
Reaction score
1,562
Points
203
Location
VA
Website
alteaaerospace.com
Preferred Pronouns
he/him
The scenario is the default DG-XR1 ISS approach.
I don't remember the exact name, but that was it, and I was pressing numpad 6, keeping it down.

The sound was one RCS attack, followed by one short continuous RCS thrust sound, maybe one second duration. Then this whole loop (thump-rcs) started over again.

Thanks for the detailed info. I just tested those exact steps here, however, and it's working fine for me -- I hear one "thump" followed by sustained RCS sound. I also have not heard of this being reported anywhere else -- are you 100% sure there isn't some software or add-on intercepting / modifying repeated keystrokes to make the RCS jets stop / start continuously? Is anyone else seeing this??

EDIT:
One more thing you can do is:
1. Set EnableVerboseLogging = 1 in your XRSound.cfg file.
2. Load up Orbiter and run the default XR1 'On approach to ISS' scenario.
3. Press and hold NUMPAD-6 for five seconds or so.
4. Exit Orbiter.
5. Post the tail end of your $ORBITER_ROOT\XRSound.log file.
6. Reset EnableVerboseLogging = 0 in your XRSound.cfg file.

You should see something like this at the end of your XRSound.log (notice the timestamp of the StopWavImpl call is ~8 seconds after the PlayWav call, which is how long I was firing the RCS thrusters):

Code:
03.05.2018 11:07:40.985 - [XR1-01][1.000] XRSoundEngine::LoadWav success: [soundID = 26, playbackType = Radio (5), filename = 'XRSound\Default\All XR1 Systems Nominal.wav']
03.05.2018 11:07:40.986 - [XR1-01][1.000] XRSoundEngine::PlayWav playing sound [soundID = 26, playbackType = Radio (5), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\All XR1 Systems Nominal.wav']
[COLOR="red"]03.05.2018 11:07:43.961 - [XR1-01][3.976] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 11:07:43.961 - [XR1-01][3.976] XRSoundEngine::PlayWav playing sound [soundID = 10008, playbackType = BothViewMedium (3), bLoop = 1, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Sustain.wav']
03.05.2018 11:07:51.420 - [XR1-01][11.435] XRSoundEngine::StopWavImpl: stopping sound [soundID = 10008, playbackType = BothViewMedium (3), bLoop = 1, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Sustain.wav'][/COLOR]
03.05.2018 11:07:52.093 - XRSoundEngine::DestroyInstance: destroying XRSound engine instance for vessel 'GL-02'
03.05.2018 11:07:52.094 - XRSoundEngine::DestroyInstance: destroying XRSound engine instance for vessel 'SH-03'
03.05.2018 11:07:52.094 - XRSoundEngine::DestroyInstance: destroying XRSound engine instance for vessel 'XR1-01'
03.05.2018 11:07:52.095 - [XR1-01][11.750] XRSoundEngine::StopWavImpl: stopping sound [soundID = 10000, playbackType = InternalOnly (1), bLoop = 1, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\Air Conditioning.wav']
03.05.2018 11:07:52.095 - XRSoundEngine::DestroyInstance: destroying XRSound engine instance for vessel 'ISS'
03.05.2018 11:07:52.096 - XRSoundEngine::DestroyInstance: destroying XRSound engine instance for vessel 'PB-01'
03.05.2018 11:07:52.096 - XRSoundEngine::DestroyInstance: destroying XRSound engine instance for vessel 'SH-01'
03.05.2018 11:07:52.097 - XRSound 1.00 (Build Date: Feb 20 2018) terminating.

If you see multiple calls to PlayWav and StopWavImpl for the RCS sounds, that means that either some other add-on is zeroing out the RCS thrust so that the '6' keypress restarts it, or Orbiter is not seeing the '6' key being held down, so it thinks it's always being pressed and released. From a code standpoint, all XRSound does is examine the total RCS thrust levels every n frames (20 times/second) to decide whether the RCS sound should be playing. e.g.,

Code:
if (totalThrustLevel > 0.10)   // should sound be playing?
{
    const float volume = XRSoundEngine::ComputeVariableVolume(0.20f, 1.0, totalThrustLevel);

    // DEV DEBUGGING ONLY: sprintf(oapiDebugString(), "RCS thrust level = %lf, volume = %f", totalThrustLevel, volume);

    // if attack or sustain not ALREADY playing, play the RCS attack sound
    if (!m_pEngine->IsWavPlaying(m_rcsAttackSoundID) && !IsWavPlaying())
        m_pEngine->PlayWav(m_rcsAttackSoundID, false, volume);  // attack sound is faded by volume as well

    // if RCS sustain sound is already playing here, this call will merely change the volume
    PlayWav(true, volume);   // loop
}
else    // sound should NOT be playing
{
    // Note: we never terminate the RCS Attack sound: it always completes
    StopWav();
}
 
Last edited:

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,133
Reaction score
407
Points
123
Location
Rome
Website
www.tuttovola.org
Here's what I have in XRSound.log. I can't see any StopWavImpl.
Loop duration (between thumps) is less than 1 sec indeed.

Code:
03.05.2018 19:22:05.677 - [XR1-01][1.000] XRSoundEngine::PlayWav playing sound [soundID = 26, playbackType = Radio (5), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\All XR1 Systems Nominal.wav']
03.05.2018 19:22:23.128 - [XR1-01][18.451] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:23.681 - [XR1-01][19.004] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:24.234 - [XR1-01][19.558] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:24.790 - [XR1-01][20.113] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:25.344 - [XR1-01][20.668] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:25.899 - [XR1-01][21.222] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:26.453 - [XR1-01][21.777] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:27.006 - [XR1-01][22.330] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:27.560 - [XR1-01][22.883] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:28.114 - [XR1-01][23.438] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:28.668 - [XR1-01][23.991] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:29.222 - [XR1-01][24.545] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:29.776 - [XR1-01][25.099] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:30.329 - [XR1-01][25.653] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:30.883 - [XR1-01][26.206] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:31.439 - [XR1-01][26.762] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:31.992 - [XR1-01][27.315] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:32.545 - [XR1-01][27.869] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:33.100 - [XR1-01][28.424] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:33.655 - [XR1-01][28.979] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:34.209 - [XR1-01][29.532] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:34.762 - [XR1-01][30.086] XRSoundEngine::PlayWav playing sound [soundID = 10007, playbackType = BothViewMedium (3), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\RCS Attack.wav']
03.05.2018 19:22:37.132 - XRSoundEngine::DestroyInstance: destroying XRSound engine instance for vessel 'XR1-01'

Here's my modules list from Orbiter_NG.log.
I guess I'm going to create a new Orbiter folder...

Code:
; === Active plugin list ===
ACTIVE_MODULES
  XRSound
  D3D9Client
END_MODULES

And finally, a little 1Mb videoclip with audio
https://www.dropbox.com/s/5wdfiq5o09vbsjw/XRSound_test.mp4?dl=0
 
Last edited:

dbeachy1

O-F Administrator
Administrator
Orbiter Contributor
Addon Developer
Donator
Beta Tester
Joined
Jan 14, 2008
Messages
9,216
Reaction score
1,562
Points
203
Location
VA
Website
alteaaerospace.com
Preferred Pronouns
he/him
That is odd. The logging indicates that, for whatever reason on your system, the underlying irrKlang engine's ISound::isFinished method is not able to detect that a sound is already playing, and so XRSound thinks it isn't playing yet, and so it keeps (re)playing the RCS Attack sound. Unfortunately, I don't see a way around this. :(

What sound API is the irrKlang engine using to communicate with your sound driver? You can check your XRSound.log for a line like this:

02.28.2018 20:54:15.516 - XRSound 1.00 (Build Date: Feb 20 2018) initialized using sound driver DirectSound8; irrKlang version = 1.6.0. XRSound UpdateInterval = 0.050 (20.0 updates per second)

It is possible it's a bug in irrKlang with your sound driver, or it could be a bug in your sound device's driver itself, which is what irrKlang communicates with. What OS and sound device are you using?

In any case, a possible workaround for you here would be to simply disable the RCS attack sound by making this edit to your $ORBITER_ROOT\XRSound\XRSound.cfg file:

Code:
#--------------------------------------------------------------------------
# RCS jets attack sound; this does not loop, and its volume varies 
# by thrust level.
# Sound ID = 10007
# Default = XRSound\Default\RCS Attack.wav
#--------------------------------------------------------------------------
RCSAttack = [COLOR="Red"]none[/COLOR]
 

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,133
Reaction score
407
Points
123
Location
Rome
Website
www.tuttovola.org
What sound API is the irrKlang engine using to communicate with your sound driver?
XRSound 1.00 BETA-5 (Build Date: Feb 19 2018) initialized using sound driver DirectSound8; irrKlang version = 1.6.0. XRSound UpdateInterval = 0.050 (20.0 updates per second)

What OS and sound device are you using?
- Windows 10 Home
- 7.1 CH HD Audio with Content Protection (Realtek ALC892 Audio Codec)
- MoBo ASRock Z170 Pro4
 
Last edited:

dbeachy1

O-F Administrator
Administrator
Orbiter Contributor
Addon Developer
Donator
Beta Tester
Joined
Jan 14, 2008
Messages
9,216
Reaction score
1,562
Points
203
Location
VA
Website
alteaaerospace.com
Preferred Pronouns
he/him
One more question -- when you switch to external view in space and the music plays, does it constantly restart from the beginning each time you switch to external view, or does it pause and resume where it left off each time you switch back to external view? The music should pause when you switch back to cockpit view and resume where it left off when you return to external view. If not (i.e., if it always restarts at the beginning), that indicates that IsWavPlaying is not working for other sounds as well as the RCS sound.

EDIT:
With verbose logging enabled, you should see lines similar to this in your XRSound.cfg -- you can see where the music is paused and unpaused (scroll right to find the highlights in red):

Code:
03.05.2018 15:06:50.953 - [XR1-01][1.000] XRSoundEngine::PlayWav playing sound [soundID = 26, playbackType = Radio (5), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\All XR1 Systems Nominal.wav']
03.05.2018 15:06:53.647 - [XR1-01][3.695] XRSoundEngine::StopWavImpl: stopping sound [soundID = 10000, playbackType = InternalOnly (1), bLoop = 1, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\Air Conditioning.wav']
03.05.2018 15:06:53.647 - [XR1-01][3.695] XRSoundEngine::LoadWav for global MusicFolder success: [soundID = 11005, playbackType = Global (7), filename = 'XRSound\Default\Music\Solar Serenity.ogg']
03.05.2018 15:06:53.651 - [XR1-01][3.695] XRSoundEngine::PlayWav playing sound [soundID = 11005, playbackType = Global (7), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\Music\Solar Serenity.ogg']
03.05.2018 15:06:58.793 - [XR1-01][8.840] XRSoundEngine::PlayWav playing sound [soundID = 10000, playbackType = InternalOnly (1), bLoop = 1, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\Air Conditioning.wav']
03.05.2018 15:06:58.793 - [XR1-01][8.840] XRSoundEngine::SetPaused: setting sound [soundID = 11005, playbackType = Global (7), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\Music\Solar Serenity.ogg'] [COLOR="Red"]paused state = 1[/COLOR]
03.05.2018 15:07:01.018 - [XR1-01][11.066] XRSoundEngine::StopWavImpl: stopping sound [soundID = 10000, playbackType = InternalOnly (1), bLoop = 1, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\Air Conditioning.wav']
03.05.2018 15:07:01.018 - [XR1-01][11.066] XRSoundEngine::SetPaused: setting sound [soundID = 11005, playbackType = Global (7), bLoop = 0, volume = 1.00, bPaused = 1, bEnabled = 1, filename = 'XRSound\Default\Music\Solar Serenity.ogg'] [COLOR="red"]paused state = 0[/COLOR]
 
Last edited:

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,133
Reaction score
407
Points
123
Location
Rome
Website
www.tuttovola.org
Ok, music in external view resumes each time from where is stopped.
One new thing I just noticed: if I RCS-rotate the ship and press Numpad5 once (and release it) to stop rotation, the same thump-thump-thump sound is output (until rotation stops).

And this is the latest log, as per your request: we have "paused state = 1" and "paused state = 0" lines.
Code:
03.05.2018 22:36:15.578 - [XR1-01][1.000] XRSoundEngine::LoadWav success: [soundID = 26, playbackType = Radio (5), filename = 'XRSound\Default\All XR1 Systems Nominal.wav']
03.05.2018 22:36:15.578 - [XR1-01][1.000] XRSoundEngine::PlayWav playing sound [soundID = 26, playbackType = Radio (5), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\All XR1 Systems Nominal.wav']
03.05.2018 22:36:19.016 - [XR1-01][4.439] XRSoundEngine::StopWavImpl: stopping sound [soundID = 10000, playbackType = InternalOnly (1), bLoop = 1, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\Air Conditioning.wav']
03.05.2018 22:36:19.016 - [XR1-01][4.439] XRSoundEngine::LoadWav for global MusicFolder success: [soundID = 11005, playbackType = Global (7), filename = 'XRSound\Default\Music\Solar Serenity.ogg']
03.05.2018 22:36:19.019 - [XR1-01][4.439] XRSoundEngine::PlayWav playing sound [soundID = 11005, playbackType = Global (7), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\Music\Solar Serenity.ogg']
03.05.2018 22:36:24.098 - [XR1-01][9.521] XRSoundEngine::PlayWav playing sound [soundID = 10000, playbackType = InternalOnly (1), bLoop = 1, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\Air Conditioning.wav']
03.05.2018 22:36:24.099 - [XR1-01][9.521] XRSoundEngine::SetPaused: setting sound [soundID = 11005, playbackType = Global (7), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\Music\Solar Serenity.ogg'] paused state = 1
03.05.2018 22:36:27.870 - [XR1-01][13.293] XRSoundEngine::StopWavImpl: stopping sound [soundID = 10000, playbackType = InternalOnly (1), bLoop = 1, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\Air Conditioning.wav']
03.05.2018 22:36:27.870 - [XR1-01][13.293] XRSoundEngine::SetPaused: setting sound [soundID = 11005, playbackType = Global (7), bLoop = 0, volume = 1.00, bPaused = 1, bEnabled = 1, filename = 'XRSound\Default\Music\Solar Serenity.ogg'] paused state = 0
03.05.2018 22:36:32.597 - [XR1-01][18.020] XRSoundEngine::PlayWav playing sound [soundID = 10000, playbackType = InternalOnly (1), bLoop = 1, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\Air Conditioning.wav']
03.05.2018 22:36:32.597 - [XR1-01][18.020] XRSoundEngine::SetPaused: setting sound [soundID = 11005, playbackType = Global (7), bLoop = 0, volume = 1.00, bPaused = 0, bEnabled = 1, filename = 'XRSound\Default\Music\Solar Serenity.ogg'] paused state = 1
03.05.2018 22:36:35.048 - XRSoundEngine::DestroyInstance: destroying XRSound engine instance for vessel 'XR1-01'
 

dbeachy1

O-F Administrator
Administrator
Orbiter Contributor
Addon Developer
Donator
Beta Tester
Joined
Jan 14, 2008
Messages
9,216
Reaction score
1,562
Points
203
Location
VA
Website
alteaaerospace.com
Preferred Pronouns
he/him
Thanks for the info. What I suggest as a workaround is to disable the RCS Attack sound as per my earlier post -- it appears that the IsWavPlaying bug on your system may only occur for sounds that are very short, such as the RCS Attack sound. But at least there is a workaround.

EDIT:
Also, due to the way I plan to redo how RCS attack sounds are played (such that they won't share a sound slot with the RCS Sustain sound -- see earlier posts), I don't think I will need to use IsWavPlaying in the RCS Attack / RCS Sustain logic anymore. But we'll see! :tiphat:
 
Last edited:

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,133
Reaction score
407
Points
123
Location
Rome
Website
www.tuttovola.org
...What I suggest as a workaround is to disable the RCS Attack sound as per my earlier post...
I did that, and RCS are now totally silent!

In fact, what I described earlier as "RCS sound" from my Orbiter, is only the "RCS Attack.wav" file.
Looping it in VLC sounds exactly as in Orbiter.

When pressing RCS, with
Code:
RCSAttack = XRSound\Default\RCS Attack.wav
or
Code:
RCSAttack = none
the file "RCS sustain.wav" isn't playing at all anyway.

(I didn't make a new Orbiter install yet)
 
Top