2016-03-20 17:00:00 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* REminiscence - Flashback interpreter
|
2018-01-20 17:00:00 +01:00
|
|
|
* Copyright (C) 2005-2018 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__
|
|
|
|
|