AudioJack: more optional code for AudioPort support
There's been some more code that is only required if AUDIO_PORT_SUPPORT is set. Added according #ifdefs and fixed a typo in AudioPort support code. (cherry picked from commit e98726ae992c77fb2dfdb6668319b5521ff8aaef)
This commit is contained in:
@@ -109,6 +109,7 @@ private:
|
||||
f_cnt_t m_framesToDoInCurBuf;
|
||||
|
||||
|
||||
#ifdef AUDIO_PORT_SUPPORT
|
||||
struct StereoPort
|
||||
{
|
||||
jack_port_t * ports[2];
|
||||
@@ -117,6 +118,7 @@ private:
|
||||
typedef QMap<AudioPort *, StereoPort> JackPortMap;
|
||||
JackPortMap m_portMap;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
signals:
|
||||
void zombified();
|
||||
|
||||
@@ -74,10 +74,12 @@ AudioJack::~AudioJack()
|
||||
{
|
||||
m_stopSemaphore.release();
|
||||
|
||||
#ifdef AUDIO_PORT_SUPPORT
|
||||
while( m_portMap.size() )
|
||||
{
|
||||
unregisterPort( m_portMap.begin().key() );
|
||||
}
|
||||
#endif
|
||||
|
||||
if( m_client != NULL )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user