integrated pulse action into qprojectM.

git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@742 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
w1z7ard
2008-01-12 21:51:57 +00:00
parent 08161c7e64
commit 1a397ce1a5
6 changed files with 37 additions and 16 deletions

View File

@ -3,6 +3,9 @@
#include <QtDebug>
#include <QString>
#include <QVector>
QPulseAudioThread::SourceContainer QPulseAudioThread::sourceList;
/* $Id: pacat.c 1426 2007-02-13 15:35:19Z ossman $ */
/***
@ -70,7 +73,9 @@ static int channel_map_set = 0;
static pa_sample_spec sample_spec ;
QPulseAudioThread::QPulseAudioThread ( int _argc, char **_argv, projectM * _projectM, QObject * parent ) : QThread ( parent ), argc ( _argc ), argv ( _argv ), m_projectM ( _projectM ), sourceIndex ( -1 ) {}
QPulseAudioThread::QPulseAudioThread ( int _argc, char **_argv, projectM * _projectM, QObject * parent ) : QThread ( parent ), argc ( _argc ), argv ( _argv ), m_projectM ( _projectM ), sourceIndex ( -1 ) {
}
QPulseAudioThread::~QPulseAudioThread()
@ -78,8 +83,6 @@ QPulseAudioThread::~QPulseAudioThread()
}
void QPulseAudioThread::cleanup()
{
@ -412,6 +415,8 @@ void QPulseAudioThread::pa_source_info_callback ( pa_context *c, const pa_source
QString name = i->name;
qDebug() << "insert";
pulseThread->insertSource(index,name);
qDebug() << "Added" ;