Renamed Opus dec

Additionally made very minor changes to fix 80 character line limit in
some places.

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
Mahyar Koshkouei
2016-12-27 16:43:45 +00:00
parent 4290b64778
commit 5e2af8be87
4 changed files with 7 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
#define DR_FLAC_IMPLEMENTATION
#include <../source/dr_libs/dr_flac.h>
#define SAMPLES_TO_READ 16 * 1024
#define SAMPLES_TO_READ (16 * 1024)
#define CHANNEL 0x08
int playFlac(const char* in)

View File

@@ -17,10 +17,10 @@
#include <string.h>
#include "main.h"
#include "trivial_example.h"
#include "opus.h"
#include "flac.h"
#define BUFFER_SIZE 16 * 1024
#define BUFFER_SIZE (16 * 1024)
#define AUDIO_FOLDER "sdmc:/MUSIC/"
#define CHANNEL 0x08
@@ -308,12 +308,14 @@ int playWav(const char *wav)
switch(bitness)
{
case 8:
bitness = channels == 2 ? NDSP_FORMAT_STEREO_PCM8 : NDSP_FORMAT_MONO_PCM8;
bitness = channels == 2 ? NDSP_FORMAT_STEREO_PCM8 :
NDSP_FORMAT_MONO_PCM8;
puts("8bit playback disabled.");
goto out;
case 16:
bitness = channels == 2 ? NDSP_FORMAT_STEREO_PCM16 : NDSP_FORMAT_MONO_PCM16;
bitness = channels == 2 ? NDSP_FORMAT_STEREO_PCM16 :
NDSP_FORMAT_MONO_PCM16;
break;
default: