This commit is contained in:
twinaphex 2017-05-14 23:58:48 +02:00
parent 6741423410
commit 949a5c76fe
2 changed files with 2 additions and 6 deletions

View File

@ -2257,7 +2257,7 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
return true;
}
#if 0
#if 1
static void runloop_upload_audio(void *task_data,
void *user_data, const char *err)
{
@ -2634,7 +2634,7 @@ static enum runloop_state runloop_check_state(
if (runloop_cmd_triggered(trigger_input, RARCH_RESET))
{
command_event(CMD_EVENT_RESET, NULL);
#if 0
#if 1
task_push_audio_mixer_load("/home/squarepusher/SumertimeBlues.ogg",
runloop_upload_audio, NULL);
#endif

View File

@ -32,7 +32,6 @@
struct nbio_audio_mixer_handle
{
enum nbio_type type;
bool is_finished;
void *handle;
};
@ -142,18 +141,15 @@ bool task_push_audio_mixer_load(const char *fullpath, retro_task_callback_t cb,
goto error;
nbio->type = NBIO_TYPE_NONE;
image->type = NBIO_TYPE_NONE;
if (strstr(fullpath, file_path_str(FILE_PATH_WAV_EXTENSION)))
{
nbio->type = NBIO_TYPE_WAV;
image->type = NBIO_TYPE_WAV;
nbio->cb = &cb_nbio_audio_wav_loaded;
}
else if (strstr(fullpath, file_path_str(FILE_PATH_OGG_EXTENSION)))
{
nbio->type = NBIO_TYPE_OGG;
image->type = NBIO_TYPE_OGG;
nbio->cb = &cb_nbio_audio_ogg_loaded;
}