Add libvorbisdec to deps (closes #162)

This commit is contained in:
2018-05-13 09:21:41 -04:00
parent fa37bcec99
commit 83887bcb8e
2 changed files with 2 additions and 2 deletions

View File

@@ -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.~~

View File

@@ -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
{