Changed: Allow changing looping parameter of audio decoder after init

This commit is contained in:
kaetemi 2012-04-11 15:44:02 +02:00
parent 3aff28aab4
commit 0a4d8d06bd
3 changed files with 11 additions and 0 deletions

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */