mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-14 21:39:01 -04:00
Resample audio with SDL3
This commit is contained in:
@@ -35,7 +35,7 @@ static void InitSDL3Output() {
|
||||
constexpr SDL_AudioSpec spec = {
|
||||
SDL_AUDIO_S16,
|
||||
1,
|
||||
32000,
|
||||
SampleRate,
|
||||
};
|
||||
PlaybackStream = SDL_OpenAudioDeviceStream(
|
||||
SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK,
|
||||
@@ -46,6 +46,7 @@ static void InitSDL3Output() {
|
||||
|
||||
void dusk::audio::Initialize() {
|
||||
InitSDL3Output();
|
||||
DspInit();
|
||||
|
||||
JASDsp::initBuffer();
|
||||
JASDSPChannel::initAll();
|
||||
|
||||
Reference in New Issue
Block a user