Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 20, 2009, 11:11:32 AM (15 years ago)
Author:
rgrieder
Message:

Changed "source" parameter of AmbientSound to "ambientSource" to restore consistency with the c++ methods.
Adjusted sound.oxw file.

Also moved XML ports form WorldSound/AmbientSound to BaseSound::XMLPortExtern.
To make that work, I had to insert a dynamic_cast into the XMLPortParamGeneric macro. Shouldn't be a problem though. Just don't use XMLPortParam inside a class that might not be a BaseObject (at least dynamically).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound3/data/levels/sound.oxw

    r6100 r6102  
    1818  >
    1919
    20   <AmbientSound source="Mars.ogg" loop="true" play="true" />
    21   <AmbientSound source="Asteroid_rocks.ogg" loop="true" play="false">
     20  <AmbientSound ambientSource="Mars.ogg" loop="true" play="true" />
     21  <AmbientSound ambientSource="Asteroid_rocks.ogg" loop="true" play="false">
    2222        <events>
    2323                <activity>
Note: See TracChangeset for help on using the changeset viewer.