Audio/Sound: Replace error check by assert
Former-commit-id: 76192feaa3a29342b5456a97f660719714be3fe6
This commit is contained in:
parent
ba176af5cd
commit
b87a8b3f25
|
|
@ -42,13 +42,7 @@ namespace Nz
|
||||||
|
|
||||||
UInt32 Sound::GetDuration() const
|
UInt32 Sound::GetDuration() const
|
||||||
{
|
{
|
||||||
#if NAZARA_AUDIO_SAFE
|
NazaraAssert(m_buffer, "Invalid sound buffer");
|
||||||
if (!m_buffer)
|
|
||||||
{
|
|
||||||
NazaraError("Invalid sound buffer");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return m_buffer->GetDuration();
|
return m_buffer->GetDuration();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue