Sound problem

  • Hi all

    Im working in a new plane but I have problems with the sounds, the plane load and Works fine except the sound, I get this message in tm file:


    3.00-tmmodelmanager: loading dynamics begin 'aviocar'...

    3.03-tmmodelmanager: loading dynamics end: (id=1) (952 dynamics) (696 graphics) (0 sound) (ny=968) (nz=190)


    The sound files are converted to tsb and appear in the aircraft directory

  • The event_sound itself doesn't do anything unless you trigger it from within the physics simulation (e.g. input_knob Events... KnobSound.Trigger)


    All of these have to be correctly setup in order to get a sound for a button press or switch or knob action:

    - Simulator unmuted (obviously... but double check with a default aircraft)

    - input_knob, input_switch, etc. with an Events list that calls e.g. KnobSound.Trigger

    - an event_sound object with the correct name e.g. KnobSound

    - a soundinput object that uses that knob sound as an input

    - a soundmulti that can uses the soundinput as a trigger

    - a valid file on the harddrive in the right folder.

  • Thanks Jan, i think I have that correctly set, can you take a look?




    <[event_sound][SwitchSound][]



    <[input_switch][LeftBoostPumpSwitch][]

    <[string8][Input][Fuel.BoostPumpLeft]>

    <[float64][Value][0.0]>

    <[string8][Events] [ SwitchSound.Trigger ]>

    <[string8][EventsRelease][ SwitchSound.Trigger ]>





    <[soundinput][SwitchSoundInput][]

    <[uint32][InputID][SwitchSound.Output]>

    >

    <[sound_multi][SwitchSound][]

    <[string8][InputTrigger][SwitchSoundInput.Output]>

    <[string8][InputVolume][0.2]>

    <[string8][InputPitch][1.0]>

    <[uint32][PositionID][Fuselage.R]>

    <[uint32][VelocityID][Fuselage.V]>

    <[string8][SoundFile][switch.wav]>

    <[bool][External][false]>

    >

  • Missing > at the end in both input_sound and input_switch


    <[event_sound][SwitchSound][]


    Should be

    <[event_sound][SwitchSound][]

    >


    Perhaps just a copy error when you pasted.


    In the input_switch your using the same SwitchSound.Trigger


    Try


    <[string8][Events] [ SwitchSoundOn.Trigger ]>

    <[string8][EventsRelease][ SwitchSoundOff.Trigger ]>


    Would need to change your event_sound at the top to SwitchSoundOn, then make a new entry for SwitchSoundOff,


    like this


    <[event_sound][SwitchSoundOn][]

    >

    <[event_sound][SwitchSoundOff][]

    >


    <[input_switch][LeftBoostPumpSwitch][]

    <[string8][Input][Fuel.BoostPumpLeft]>

    <[float64][Value][0.0]>

    <[string8][Events] [ SwitchSoundOn.Trigger ]>

    <[string8][EventsRelease][ SwitchSoundOff.Trigger ]>

    >



    Steve