I am trying to restore some custom sounds to the Bell 222. I have the following so far
In clbk_postcreation:
When I attempt to play a sound in clbk_poststep:
I get this error related to the play_wav line:
I also get this error for the other files 2 and 3, and if I omit the optional arguments (sound.play_wav(1)).
XRSound module is enabled for Orbiter 2024 and I get the default Orbiter sounds (I need to disable them, but that's another matter). I just can't get these custom files to work.
In clbk_postcreation:
Code:
sound = xrsound.create_instance(vi)
sound:load_wav(1, "Sound/_CustomVesselsSounds/BELL222/BELL222ENGINES.wav", PlaybackType.BothViewClose)
sound:load_wav(2, "Sound/_CustomVesselsSounds/BELL222/BELL222GEAR.wav", PlaybackType.InternalOnly)
sound:load_wav(3, "Sound/_CustomVesselsSounds/BELL222/BELLSTART.wav", PlaybackType.BothViewClose)
When I attempt to play a sound in clbk_poststep:
Code:
sound.play_wav(1, false, 1.0)
I get this error related to the play_wav line:
Code:
lua_toxrsound: Argument is not an xrsound object
I also get this error for the other files 2 and 3, and if I omit the optional arguments (sound.play_wav(1))
XRSound module is enabled for Orbiter 2024 and I get the default Orbiter sounds (I need to disable them, but that's another matter). I just can't get these custom files to work.
