From 83887bcb8e1be5bfe1290a9e49cfc318dff7fdc9 Mon Sep 17 00:00:00 2001 From: Alex Taber Date: Sun, 13 May 2018 09:21:41 -0400 Subject: [PATCH] Add libvorbisdec to deps (closes #162) --- README.md | 2 +- source/music.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 49f76a1..a7013f8 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ To-do list here: https://trello.com/b/F1YSa1VK # Dependencies * devkitPro, which can be installed following the instructions [here](https://devkitpro.org/wiki/Getting_Started). - * zlib, jansson, and libarchive, which can be retrieved from [devkitPro pacman](https://devkitpro.org/viewtopic.php?f=13&t=8702). + * zlib, jansson, libvorbisidec, and libarchive, which can be retrieved from [devkitPro pacman](https://devkitpro.org/viewtopic.php?f=13&t=8702). * A recent build of [makerom](https://github.com/profi200/Project_CTR) and the latest release of [bannertool](https://github.com/Steveice10/bannertool). These must be added to your PATH. A 64-bit Windows binary of makerom is available [here](https://hm892.s-ul.eu/U0Irkqih). * ~~[pp2d](https://github.com/BernardoGiordano/pp2d), which is included in the repo if you do a git clone --recursive.~~ diff --git a/source/music.c b/source/music.c index d0de52b..57929a2 100644 --- a/source/music.c +++ b/source/music.c @@ -30,7 +30,7 @@ // Play a given audio struct Result update_audio(audio_s *audio) { - long size = BUF_TO_READ - audio->data_read; + long size = audio->wave_buf[audio->buf_pos].nsamples * 4 - audio->data_read; DEBUG("Audio Size: %ld\n", size); if (audio->wave_buf[audio->buf_pos].status == NDSP_WBUF_DONE) // only run if the current selected buffer has already finished playing {