BACKENDS: Fix Compilation.

This commit is contained in:
D G Turner 2011-06-14 00:48:59 +01:00
parent 8c485fe2da
commit de96474672
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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;