~ubuntu-branches/ubuntu/hardy/lmms/hardy

« back to all changes in this revision

Viewing changes to include/audio_oss.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ragwitz
  • Date: 2005-12-22 16:22:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051222162250-key3p7x0212jy6dn
Tags: 0.1.2-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * audio_oss.h - device-class that implements OSS-PCM-output
3
3
 *
4
 
 * Linux MultiMedia Studio
5
 
 * Copyright (c) 2004-2005 Tobias Doerffel <tobydox@users.sourceforge.net>
 
4
 * Copyright (c) 2004-2005 Tobias Doerffel <tobydox/at/users.sourceforge.net>
 
5
 * 
 
6
 * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
6
7
 *
7
8
 * This program is free software; you can redistribute it and/or
8
9
 * modify it under the terms of the GNU General Public
25
26
#ifndef _AUDIO_OSS_H
26
27
#define _AUDIO_OSS_H
27
28
 
 
29
#ifdef HAVE_CONFIG_H
 
30
#include <config.h>
 
31
#endif
 
32
 
 
33
#if defined HAVE_SYS_SOUNDCARD_H || defined HAVE_SOUNDCARD_H
 
34
 
 
35
#define OSS_SUPPORT
 
36
 
 
37
 
28
38
#include "audio_device.h"
29
39
#include "tab_widget.h"
30
40
 
31
 
#define OSS_SUPPORT
32
41
 
33
42
 
34
43
class lcdSpinBox;
35
44
class QLineEdit;
36
45
 
37
46
 
38
 
class audioOSS : public audioDevice
 
47
class audioOSS : public audioDevice, public QThread
39
48
{
40
49
public:
41
50
        audioOSS( Uint32 _sample_rate, bool & _success_ful );
65
74
 
66
75
 
67
76
private:
68
 
        virtual void FASTCALL writeBufferToDev( surroundSampleFrame * _ab,
69
 
                                                Uint32 _frames,
70
 
                                                float _master_output );
 
77
        virtual void startProcessing( void );
 
78
        virtual void stopProcessing( void );
 
79
        virtual void run( void );
71
80
 
72
81
        int m_audioFD;
73
82
 
74
83
        bool m_convertEndian;
 
84
        volatile bool m_quit;
75
85
 
76
86
} ;
77
87
 
78
88
 
79
89
#endif
 
90
 
 
91
#endif