added workaround for qtreewidget deleting the wrong item

This commit is contained in:
itsmattkc
2018-12-04 20:01:33 +11:00
parent 3d4512fa3c
commit 6f5cab5f86
9 changed files with 25 additions and 12 deletions
+4 -4
View File
@@ -54,7 +54,7 @@ void init_audio(Sequence* s) {
audio_format = info.nearestFormat(audio_format);
}
audio_output = new QAudioOutput(audio_format);
audio_output = new QAudioOutput(info, audio_format);
audio_output->setNotifyInterval(5);
// connect
@@ -62,9 +62,9 @@ void init_audio(Sequence* s) {
audio_device_set = true;
// start sender thread
audio_thread = new AudioSenderThread();
QObject::connect(audio_output, SIGNAL(notify()), audio_thread, SLOT(notifyReceiver()));
audio_thread->start(QThread::TimeCriticalPriority);
audio_thread = new AudioSenderThread();
QObject::connect(audio_output, SIGNAL(notify()), audio_thread, SLOT(notifyReceiver()));
audio_thread->start(QThread::TimeCriticalPriority);
clear_audio_ibuffer();
}
+1 -1
View File
@@ -390,7 +390,7 @@ void cache_audio_worker(Clip* c, bool scrubbing, QVector<Clip*>& nests) {
audio_write_lock.unlock();
if (scrubbing) {
audio_thread->notifyReceiver();
if (audio_thread != NULL) audio_thread->notifyReceiver();
}
if (c->frame_sample_index == nb_bytes) {