summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/audiodevice.h
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/audiodevice.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/audiodevice.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/audiodevice.h b/core/multimedia/opieplayer/audiodevice.h
index 928f134..dcd79fe 100644
--- a/core/multimedia/opieplayer/audiodevice.h
+++ b/core/multimedia/opieplayer/audiodevice.h
@@ -14,26 +14,30 @@
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20// L.J.Potter added changes Fri 02-15-2002
21
22
20#ifndef AUDIODEVICE_H 23#ifndef AUDIODEVICE_H
21#define AUDIODEVICE_H 24#define AUDIODEVICE_H
22 25
23 26
24#include <qobject.h> 27#include <qobject.h>
28#include <sys/soundcard.h>
25 29
26 30
27class AudioDevicePrivate; 31class AudioDevicePrivate;
28 32
29 33
30class AudioDevice : public QObject { 34class AudioDevice : public QObject {
31 Q_OBJECT 35 Q_OBJECT
32public: 36public:
33 AudioDevice( unsigned int freq = 44000, unsigned int channels = 2, unsigned int bytesPerSample = 2 ); 37 AudioDevice( unsigned int freq = 44000, unsigned int channels = 2, unsigned int bytesPerSample = AFMT_S16_LE );
34 ~AudioDevice(); 38 ~AudioDevice();
35 39
36 unsigned int canWrite() const; 40 unsigned int canWrite() const;
37 void write( char *buffer, unsigned int length ); 41 void write( char *buffer, unsigned int length );
38 int bytesWritten(); 42 int bytesWritten();
39 43