Permalink
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (36 sloc) 768 Bytes
/*
* See Licensing and Copyright notice in naev.h
*/
#ifndef MUSIC_OPENAL_H
# define MUSIC_OPENAL_H
#if USE_OPENAL
#include "SDL_rwops.h"
#include "nopenal.h"
/*
* Shared.
*/
extern ALuint music_source;
/*
* Init/exit.
*/
int music_al_init (void);
void music_al_exit (void);
/*
* Loading.
*/
int music_al_load( const char* name, SDL_RWops *rw );
void music_al_free (void);
/*
* Music control.
*/
int music_al_volume( const double vol );
double music_al_getVolume (void);
double music_al_getVolumeLog(void);
void music_al_play (void);
void music_al_stop (void);
void music_al_pause (void);
void music_al_resume (void);
void music_al_setPos( double sec );
int music_al_isPlaying (void);
#endif /* USE_OPENAL */
#endif /* MUSIC_OPENAL_H */