Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 1035:28ccb621d1af bqaudioio
Initial work toward switching to bqaudioio library (so as to get I/O, not just O)
author | Chris Cannam |
---|---|
date | Tue, 04 Aug 2015 13:27:42 +0100 |
parents | 2d524c9eee33 |
children | 1f4e40be5aa2 691a8210e480 |
comparison
equal
deleted
inserted
replaced
1031:2d524c9eee33 | 1035:28ccb621d1af |
---|---|
55 #include "widgets/KeyReference.h" | 55 #include "widgets/KeyReference.h" |
56 #include "widgets/TransformFinder.h" | 56 #include "widgets/TransformFinder.h" |
57 #include "widgets/LabelCounterInputDialog.h" | 57 #include "widgets/LabelCounterInputDialog.h" |
58 #include "widgets/ActivityLog.h" | 58 #include "widgets/ActivityLog.h" |
59 #include "widgets/UnitConverter.h" | 59 #include "widgets/UnitConverter.h" |
60 #include "audioio/AudioCallbackPlaySource.h" | 60 #include "audio/AudioCallbackPlaySource.h" |
61 #include "audioio/AudioCallbackPlayTarget.h" | 61 #include "audio/PlaySpeedRangeMapper.h" |
62 #include "audioio/AudioTargetFactory.h" | |
63 #include "audioio/PlaySpeedRangeMapper.h" | |
64 #include "data/fileio/DataFileReaderFactory.h" | 62 #include "data/fileio/DataFileReaderFactory.h" |
65 #include "data/fileio/PlaylistFileReader.h" | 63 #include "data/fileio/PlaylistFileReader.h" |
66 #include "data/fileio/WavFileWriter.h" | 64 #include "data/fileio/WavFileWriter.h" |
67 #include "data/fileio/CSVFileWriter.h" | 65 #include "data/fileio/CSVFileWriter.h" |
68 #include "data/fileio/MIDIFileWriter.h" | 66 #include "data/fileio/MIDIFileWriter.h" |
91 // For version information | 89 // For version information |
92 #include <vamp/vamp.h> | 90 #include <vamp/vamp.h> |
93 #include <vamp-hostsdk/PluginBase.h> | 91 #include <vamp-hostsdk/PluginBase.h> |
94 #include "plugin/api/ladspa.h" | 92 #include "plugin/api/ladspa.h" |
95 #include "plugin/api/dssi.h" | 93 #include "plugin/api/dssi.h" |
94 | |
95 #include <bqaudioio/SystemPlaybackTarget.h> | |
96 | 96 |
97 #include <QApplication> | 97 #include <QApplication> |
98 #include <QMessageBox> | 98 #include <QMessageBox> |
99 #include <QGridLayout> | 99 #include <QGridLayout> |
100 #include <QLabel> | 100 #include <QLabel> |
4237 | 4237 |
4238 MainWindowBase::mainModelChanged(model); | 4238 MainWindowBase::mainModelChanged(model); |
4239 | 4239 |
4240 if (m_playTarget) { | 4240 if (m_playTarget) { |
4241 connect(m_fader, SIGNAL(valueChanged(float)), | 4241 connect(m_fader, SIGNAL(valueChanged(float)), |
4242 m_playTarget, SLOT(setOutputGain(float))); | 4242 this, SLOT(mainModelGainChanged(float))); |
4243 } | |
4244 } | |
4245 | |
4246 void | |
4247 MainWindow::mainModelGainChanged(float gain) | |
4248 { | |
4249 if (m_playTarget) { | |
4250 m_playTarget->setOutputGain(gain); | |
4243 } | 4251 } |
4244 } | 4252 } |
4245 | 4253 |
4246 void | 4254 void |
4247 MainWindow::modelAboutToBeDeleted(Model *model) | 4255 MainWindow::modelAboutToBeDeleted(Model *model) |