mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
Cleanup
This commit is contained in:
parent
6741423410
commit
949a5c76fe
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user