Remove support for SDL1 (#7443)
Remove the fallback code in `CMakeLists.txt`. Keep the message that's shown when SDL is wanted but not found. Remove the specific `LMMS_HAVE_SDL2` define. Just print "OK" if SDL is found. Remove several ifdefs which check for SDL2 or SDL1. Remove all code related to SDL1.
This commit is contained in:
committed by
GitHub
parent
0e96c267cd
commit
d8e4d8c115
@@ -29,12 +29,7 @@
|
||||
|
||||
#ifdef LMMS_HAVE_SDL
|
||||
|
||||
#ifdef LMMS_HAVE_SDL2
|
||||
#include <SDL2/SDL_audio.h>
|
||||
#else
|
||||
#include <SDL/SDL.h>
|
||||
#include <SDL/SDL_audio.h>
|
||||
#endif
|
||||
|
||||
#include "AudioDevice.h"
|
||||
#include "AudioDeviceSetupWidget.h"
|
||||
@@ -84,35 +79,22 @@ private:
|
||||
static void sdlAudioCallback( void * _udata, Uint8 * _buf, int _len );
|
||||
void sdlAudioCallback( Uint8 * _buf, int _len );
|
||||
|
||||
#ifdef LMMS_HAVE_SDL2
|
||||
static void sdlInputAudioCallback( void * _udata, Uint8 * _buf, int _len );
|
||||
void sdlInputAudioCallback( Uint8 * _buf, int _len );
|
||||
#endif
|
||||
|
||||
SDL_AudioSpec m_audioHandle;
|
||||
|
||||
SampleFrame* m_outBuf;
|
||||
|
||||
#ifdef LMMS_HAVE_SDL2
|
||||
size_t m_currentBufferFramePos;
|
||||
size_t m_currentBufferFramesCount;
|
||||
#else
|
||||
Uint8 * m_convertedBuf;
|
||||
int m_convertedBufPos;
|
||||
int m_convertedBufSize;
|
||||
bool m_outConvertEndian;
|
||||
#endif
|
||||
|
||||
|
||||
bool m_stopped;
|
||||
|
||||
#ifdef LMMS_HAVE_SDL2
|
||||
SDL_AudioDeviceID m_outputDevice;
|
||||
|
||||
SDL_AudioSpec m_inputAudioHandle;
|
||||
SDL_AudioDeviceID m_inputDevice;
|
||||
#endif
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user