mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
LoadOgg fix
This commit is contained in:
parent
822ff7d860
commit
98ed96adf4
1 changed files with 3 additions and 1 deletions
|
@ -299,7 +299,9 @@ bool idSoundSample_XAudio2::LoadOgg( const idStr& filename )
|
|||
buffers[0].numSamples = playLength;
|
||||
buffers[0].buffer = AllocBuffer( totalBufferSize, GetName() );
|
||||
|
||||
decoder.Read( buffers[0].buffer, buffers[0].bufferSize );
|
||||
int val = decoder.Read( buffers[0].buffer, buffers[0].bufferSize );
|
||||
|
||||
return ( val != -1 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue