2
* audio_port.h - base-class for objects providing sound at a port
4
* Copyright (c) 2005 Tobias Doerffel <tobydox/at/users.sourceforge.net>
6
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public
10
* License as published by the Free Software Foundation; either
11
* version 2 of the License, or (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* General Public License for more details.
18
* You should have received a copy of the GNU General Public
19
* License along with this program (see COPYING); if not, write to the
20
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21
* Boston, MA 02111-1307, USA.
29
#include "qt3support.h"
43
#include "effect_board.h"
49
audioPort( const QString & _name );
52
inline surroundSampleFrame * firstBuffer( void )
54
return( m_firstBuffer );
56
inline surroundSampleFrame * secondBuffer( void )
58
return( m_secondBuffer );
61
void nextPeriod( void );
64
// indicate whether JACK & Co should provide output-buffer at ext. port
65
inline bool extOutputEnabled( void ) const
67
return( m_extOutputEnabled );
69
void FASTCALL setExtOutputEnabled( bool _enabled );
72
// next effect-channel after this audio-port
73
// (-1 = none 0 = master)
74
inline fxChnl nextFxChannel( void ) const
76
return( m_nextFxChannel );
78
void setNextFxChannel( fxChnl _chnl )
80
m_nextFxChannel = _chnl;
83
const QString & name( void ) const
88
void setName( const QString & _new_name );
97
surroundSampleFrame * m_firstBuffer;
98
surroundSampleFrame * m_secondBuffer;
99
bool m_extOutputEnabled;
100
fxChnl m_nextFxChannel;