mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-30 21:00:39 +00:00
SCUMM: Partially revert 08c17d4513
This looks like an unintended WUP code and breaks compilation
This commit is contained in:
parent
08c17d4513
commit
a726104ee6
@ -32,7 +32,7 @@
|
||||
namespace Scumm {
|
||||
|
||||
#define ASC_DEVICE_RATE 0x56EE8BA3
|
||||
#define VBL_UPDATE_RATE 0x003C0000;
|
||||
#define VBL_UPDATE_RATE 0x003C0000
|
||||
#define PCM_BUFFER_RESERVE 64
|
||||
#define RATECNV_BIT_PRECSN 24
|
||||
|
||||
@ -206,9 +206,7 @@ int MacPlayerAudioStream::readBuffer(int16 *buffer, const int numSamples) {
|
||||
};
|
||||
|
||||
static const char errFnNames[2][8] = {"Buffers", "Drivers"};
|
||||
int errNo = -1;
|
||||
for (int i = 0; i < _numGroups && errNo == -1; ++i)
|
||||
errNo = !_buffers[i].size ? 0 : (_buffers[i].rateConvAcc == -1 ? 1 : -1);
|
||||
int errNo = (!_buffers[0].size || !_buffers[1].size) ? 0 : ((_buffers[0].rateConvAcc == -1 || _buffers[1].rateConvAcc == -1) ? 1 : -1);
|
||||
if (errNo != -1)
|
||||
error("MacPlayerAudioStream::readBuffer(): init%s() must be called before playback", errFnNames[errNo]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user