Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Jan 19, 2025
1 parent 3549d83 commit a6c8c6c
Show file tree
Hide file tree
Showing 4 changed files with 348 additions and 339 deletions.
14 changes: 7 additions & 7 deletions audio/drivers/switch_libnx_audren_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ static size_t libnx_audren_audio_append(
}

static ssize_t libnx_audren_audio_write(void *data,
const void *buf, size_t size)
const void *s, size_t len)
{
libnx_audren_t *aud = (libnx_audren_t*)data;
size_t written = 0;
Expand All @@ -241,21 +241,21 @@ static ssize_t libnx_audren_audio_write(void *data,

if (aud->nonblock)
{
while (written < size)
while (written < len)
{
written += libnx_audren_audio_append(
aud, buf + written, size - written);
if (written != size)
aud, s + written, len - written);
if (written != len)
break;
}
}
else
{
while (written < size)
while (written < len)
{
written += libnx_audren_audio_append(
aud, buf + written, size - written);
if (written != size)
aud, s + written, len - written);
if (written != len)
{
mutexLock(&aud->update_lock);
audrvUpdate(&aud->drv);
Expand Down
Loading

0 comments on commit a6c8c6c

Please sign in to comment.