Fixed missing implementation of Music::GetFormat

Former-commit-id: e3d8ca822a46d00a5eec6e0512dd089e88049cf7
This commit is contained in:
Lynix 2014-01-10 20:01:33 +01:00
parent 601346a566
commit faed82426f
1 changed files with 13 additions and 0 deletions

View File

@ -93,6 +93,19 @@ nzUInt32 NzMusic::GetDuration() const
return m_impl->stream->GetDuration();
}
nzAudioFormat NzMusic::GetFormat() const
{
#if NAZARA_AUDIO_SAFE
if (!m_impl)
{
NazaraError("Music not created");
return nzAudioFormat_Unknown;
}
#endif
return m_impl->stream->GetFormat();
}
nzUInt32 NzMusic::GetPlayingOffset() const
{
#if NAZARA_AUDIO_SAFE