comparison 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
comparison
equal deleted inserted replaced
483:82d44c471959 484:e584b0b8b4a2
61 float getGain(); 61 float getGain();
62 62
63 bool isStereo(); 63 bool isStereo();
64 short getBitResolution(); 64 short getBitResolution();
65 unsigned long getSampleRate(); 65 unsigned long getSampleRate();
66 unsigned long getDecodedLength();
67 unsigned long getDuration();
66 68
67 void setCursor(SoundPositionType type, float value); 69 void setCursor(SoundPositionType type, float value);
68 float getCursor(SoundPositionType type); 70 float getCursor(SoundPositionType type);
69 }; 71 };
70 } 72 }