Advertisement
JoshDreamland

Untitled

May 29th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. enum loader_status {
  2. LOADER_SUCCEEDED, ///< The sound was successfully loaded. Stop trying to load it.
  3. LOADER_UNSUPPORTED, ///< The sound format is not supported; try another loader.
  4. LOADER_ERROR ///< The sound was of an acceptable format, but could not be loaded.
  5. };
  6.  
  7. /// Sound loading callback; called for each sound in the game (Regardless of format!)
  8. /// Returns whether the load succeeded, or another loader (or builtin loaders) should be tried.
  9. typedef loader_status (*loader_callback)(int id, char* data);
  10.  
  11. /// Register a sound loader; this function will be called before attempting to load a sound locally.
  12. void register_loader(loader_callback callback);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement