Re: SDL 2.0.4, MacOsX and 32 Bits: bad sound, bad render
Jerome Vernet <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
Le 19/09/2016 à 22:14, Jerome Vernet a écrit : > Le 19/09/2016 à 19:37, Jerome Vernet a écrit : >> Hello, Ok, found the revision wich cause the sound problem in 32 bits: Changeset: 8919 : c9be8299ba6b Parent: 8917 Author: Sam Lantinga <[email protected]> Branch: default Date: 2 years ago (24 juin 2014 10:38) Description: Fixed bug 2467 - bad memcpy in SDL_OpenAudio/open_audio_device/prepare_audiospec chain Rainer Deyke 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' Modified: src/audio/SDL_audio.c 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 ? JV