mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
[LIBNX] Fix Audio and Platform for updated libnx
This commit is contained in:
parent
899e35451a
commit
424d169cd9
2 changed files with 2 additions and 4 deletions
|
@ -165,7 +165,7 @@ static void *switch_thread_audio_init(const char *device, unsigned rate, unsigne
|
|||
swa->fifoSize = (swa->sampleRate * SAMPLE_SIZE * swa->latency) / 1000;
|
||||
swa->fifo = fifo_new(swa->fifoSize);
|
||||
|
||||
condvarInit(&swa->cond, &swa->condLock);
|
||||
condvarInit(&swa->cond);
|
||||
|
||||
RARCH_LOG("[Audio]: switch_thread_audio_init device %s requested rate %hu rate %hu latency %hu block_frames %hu fifoSize %lu\n",
|
||||
device, rate, swa->sampleRate, swa->latency, block_frames, swa->fifoSize);
|
||||
|
@ -278,7 +278,7 @@ static ssize_t switch_thread_audio_write(void *data, const void *buf, size_t siz
|
|||
mutexUnlock(&swa->fifoLock);
|
||||
lockMutex(&swa->condLock);
|
||||
if (swa->running)
|
||||
condvarWait(&swa->cond);
|
||||
condvarWait(&swa->cond, &swa->condLock);
|
||||
mutexUnlock(&swa->condLock);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -549,8 +549,6 @@ static void frontend_switch_init(void *data)
|
|||
gfxInitDefault();
|
||||
gfxSetMode(GfxMode_TiledDouble);
|
||||
|
||||
// Needed, else its flipped and mirrored
|
||||
gfxSetDrawFlip(false);
|
||||
gfxConfigureTransform(0);
|
||||
|
||||
#if defined(HAVE_LIBNX) && defined(NXLINK)
|
||||
|
|
Loading…
Add table
Reference in a new issue