enum loader_status { LOADER_SUCCEEDED, ///< The sound was successfully loaded. Stop trying to load it. LOADER_UNSUPPORTED, ///< The sound format is not supported; try another loader. LOADER_ERROR ///< The sound was of an acceptable format, but could not be loaded. }; /// Sound loading callback; called for each sound in the game (Regardless of format!) /// Returns whether the load succeeded, or another loader (or builtin loaders) should be tried. typedef loader_status (*loader_callback)(int id, char* data); /// Register a sound loader; this function will be called before attempting to load a sound locally. void register_loader(loader_callback callback);