/*  _______         ____    __         ___    ___
 * \    _  \       \    /  \  /       \   \  /   /       '   '  '
 *  |  | \  \       |  |    ||         |   \/   |         .      .
 *  |  |  |  |      |  |    ||         ||\  /|  |
 *  |  |  |  |      |  |    ||         || \/ |  |         '  '  '
 *  |  |  |  |      |  |    ||         ||    |  |         .      .
 *  |  |_/  /        \  \__//          ||    |  |
 * /_______/ynamic    \____/niversal  /__\  /____\usic   /|  .  . ibliotheque
 *                                                      /  \
 *                                                     / .  \
 * aldumb.h - The user header file for DUMB with      / / \  \
 *            Allegro 5.                             | <  /   \_
 *                                                   |  \/ /\   /
 * Include this file if you wish to use DUMB          \_  /  > /
 * with Allegro 5. It will include dumb.h for you,      | \ / /
 * and provide extra functionality such as audio        |  ' /
 * stream and datafile integration.                      \__/
 */

#ifndef A5DUMB_H
#define A5DUMB_H

#include <allegro5/allegro5.h>
#include <dumb.h>

#ifdef __cplusplus
	extern "C"
	{
#endif

typedef struct AL_DUH_PLAYER AL_DUH_PLAYER;

/* DUH Playing Functions */
bool al_init_dumb_addon(int resampler);
AL_DUH_PLAYER * al_play_module(const char * fn, int pattern, bool loop);
bool al_set_module_pattern(int pattern);
void al_stop_module(void);
void al_pause_module(void);
void al_resume_module(void);
void al_duh_set_volume(AL_DUH_PLAYER *dp, float volume);

#ifdef __cplusplus
	}
#endif

#endif /* A5DUMB_H */
