-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* reporting sonivox version * Qt6 building by default * Copyright years updated
- Loading branch information
Showing
16 changed files
with
90 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Sonivox EAS Synthesizer for Qt applications | ||
Copyright (C) 2016-2023, Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2016-2024, Pedro Lopez-Cabanillas <[email protected]> | ||
This library is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Sonivox EAS Synthesizer for Qt applications | ||
Copyright (C) 2016-2023, Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2016-2024, Pedro Lopez-Cabanillas <[email protected]> | ||
This library is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Sonivox EAS Synthesizer for Qt applications | ||
Copyright (C) 2016-2023, Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2016-2024, Pedro Lopez-Cabanillas <[email protected]> | ||
This library is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -44,6 +44,8 @@ MainWindow::MainWindow(QWidget *parent) : | |
ui->combo_Chorus->addItem(QStringLiteral("None"), -1); | ||
ui->combo_Chorus->setCurrentIndex(4); | ||
|
||
ui->libSonivoxVersion->setText(m_synth->renderer()->libVersion()); | ||
|
||
connect(ui->combo_Reverb, SIGNAL(currentIndexChanged(int)), SLOT(reverbTypeChanged(int))); | ||
connect(ui->combo_Chorus, SIGNAL(currentIndexChanged(int)), SLOT(chorusTypeChanged(int))); | ||
connect(ui->dial_Reverb, &QDial::valueChanged, this, &MainWindow::reverbChanged); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Sonivox EAS Synthesizer for Qt applications | ||
Copyright (C) 2016-2023, Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2016-2024, Pedro Lopez-Cabanillas <[email protected]> | ||
This library is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Sonivox EAS Synthesizer for Qt applications | ||
Copyright (C) 2016-2023, Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2016-2024, Pedro Lopez-Cabanillas <[email protected]> | ||
This library is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Sonivox EAS Synthesizer for Qt applications | ||
Copyright (C) 2016-2023, Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2016-2024, Pedro Lopez-Cabanillas <[email protected]> | ||
This library is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Sonivox EAS Synthesizer for Qt applications | ||
Copyright (C) 2016-2023, Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2016-2024, Pedro Lopez-Cabanillas <[email protected]> | ||
This library is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Sonivox EAS Synthesizer for Qt applications | ||
Copyright (C) 2016-2023, Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2016-2024, Pedro Lopez-Cabanillas <[email protected]> | ||
This library is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Sonivox EAS Synthesizer for Qt applications | ||
Copyright (C) 2016-2023, Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2016-2024, Pedro Lopez-Cabanillas <[email protected]> | ||
This library is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Sonivox EAS Synthesizer for Qt applications | ||
Copyright (C) 2016-2023, Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2016-2024, Pedro Lopez-Cabanillas <[email protected]> | ||
This library is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Sonivox EAS Synthesizer for Qt applications | ||
Copyright (C) 2016-2023, Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2016-2024, Pedro Lopez-Cabanillas <[email protected]> | ||
This library is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -16,20 +16,23 @@ | |
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <QCoreApplication> | ||
#include <QObject> | ||
#include <QReadLocker> | ||
#include <QString> | ||
#include <QCoreApplication> | ||
#include <QTextStream> | ||
#include <QtDebug> | ||
#include <QReadLocker> | ||
#include <QVersionNumber> | ||
#include <QWriteLocker> | ||
#include "eas_reverb.h" | ||
#include "eas_chorus.h" | ||
#include <pulse/simple.h> | ||
#include <pulse/error.h> | ||
#include <QtDebug> | ||
|
||
#include <drumstick/sequencererror.h> | ||
#include "synthrenderer.h" | ||
#include <pulse/error.h> | ||
#include <pulse/simple.h> | ||
|
||
#include "eas_chorus.h" | ||
#include "eas_reverb.h" | ||
#include "filewrapper.h" | ||
#include "synthrenderer.h" | ||
|
||
using namespace drumstick::ALSA; | ||
|
||
|
@@ -122,7 +125,9 @@ SynthRenderer::initEAS() | |
m_sampleRate = easConfig->sampleRate; | ||
m_bufferSize = easConfig->mixBufferSize; | ||
m_channels = easConfig->numChannels; | ||
qDebug() << Q_FUNC_INFO << "EAS bufferSize=" << m_bufferSize << " sampleRate=" << m_sampleRate << " channels=" << m_channels; | ||
m_libVersion = easConfig->libVersion; | ||
qDebug() << Q_FUNC_INFO << "Sonivox library:" << libVersion() << "bufferSize:" << m_bufferSize | ||
<< "sampleRate:" << m_sampleRate << "channels:" << m_channels; | ||
} | ||
|
||
void | ||
|
@@ -197,6 +202,17 @@ void SynthRenderer::uninitPulse() | |
pa_simple_free(m_pulseHandle); | ||
} | ||
|
||
QString SynthRenderer::libVersion() const | ||
{ | ||
quint8 v1, v2, v3, v4; | ||
v1 = (m_libVersion >> 24) & 0xff; | ||
v2 = (m_libVersion >> 16) & 0xff; | ||
v3 = (m_libVersion >> 8) & 0xff; | ||
v4 = m_libVersion & 0xff; | ||
QVersionNumber vn{v1, v2, v3, v4}; | ||
return vn.toString(); | ||
} | ||
|
||
SynthRenderer::~SynthRenderer() | ||
{ | ||
uninitALSA(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
Sonivox EAS Synthesizer for Qt applications | ||
Copyright (C) 2016-2023, Pedro Lopez-Cabanillas <[email protected]> | ||
Copyright (C) 2016-2024, Pedro Lopez-Cabanillas <[email protected]> | ||
This library is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -51,9 +51,10 @@ class SynthRenderer : public QObject | |
void stopPlayback(); | ||
|
||
void uninitALSA(); | ||
|
||
void uninitPulse(); | ||
|
||
QString libVersion() const; | ||
|
||
private: | ||
void initALSA(); | ||
void initEAS(); | ||
|
@@ -90,6 +91,7 @@ public slots: | |
|
||
/* SONiVOX EAS */ | ||
int m_sampleRate, m_bufferSize, m_channels; | ||
uint m_libVersion; | ||
EAS_DATA_HANDLE m_easData; | ||
EAS_HANDLE m_streamHandle; | ||
EAS_HANDLE m_midiFileHandle; | ||
|
Submodule sonivox
updated
12 files
+2 −0 | .github/workflows/cmake-linux.yml | |
+2 −0 | .github/workflows/cmake-mac.yml | |
+17 −11 | .github/workflows/cmake-win.yml | |
+46 −5 | CMakeLists.txt | |
+35 −10 | README.md | |
+143 −0 | arm-wt-22k/lib_src/wt_200k_G.c | |
+26,667 −0 | arm-wt-22k/lib_src/wt_200k_samples.c | |
+0 −26,699 | arm-wt-22k/lib_src/wt_22khz.c | |
+1,339 −0 | arm-wt-22k/lib_src/wt_44khz.c | |
+6 −17 | example/CMakeLists.txt | |
+1 −1 | example/sonivoxrender.c | |
+14 −7 | test/SonivoxTest.cpp |