[SDL] SDL 2.0.4, MacOsX and 32 Bits: bad sound, bad render
vernet.jerome at wanadoo.fr
Mon Sep 19 13:22:24 PDT 2016
Le 19/09/2016 à 22:14, Jerome Vernet a écrit :
> Le 19/09/2016 à 19:37, Jerome Vernet a écrit :
Ok, found the revision wich cause the sound problem in 32 bits:
Changeset: 8919 : c9be8299ba6b
Author: Sam Lantinga <slouken at libsdl.org>
Date: 2 years ago (24 juin 2014 10:38)
Description: Fixed bug 2467 - bad memcpy in
If 'SDL_OpenAudio' is called with 'obtained == NULL',
'prepare_audiospec' performs a bad 'memcpy' with the destination and
source pointing to the same block of memory. The problem appears to be
on in 'SDL_OpenAudio', which calls open_audio_device with 'obtained =
desired' when 'obtained == NULL'. 'open_audio_device' cannot deal with
'desired' and 'obtained' pointing to the same block of memory but can
deal with 'obtained == NULL'
Before: it works, after, don't. No problem in 64 bits on MacOsX, even
after this revision.
Any direction to deal with that ? Is it a SDL bug or Hatari bug ?
More information about the SDL