Mercurial > fife-parpg
diff engine/core/audio/soundemitter.i @ 484:e584b0b8b4a2
Added SoundEmitter::getDecodedLength and SoundEmitter::getDuration. The getDuration function will allow a timer to be registered to fire after the sound has been played. This is not a callback as requested but it does provide the functionality if required. I will be committing an example of it in the shooter demo shortly. [t:346]
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 30 Apr 2010 15:33:27 +0000 |
parents | 64738befdf3b |
children | 58c0bbeeeb35 |
line wrap: on
line diff
--- a/engine/core/audio/soundemitter.i Thu Apr 29 16:09:56 2010 +0000 +++ b/engine/core/audio/soundemitter.i Fri Apr 30 15:33:27 2010 +0000 @@ -63,6 +63,8 @@ bool isStereo(); short getBitResolution(); unsigned long getSampleRate(); + unsigned long getDecodedLength(); + unsigned long getDuration(); void setCursor(SoundPositionType type, float value); float getCursor(SoundPositionType type);