mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-03 22:15:22 +00:00
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:
@ -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" ;
|
||||
|
||||
Reference in New Issue
Block a user