Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 22 and Version 23 of content/Sound


Ignore:
Timestamp:
May 25, 2009, 2:33:51 PM (15 years ago)
Author:
erwin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • content/Sound

    v22 v23  
    2525=== Make more soundattributes available ===
    2626Here are some instructions:
    27  * Look at the implementaion of the above classes. You should be able to copy a most of the things.
    28  * Add a new XMLPort macro to the XMLPort function of the class the sound belongs to(most likely XMLPortLoadOnly), name the function loadFooSound or something similar
    29  * Implement the load function, for some examples look at the above classes
    30  * Add the needed members to the class (at least one SoundBase pointer)
    31  * Add the calls to SondBase::play(bool loop) where you want to have the sound being played
     27 1. Look at the implementaion of the above classes. You should be able to copy a most of the things.
     28 1. Add a new XMLPort macro to the XMLPort function of the class the sound belongs to(most likely XMLPortLoadOnly), name the function loadFooSound or something similar
     29 1. Implement the load function, for some examples look at the above classes
     30 1. Add the needed members to the class (at least one SoundBase pointer)
     31 1. Add the calls to SondBase::play(bool loop) where you want to have the sound being played
    3232 * Add the class/sound to the above list and that's it
    3333