Finish Windows ARM64 bringup

SDL2  for ARM64 is not yet checked-in, but I will do that when SDL 2.0.14 is released.
This commit is contained in:
Cameron Gutman 2020-12-12 16:44:41 -06:00
commit a6551c320d
5 changed files with 6 additions and 6 deletions

View file

@ -42,7 +42,7 @@ bool SdlAudioRenderer::prepareForPlayback(const OPUS_MULTISTREAM_CONFIGURATION*
return false;
}
m_AudioBuffer = malloc(m_FrameSize);
m_AudioBuffer = SDL_malloc(m_FrameSize);
if (m_AudioBuffer == nullptr) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
"Failed to allocate audio buffer");
@ -74,7 +74,7 @@ SdlAudioRenderer::~SdlAudioRenderer()
}
if (m_AudioBuffer != nullptr) {
free(m_AudioBuffer);
SDL_free(m_AudioBuffer);
}
SDL_QuitSubSystem(SDL_INIT_AUDIO);