|
@@ -59,14 +59,14 @@ OggVorbisSoundStream::~OggVorbisSoundStream()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-bool OggVorbisSoundStream::Seek(unsigned int sample_number)
|
|
|
|
|
|
|
+bool OggVorbisSoundStream::Seek(unsigned sample_number)
|
|
|
{
|
|
{
|
|
|
if (!decoder_)
|
|
if (!decoder_)
|
|
|
return false;
|
|
return false;
|
|
|
|
|
|
|
|
stb_vorbis* vorbis = static_cast<stb_vorbis*>(decoder_);
|
|
stb_vorbis* vorbis = static_cast<stb_vorbis*>(decoder_);
|
|
|
|
|
|
|
|
- return (stb_vorbis_seek(vorbis, sample_number) == 1) ? true : false;
|
|
|
|
|
|
|
+ return stb_vorbis_seek(vorbis, sample_number) == 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
unsigned OggVorbisSoundStream::GetData(signed char* dest, unsigned numBytes)
|
|
unsigned OggVorbisSoundStream::GetData(signed char* dest, unsigned numBytes)
|