Adding sounds to objects

Home Forums Support Adding sounds to objects

Topic Resolution: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2497
    Manschy
    Participant

    Hi everybody,

    just finished my sets of Hangar doors for my airfield. Everything works fine, also my added sounds of the opening/closing doors.
    Now I have one Hangar with two large doors. I want to add an additional sound with an alert bell while closing. Is this possible?

    Here the extractions of my sim.cfg and of my animations.xml:

    sim.cfg

    [General]
    Category=Viewer
    Module=SODE

    [fltsim.0]
    title=ETUO_H1_FRONTDOOR
    sim=
    model=ETUO_H1_FRONTDOOR
    sound=Hangar_Doors
    texture=””
    [fltsim.1]
    title=ETUO_H1_BACKDOOR
    sim=
    model=ETUO_H1_BACKDOOR
    sound=Hangar_Doors
    texture=””
    [fltsim.2]
    title=ETUO_H2_DOORS
    sim=
    model=ETUO_H2_DOORS
    sound=Hangar_Doors
    texture=H5H7
    [fltsim.3]
    title=ETUO_H3_DOORS
    sim=
    model=ETUO_H3_DOORS
    sound=Hangar_Doors
    texture=H5H7
    [fltsim.4]
    title=ETUO_H4_DOORS
    sim=
    model=ETUO_H4_DOORS
    sound=Hangar_Doors
    texture=H5H7
    [fltsim.5]
    title=ETUO_H5_DOORS
    sim=
    model=ETUO_H5_DOORS
    sound=Hangar_Doors
    texture=H5H7
    [fltsim.6]
    title=ETUO_H6_DOORS
    sim=
    model=ETUO_H6_DOORS
    sound=Hangar_Doors
    texture=H5H7
    [fltsim.7]
    title=ETUO_H7_DOORS
    sim=
    model=ETUO_H7_DOORS
    sound=Hangar_Doors
    texture=H5H7

    animations.xml

    <SODE>

    <!– Data Probe serving its clients –>

    <SimObject Name=”ETUO_H1_FRONTDOOR”>
    <Placement Lat=”51.9286286614″ Lon=”8.2979528628″ Alt=”0#AGL” Hdg=”238.2″/>
    <Model SimTitle=”ETUO_H1_FRONTDOOR”>
    <TriggerableVisibility Input=”TextMenu” Action=”Show,Hide” VisibleOnLoad=”Yes”/>
    <TriggerableAnimation Input=”TextMenu” Action=”Open,Close” StartKF=”0″ EndKF=”100″ Duration=”20″>
    <Sound FileName=”Hangar_Doors.wav,ACG_Klaxon.wav” Loop=”Yes” MinDistance=”20″ MaxDistance=”800″/>
    </TriggerableAnimation>
    </Model>
    </SimObject>
    <SimObject Name=”ETUO_H1_BACKDOOR”>
    <Placement Lat=”51.929244″ Lon=”8.299576″ Alt=”0#AGL” Hdg=”58.5″/>
    <Model SimTitle=”ETUO_H1_BACKDOOR”>
    <TriggerableVisibility Input=”TextMenu” Action=”Show,Hide” VisibleOnLoad=”Yes”/>
    <TriggerableAnimation Input=”TextMenu” Action=”Open,Close” StartKF=”0″ EndKF=”100″ Duration=”20″>
    <Sound FileName=”Hangar_Doors.wav,ACG_Klaxon.wav” Loop=”Yes” MinDistance=”20″ MaxDistance=”800″/>
    </TriggerableAnimation>
    </Model>
    </SimObject>
    <SimObject Name=”ETUO_H2_DOORS”>
    <Placement Lat=”51.930215″ Lon=”8.308753″ Alt=”0#AGL” Hdg=”115.7″/>
    <Model SimTitle=”ETUO_H2_DOORS”>
    <TriggerableVisibility Input=”TextMenu” Action=”Show,Hide” VisibleOnLoad=”Yes”/>
    <TriggerableAnimation Input=”TextMenu” Action=”Open,Close” StartKF=”0″ EndKF=”100″ Duration=”20″>
    <Sound FileName=”Hangar_Doors.wav” Loop=”Yes” MinDistance=”20″ MaxDistance=”800″/>
    </TriggerableAnimation>
    </Model>
    </SimObject>
    </SODE>

    The additional sound wav is

    ringing_bell.wav

    So where do I have to add it into these files to make it work? Each help is much appreciated!

    Regards,
    Manfred

    #2498
    12bPilot
    Keymaster

    The sound engine built into SODE is rather simple. It can only play one wav file.
    So you need to mix whatever additional sound you want into one file using some audio editor/tool.
    Audacity is a free and very powerful tool for that.

    #2499
    Manschy
    Participant

    Thank you very much for fast reply.

    Okay, good to know now I can stop experimenting 😉
    It’s a suitable alternative to mix the sounds into only one file, so less brainpower is needed to get success while creating xml-lines LOL….

    Regards,
    Manfred

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.