mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
BACKENDS: Fix Compilation.
This commit is contained in:
parent
8c485fe2da
commit
de96474672
@ -45,7 +45,7 @@ void DoubleBufferSDLMixerManager::startAudio() {
|
||||
|
||||
// Create two sound buffers
|
||||
_activeSoundBuf = 0;
|
||||
uint bufSize = _obtainedRate.samples * 4;
|
||||
uint bufSize = _obtained.samples * 4;
|
||||
_soundBufSize = bufSize;
|
||||
_soundBuffers[0] = (byte *)calloc(1, bufSize);
|
||||
_soundBuffers[1] = (byte *)calloc(1, bufSize);
|
||||
|
@ -43,8 +43,8 @@ SymbianSdlMixerManager::~SymbianSdlMixerManager() {
|
||||
|
||||
void SymbianSdlMixerManager::startAudio() {
|
||||
// Need to create mixbuffer for stereo mix to downmix
|
||||
if (_obtainedRate.channels != 2) {
|
||||
_stereoMixBuffer = new byte [_obtainedRate.size * 2]; // * 2 for stereo values
|
||||
if (_obtained.channels != 2) {
|
||||
_stereoMixBuffer = new byte [_obtained.size * 2]; // * 2 for stereo values
|
||||
}
|
||||
|
||||
SdlMixerManager::startAudio();
|
||||
@ -54,7 +54,7 @@ void SymbianSdlMixerManager::callbackHandler(byte *samples, int len) {
|
||||
assert(_mixer);
|
||||
#if defined (S60) && !defined(S60V3)
|
||||
// If not stereo then we need to downmix
|
||||
if (_obtainedRate.channels != 2) {
|
||||
if (_obtained.channels != 2) {
|
||||
_mixer->mixCallback(_stereoMixBuffer, len * 2);
|
||||
|
||||
int16 *bitmixDst = (int16 *)samples;
|
||||
|
Loading…
Reference in New Issue
Block a user