added workaround for qtreewidget deleting the wrong item
This commit is contained in:
+4
-4
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user