pulseaudio: Removed unnecessary variable.

main
Ryan C. Gordon 2023-07-05 11:51:38 -04:00
parent a0528cd5ed
commit 4233c41ce2
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
2 changed files with 2 additions and 4 deletions

View File

@ -640,8 +640,7 @@ static int PULSEAUDIO_OpenDevice(SDL_AudioDevice *device)
/* Allocate mixing buffer */ /* Allocate mixing buffer */
if (!iscapture) { if (!iscapture) {
h->mixlen = device->buffer_size; h->mixbuf = (Uint8 *)SDL_malloc(device->buffer_size);
h->mixbuf = (Uint8 *)SDL_malloc(h->mixlen);
if (h->mixbuf == NULL) { if (h->mixbuf == NULL) {
return SDL_OutOfMemory(); return SDL_OutOfMemory();
} }
@ -653,7 +652,7 @@ static int PULSEAUDIO_OpenDevice(SDL_AudioDevice *device)
/* Reduced prebuffering compared to the defaults. */ /* Reduced prebuffering compared to the defaults. */
paattr.fragsize = device->buffer_size; paattr.fragsize = device->buffer_size;
paattr.tlength = h->mixlen; paattr.tlength = device->buffer_size;
paattr.prebuf = -1; paattr.prebuf = -1;
paattr.maxlength = -1; paattr.maxlength = -1;
paattr.minreq = -1; paattr.minreq = -1;

View File

@ -36,7 +36,6 @@ struct SDL_PrivateAudioData
/* Raw mixing buffer */ /* Raw mixing buffer */
Uint8 *mixbuf; Uint8 *mixbuf;
int mixlen;
int bytes_requested; /* bytes of data the hardware wants _now_. */ int bytes_requested; /* bytes of data the hardware wants _now_. */