The sound buffer was not being fully preloaded because it's size was incorrect
This commit is contained in:
Eduardo Bart 2013-11-10 20:35:00 -02:00
parent d32f71c2b9
commit 2b34c0ea0a
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ bool OggSoundFile::prepareOgg()
m_channels = vi->channels; m_channels = vi->channels;
m_rate = vi->rate; m_rate = vi->rate;
m_bps = 16; m_bps = 16;
m_size = ov_pcm_total(&m_vorbisFile, -1) * 2; m_size = ov_pcm_total(&m_vorbisFile, -1) * (m_bps/8) * m_channels;
return true; return true;
} }