SDL: audio: Replace some SDL_memcpy calls with SDL_copyp.

From 2a950f6ae6425d0ebe560e3b6ad70c395be66358 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 20 Sep 2023 10:01:52 -0400
Subject: [PATCH] audio: Replace some SDL_memcpy calls with SDL_copyp.

---
 src/audio/SDL_audio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c
index 05048e7537df..1ec7b854e9f1 100644
--- a/src/audio/SDL_audio.c
+++ b/src/audio/SDL_audio.c
@@ -277,8 +277,8 @@ static SDL_AudioDevice *CreatePhysicalAudioDevice(const char *name, SDL_bool isc
     SDL_AtomicSet(&device->condemned, 0);
     SDL_AtomicSet(&device->zombie, 0);
     device->iscapture = iscapture;
-    SDL_memcpy(&device->spec, spec, sizeof (SDL_AudioSpec));
-    SDL_memcpy(&device->default_spec, spec, sizeof (SDL_AudioSpec));
+    SDL_copyp(&device->spec, spec);
+    SDL_copyp(&device->default_spec, spec);
     device->sample_frames = GetDefaultSampleFramesFromFreq(device->spec.freq);
     device->silence_value = SDL_GetSilenceValueForFormat(device->spec.format);
     device->handle = handle;