Skip to content

Commit

Permalink
FIX(client): Added qRegisterMetaType of AudioOutputBuffer to AudioOut…
Browse files Browse the repository at this point in the history
…put.cpp
  • Loading branch information
jaggzh committed Sep 28, 2024
1 parent 5782f61 commit 7d3e88e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mumble/AudioOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ QMap< QString, AudioOutputRegistrar * > *AudioOutputRegistrar::qmNew;
QString AudioOutputRegistrar::current = QString();

AudioOutputRegistrar::AudioOutputRegistrar(const QString &n, int p) : name(n), priority(p) {
qRegisterMetaType< AudioOutputBuffer * >("AudioOutputBuffer *");

if (!qmNew)
qmNew = new QMap< QString, AudioOutputRegistrar * >();
qmNew->insert(name, this);
Expand Down
2 changes: 2 additions & 0 deletions src/mumble/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#ifdef USE_OVERLAY
# include "Overlay.h"
#endif

#include "AudioInput.h"
#include "AudioOutput.h"
#include "AudioWizard.h"
Expand Down Expand Up @@ -56,6 +57,7 @@
#include <QtCore/QProcess>
#include <QtGui/QDesktopServices>
#include <QtWidgets/QMessageBox>
#include <QMetaType>

#include <iostream>
#include <memory>
Expand Down

0 comments on commit 7d3e88e

Please sign in to comment.