Remove debugging
Additionally increased the maximum size of the directory path to display by a whopping 3 characters. Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
@@ -19,8 +19,6 @@ int playFile(const char* file)
|
||||
bool lastbuf = false;
|
||||
int ret;
|
||||
|
||||
printf("Here: %d\n", __LINE__);
|
||||
|
||||
switch(getFileType(file))
|
||||
{
|
||||
case FILE_TYPE_WAV:
|
||||
@@ -50,19 +48,15 @@ int playFile(const char* file)
|
||||
goto out;
|
||||
}
|
||||
|
||||
printf("Here: %d\n", __LINE__);
|
||||
if((ret = (*decoder.init)(file)) != 0)
|
||||
{
|
||||
printf("Error initialising decoder: %d\n", ret);
|
||||
goto out;
|
||||
}
|
||||
|
||||
printf("Here: %d\n", __LINE__);
|
||||
buffer1 = linearAlloc(decoder.buffSize * sizeof(int16_t));
|
||||
buffer2 = linearAlloc(decoder.buffSize * sizeof(int16_t));
|
||||
|
||||
printf("Here: %d\n", __LINE__);
|
||||
|
||||
#ifdef DEBUG
|
||||
printf("\nRate: %lu\tChan: %d\n", (*decoder.rate)(), (*decoder.channels)());
|
||||
#endif
|
||||
@@ -75,13 +69,11 @@ int playFile(const char* file)
|
||||
ndspChnSetFormat(CHANNEL,
|
||||
(*decoder.channels)() == 2 ? NDSP_FORMAT_STEREO_PCM16 :
|
||||
NDSP_FORMAT_MONO_PCM16);
|
||||
printf("Here: %d\n", __LINE__);
|
||||
|
||||
memset(waveBuf, 0, sizeof(waveBuf));
|
||||
waveBuf[0].nsamples = (*decoder.decode)(&buffer1[0]) / (*decoder.channels)();
|
||||
waveBuf[0].data_vaddr = &buffer1[0];
|
||||
ndspChnWaveBufAdd(CHANNEL, &waveBuf[0]);
|
||||
printf("Here: %d\n", __LINE__);
|
||||
|
||||
waveBuf[1].nsamples = (*decoder.decode)(&buffer2[0]) / (*decoder.channels)();
|
||||
waveBuf[1].data_vaddr = &buffer2[0];
|
||||
|
||||
Reference in New Issue
Block a user