Changed: Allow changing looping parameter of audio decoder after init

--HG--
branch : sound_dev
hg/feature/gsoc2012-fabien
kaetemi 13 years ago
parent 1758ed6a96
commit 19599cd9f5

@ -95,6 +95,9 @@ public:
/// Get the total time in seconds.
virtual float getLength() = 0;
/// Set looping
virtual void setLooping(bool loop) = 0;
}; /* class IAudioDecoder */
} /* namespace NLSOUND */

@ -99,6 +99,9 @@ public:
/// Get the total time in seconds.
virtual float getLength();
/// Set looping
virtual void setLooping(bool loop);
}; /* class CAudioDecoderVorbis */
} /* namespace NLSOUND */

@ -219,6 +219,11 @@ float CAudioDecoderVorbis::getLength()
return (float)ov_time_total(&_OggVorbisFile, -1);
}
void CAudioDecoderVorbis::setLooping(bool loop)
{
_Loop = loop;
}
} /* namespace NLSOUND */
/* end of file */

Loading…
Cancel
Save