Small bugfixes
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40705
This commit is contained in:
parent
d5e201c8ba
commit
f9ec60725d
8 changed files with 76 additions and 94 deletions
|
@ -212,7 +212,7 @@ static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec)
|
|||
|
||||
DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ",spec->format & 0x00ff));
|
||||
DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0)));
|
||||
DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x8000)!=0)));
|
||||
DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0)));
|
||||
DEBUG_PRINT(("channels=%d, ", spec->channels));
|
||||
DEBUG_PRINT(("freq=%d\n", spec->freq));
|
||||
|
||||
|
@ -263,7 +263,7 @@ static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec)
|
|||
|
||||
DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ",spec->format & 0x00ff));
|
||||
DEBUG_PRINT(("signed=%d, ", ((spec->format & 0x8000)!=0)));
|
||||
DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x8000)!=0)));
|
||||
DEBUG_PRINT(("big endian=%d, ", ((spec->format & 0x1000)!=0)));
|
||||
DEBUG_PRINT(("channels=%d, ", spec->channels));
|
||||
DEBUG_PRINT(("freq=%d\n", spec->freq));
|
||||
|
||||
|
@ -352,10 +352,6 @@ static int Mint_OpenAudio(_THIS, SDL_AudioSpec *spec)
|
|||
SDL_CalculateAudioSpec(spec);
|
||||
|
||||
/* Allocate memory for audio buffers in DMA-able RAM */
|
||||
spec->size = spec->samples;
|
||||
spec->size *= spec->channels;
|
||||
spec->size *= (spec->format & 0xFF)/8;
|
||||
|
||||
DEBUG_PRINT((DEBUG_NAME "buffer size=%d\n", spec->size));
|
||||
|
||||
SDL_MintAudio_audiobuf[0] = Atari_SysMalloc(spec->size *2, MX_STRAM);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue