Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 574:b3c35447ef31 3.0-integration
Wire up record monitoring
author | Chris Cannam |
---|---|
date | Wed, 04 Jan 2017 16:03:12 +0000 |
parents | 4c1ab4f9e116 |
children | 702272b78bbe |
comparison
equal
deleted
inserted
replaced
573:9fb190c6521b | 574:b3c35447ef31 |
---|---|
46 #include "widgets/CSVFormatDialog.h" | 46 #include "widgets/CSVFormatDialog.h" |
47 #include "widgets/ModelDataTableDialog.h" | 47 #include "widgets/ModelDataTableDialog.h" |
48 #include "widgets/InteractiveFileFinder.h" | 48 #include "widgets/InteractiveFileFinder.h" |
49 | 49 |
50 #include "audio/AudioCallbackPlaySource.h" | 50 #include "audio/AudioCallbackPlaySource.h" |
51 #include "audio/AudioRecordTarget.h" | 51 #include "audio/AudioCallbackRecordTarget.h" |
52 #include "audio/PlaySpeedRangeMapper.h" | 52 #include "audio/PlaySpeedRangeMapper.h" |
53 | 53 |
54 #include "data/fileio/DataFileReaderFactory.h" | 54 #include "data/fileio/DataFileReaderFactory.h" |
55 #include "data/fileio/PlaylistFileReader.h" | 55 #include "data/fileio/PlaylistFileReader.h" |
56 #include "data/fileio/WavFileWriter.h" | 56 #include "data/fileio/WavFileWriter.h" |
229 connect(m_paneStack, SIGNAL(dropAccepted(Pane *, QString)), | 229 connect(m_paneStack, SIGNAL(dropAccepted(Pane *, QString)), |
230 this, SLOT(paneDropAccepted(Pane *, QString))); | 230 this, SLOT(paneDropAccepted(Pane *, QString))); |
231 connect(m_paneStack, SIGNAL(paneDeleteButtonClicked(Pane *)), | 231 connect(m_paneStack, SIGNAL(paneDeleteButtonClicked(Pane *)), |
232 this, SLOT(paneDeleteButtonClicked(Pane *))); | 232 this, SLOT(paneDeleteButtonClicked(Pane *))); |
233 | 233 |
234 m_playSource = new AudioCallbackPlaySource(m_viewManager, | 234 m_playSource = new AudioCallbackPlaySource |
235 QApplication::applicationName()); | 235 (m_viewManager, QApplication::applicationName()); |
236 | |
236 if (m_soundOptions & WithAudioInput) { | 237 if (m_soundOptions & WithAudioInput) { |
237 m_recordTarget = new AudioRecordTarget(m_viewManager, | 238 m_recordTarget = new AudioCallbackRecordTarget |
238 QApplication::applicationName()); | 239 (m_viewManager, QApplication::applicationName()); |
239 connect(m_recordTarget, | 240 connect(m_recordTarget, |
240 SIGNAL(recordDurationChanged(sv_frame_t, sv_samplerate_t)), | 241 SIGNAL(recordDurationChanged(sv_frame_t, sv_samplerate_t)), |
241 this, | 242 this, |
242 SLOT(recordDurationChanged(sv_frame_t, sv_samplerate_t))); | 243 SLOT(recordDurationChanged(sv_frame_t, sv_samplerate_t))); |
243 } | 244 } |
249 connect(m_playSource, SIGNAL(audioOverloadPluginDisabled()), | 250 connect(m_playSource, SIGNAL(audioOverloadPluginDisabled()), |
250 this, SLOT(audioOverloadPluginDisabled())); | 251 this, SLOT(audioOverloadPluginDisabled())); |
251 connect(m_playSource, SIGNAL(audioTimeStretchMultiChannelDisabled()), | 252 connect(m_playSource, SIGNAL(audioTimeStretchMultiChannelDisabled()), |
252 this, SLOT(audioTimeStretchMultiChannelDisabled())); | 253 this, SLOT(audioTimeStretchMultiChannelDisabled())); |
253 | 254 |
254 connect(m_viewManager, SIGNAL(outputLevelsChanged(float, float)), | 255 connect(m_viewManager, SIGNAL(monitoringLevelsChanged(float, float)), |
255 this, SLOT(outputLevelsChanged(float, float))); | 256 this, SLOT(monitoringLevelsChanged(float, float))); |
256 | 257 |
257 connect(m_viewManager, SIGNAL(playbackFrameChanged(sv_frame_t)), | 258 connect(m_viewManager, SIGNAL(playbackFrameChanged(sv_frame_t)), |
258 this, SLOT(playbackFrameChanged(sv_frame_t))); | 259 this, SLOT(playbackFrameChanged(sv_frame_t))); |
259 | 260 |
260 connect(m_viewManager, SIGNAL(globalCentreFrameChanged(sv_frame_t)), | 261 connect(m_viewManager, SIGNAL(globalCentreFrameChanged(sv_frame_t)), |