Fix exit issue
Fixed an issue whereby the 3DS would crash when attempting to exit the 3DSX version of ctrmus. Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
Submodule buildtools updated: 2ef982ddbd...29ab2234e7
@@ -15,7 +15,7 @@ struct decoder_fn
|
||||
{
|
||||
int (* init)(const char* file);
|
||||
uint32_t (* rate)(void);
|
||||
uint8_t (*channels)(void);
|
||||
uint8_t (* channels)(void);
|
||||
int buffSize;
|
||||
uint64_t (* decode)(void*);
|
||||
void (* exit)(void);
|
||||
|
||||
@@ -19,11 +19,6 @@ int playFile(const char* file)
|
||||
bool lastbuf = false;
|
||||
|
||||
printf("Here: %d\n", __LINE__);
|
||||
if(R_FAILED(ndspInit()))
|
||||
{
|
||||
printf("Initialising ndsp failed.");
|
||||
goto out;
|
||||
}
|
||||
|
||||
switch(getFileType(file))
|
||||
{
|
||||
@@ -50,6 +45,12 @@ int playFile(const char* file)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(R_FAILED(ndspInit()))
|
||||
{
|
||||
printf("Initialising ndsp failed.");
|
||||
goto out;
|
||||
}
|
||||
|
||||
printf("Here: %d\n", __LINE__);
|
||||
buffer1 = linearAlloc(decoder.buffSize * sizeof(int16_t));
|
||||
buffer2 = linearAlloc(decoder.buffSize * sizeof(int16_t));
|
||||
|
||||
Reference in New Issue
Block a user