1
/***************************************************************************
4
begin : Wed Feb 20 2002
5
copyright : (C) 2002 by Tue and Ken Haste Andersen
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
25
#include "enginebuffer.h"
26
#include "controlobject.h"
27
#include <qmultilineedit.h>
29
class Player : public QObject {
32
~Player(); // Deallocate
33
virtual void start(EngineBuffer*); // Start audio stream
34
virtual void stop() = 0; // Stops audio stream
35
virtual void wait() = 0; // Wait for audio stream to finish
38
int prepareBuffer(); // Calculates one buffer of sound
45
CSAMPLE *process_buffer,*tmp1, *tmp2;
46
int index; // Current playback frame in input buffer
48
unsigned long int play_pos;
49
QMultiLineEdit *messages;