mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-20 22:09:55 +00:00
al-util.h changes for SDL3
This commit is contained in:
parent
197d7324be
commit
15499eea19
1 changed files with 9 additions and 8 deletions
|
|
@ -23,7 +23,7 @@
|
|||
#define ALUTIL_H
|
||||
|
||||
#include <al.h>
|
||||
#include <SDL_audio.h>
|
||||
#include <SDL3/SDL_audio.h>
|
||||
#include <assert.h>
|
||||
|
||||
namespace AL
|
||||
|
|
@ -196,15 +196,16 @@ inline uint8_t formatSampleSize(int sdlFormat)
|
|||
{
|
||||
switch (sdlFormat)
|
||||
{
|
||||
case AUDIO_U8 :
|
||||
case AUDIO_S8 :
|
||||
case SDL_AUDIO_U8 :
|
||||
case SDL_AUDIO_S8 :
|
||||
return 1;
|
||||
|
||||
case AUDIO_U16LSB :
|
||||
case AUDIO_U16MSB :
|
||||
case AUDIO_S16LSB :
|
||||
case AUDIO_S16MSB :
|
||||
return 2;
|
||||
//removed from SDL3
|
||||
// case AUDIO_U16LSB :
|
||||
// case AUDIO_U16MSB :
|
||||
// case AUDIO_S16LSB :
|
||||
// case AUDIO_S16MSB :
|
||||
// return 2;
|
||||
|
||||
default :
|
||||
assert(!"Unhandled sample format");
|
||||
|
|
|
|||
Loading…
Reference in a new issue