Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 14 and Version 15 of content/Sound


Ignore:
Timestamp:
May 18, 2009, 3:36:59 PM (15 years ago)
Author:
erwin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • content/Sound

    v14 v15  
    55
    66== User Guide ==
     7
     8=== Configuring available sounds ===
    79Configuration of soundfiles is done in the XML files. You just have to add the specific attribut to your class tag. The value has to be the filepath relative to the [mediapath]/audio directory.
    810
    9 || '''Class''' || '''Soundattribute(s)''' ||
    10 || Level || ambientsound ||
    11 || Engine || sound ||
     11Current possible sounds:
     12|| '''Class''' || '''Soundattribute(s)''' || '''Looped?''' ||
     13|| Level || ambientsound || Yes ||
     14|| Engine || sound || Yes||
     15
     16=== Make more soundattributes available ===
     17Here are some instructions:
     18 * Look at the implementaion of the above classes. You should be able to copy a most of the things.
     19 * 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
     20 * Implement the load function, for some examples look at the above classes
     21 * Add the needed members to the class (at least one SoundBase pointer)
     22 * Add the calls to SondBase::play(bool loop) where you want to have the sound being played
     23 * Add the class/sound to the above list and that's it
    1224
    1325== Development ==
     
    2537 * manages OpenAL buffer and source
    2638 * has to be attached to a WorldEntity
    27  * can load a sound sample form a file (via alut all alut supported sound formats, via fallback handler ogg vorbis files)
     39 * can load a sound sample form a file (via alut all alut supported sound formats, ~~via fallback handler ogg vorbis files~~)
    2840
    29 == PPS-Timetable ==
    30 
    31 || '''Date''' || '''What?''' ||
    32 || 2009-03-30 || Initial code commit, defitiv decision of API (done)||
    33 || 2009-04-06 || Implementing SoundManager and integration into the build system (done) ||
    34 || 2009-04-27 || Implementing SoundBase (done) ||
    35 || 2009-05-04 || Adding default sounds, configuration loaders (done for levels) ||
    36 || 2009-05-11 || Testing ||
    37 || 2009-05-18 || Testing and getting things ready for presentation ||
    38 || 2009-05-2? || Presentation ||
    39 
    40 === Future ===
     41=== Future projects ===
    4142 * implement sound device configuration
    42  * implment a fallback ogg loader
    43  * add streaming abilities for large soundfiles
     43 * implement a fallback ogg loader
     44 * implement fallback loaders for other file types
     45 * implement streaming abilites for large files
     46 * implement context handling for multiple Levels/SoundManagers