Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2009, 12:18:41 AM (15 years ago)
Author:
rgrieder
Message:

Several small changes in sound:

  • Fixed a bug that caused a sound source to be initialised on pause() even it already existed
  • The XML parameter is now called "looping" instead of "loop" because looping was used really all over the code
  • The "play" XML parameter doesn't exist anymore, use "playOnLoad" for AmbientSound only.
  • Added "pitch" XML parameter
  • Changes in synchronisation policy: Ambient sound should not synchronise the state but instead th new playOnLoad parameter
Location:
code/branches/presentation2/data/levels
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/data/levels/presentationHS09b.oxw

    r6363 r6382  
    2525
    2626
    27 <AmbientSound ambientSource="Mars.ogg" loop="true" play="true" />
     27<AmbientSound ambientSource="Mars.ogg" looping="true" playOnLoad="true" />
    2828
    2929   <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
     
    258258
    259259
    260 <AmbientSound ambientSource="Earth.ogg" loop="true" play="false">
     260<AmbientSound ambientSource="Earth.ogg" looping="true" playOnLoad="false">
    261261       <events>
    262262          <activity>
  • code/branches/presentation2/data/levels/sound.oxw

    r6248 r6382  
    1818  >
    1919
    20   <AmbientSound ambientSource="Earth.ogg" loop="true" play="true" />
    21   <AmbientSound ambientSource="Mars.ogg" loop="true" play="false">
     20  <AmbientSound ambientSource="Earth.ogg" looping="true" playOnLoad="true" />
     21  <AmbientSound ambientSource="Mars.ogg" looping="true">
    2222        <events>
    2323                <activity>
     
    3030        </events>
    3131  </AmbientSound>
    32   <AmbientSound ambientSource="Jupiter.ogg" loop="true" play="false">
     32  <AmbientSound ambientSource="Jupiter.ogg" looping="true">
    3333        <events>
    3434                <activity>
  • code/branches/presentation2/data/levels/templates/spaceship_HXY.oxt

    r6363 r6382  
    6969  >
    7070    <EffectContainer condition="idle">
    71       <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" loop=1 active=false/>
     71      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
    7272    </EffectContainer>
    7373    <EffectContainer condition="not idle">
  • code/branches/presentation2/data/levels/templates/spaceship_Transporter.oxt

    r6363 r6382  
    6969  >
    7070    <EffectContainer condition="idle">
    71       <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" loop=1 active=false/>
     71      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
    7272    </EffectContainer>
    7373    <EffectContainer condition="not idle">
Note: See TracChangeset for help on using the changeset viewer.