REminiscence/ogg_player.h

35 lines
640 B
C
Raw Normal View History

2016-03-20 17:00:00 +01:00
/*
* REminiscence - Flashback interpreter
* Copyright (C) 2005-2015 Gregory Montoir (cyx@users.sourceforge.net)
2015-08-02 18:00:00 +02:00
*/
#ifndef OGG_PLAYER_H__
#define OGG_PLAYER_H__
#include "intern.h"
struct FileSystem;
struct Mixer;
struct OggDecoder_impl;
struct OggPlayer {
OggPlayer(Mixer *mixer, FileSystem *fs);
~OggPlayer();
bool playTrack(int num);
void stopTrack();
void pauseTrack();
void resumeTrack();
bool isPlaying() const { return _impl != 0; }
2016-05-09 18:00:00 +02:00
bool mix(int16_t *buf, int len);
static bool mixCallback(void *param, int16_t *buf, int len);
2015-08-02 18:00:00 +02:00
Mixer *_mix;
FileSystem *_fs;
OggDecoder_impl *_impl;
};
#endif // OGG_PLAYER_H__