Fixed missing implementation of Music::GetFormat
Former-commit-id: e3d8ca822a46d00a5eec6e0512dd089e88049cf7
This commit is contained in:
parent
601346a566
commit
faed82426f
|
|
@ -93,6 +93,19 @@ nzUInt32 NzMusic::GetDuration() const
|
||||||
return m_impl->stream->GetDuration();
|
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
|
nzUInt32 NzMusic::GetPlayingOffset() const
|
||||||
{
|
{
|
||||||
#if NAZARA_AUDIO_SAFE
|
#if NAZARA_AUDIO_SAFE
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue