1
/***************************************************************************
2
soundsource.h - description
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
***************************************************************************/
23
#include <audiofile.h>
35
*@author Tue and Ken Haste Andersen
38
class SoundSource : public QObject {
41
virtual ~SoundSource();
42
virtual long seek(long) = 0;
43
virtual unsigned read(unsigned long size, const SAMPLE*) = 0;
44
virtual long unsigned length() = 0;
47
class AFlibfile : public SoundSource {
51
long filelength, mp3filelength;
53
AFlibfile(const char*);
56
unsigned read(unsigned long size, const SAMPLE*);
57
long unsigned length();
60
class mp3file : public SoundSource {
63
unsigned inputbuf_len;
64
unsigned char *inputbuf;
66
long filelength, mp3filelength;
70
vector<long> ftable,sampletable;
75
unsigned read(unsigned long size, const SAMPLE*);
76
long unsigned length();