/* * This software is licensed under the terms of the MIT-License * See COPYING for further information. * --- * Copyright (c) 2011-2017, Lukas Weber . * Copyright (c) 2012-2017, Andrei Alexeyev . */ #pragma once #include "taisei.h" #include #include // I needed to add this for supporting loop sounds since Mixer doesn’t remember // what channel a sound is playing on. typedef struct { Mix_Chunk *ch; int loopchan; // channel the sound may be looping on. -1 if not looping int playchan; // channel the sound was last played on (looping does NOT set this). -1 if never played } MixerInternalSound; typedef struct MixerInternalMusic { Mix_Music *intro; Mix_Music *loop; double loop_point; } MixerInternalMusic; char* audio_mixer_sound_path(const char *prefix, const char *name, bool isbgm); bool audio_mixer_check_sound_path(const char *path, bool isbgm);