Skip to content

Commit fa097e3

Browse files
author
dashodanger
committed
Tweak OGG
1 parent a56bb4e commit fa097e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source_files/edge/s_ogg.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void OGGPlayer::PostOpen()
9191

9292
bool OGGPlayer::StreamIntoBuffer(SoundData *buf)
9393
{
94-
int got_size = stb_vorbis_get_samples_short_interleaved(ogg_decoder_, 2, buf->data_, kMusicBuffer);
94+
int got_size = stb_vorbis_get_samples_short_interleaved(ogg_decoder_, 2, buf->data_, kMusicBuffer * 2);
9595

9696
if (got_size == 0) /* EOF */
9797
{
@@ -275,7 +275,7 @@ bool LoadOGGSound(SoundData *buf, const uint8_t *data, int length)
275275

276276
int16_t *buffer = gather.MakeChunk(total_samples, true);
277277

278-
gather.CommitChunk(stb_vorbis_get_samples_short_interleaved(ogg, 2, buffer, total_samples));
278+
gather.CommitChunk(stb_vorbis_get_samples_short_interleaved(ogg, 2, buffer, total_samples * 2));
279279

280280
if (!gather.Finalise(buf))
281281
FatalError("OGG SFX Loader: no samples!\n");

0 commit comments

Comments
 (0)