Skip to content

Commit 03de090

Browse files
committed
fix: Fix CI compile issues
1 parent ce3c9fe commit 03de090

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/audio/pipewire/PipewireAudioService.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ PipewireAudioService::PipewireAudioService()
1616

1717
mgr = std::make_unique<PwPipelineManager>();
1818
appMgr = std::make_unique<PwAppManager>(mgr.get());
19-
plugin = new PwJamesDspPlugin(mgr.get(), this);
19+
plugin = new PwJamesDspPlugin(mgr.get(), AppConfig::instance().get<bool>(AppConfig::BenchmarkOnBoot), this);
2020
effects = std::make_unique<FilterContainer>(mgr.get(), plugin, &AppConfig::instance());
2121

2222
mgr.get()->new_default_sink_name.connect([=](const std::string& name) {

src/audio/pipewire/PwJamesDspPlugin.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#include "PwJamesDspPlugin.h"
22
#include <QString>
33

4-
#include "config/AppConfig.h"
5-
64
extern "C" {
75
#ifdef DEBUG_FPE
86
#include <fenv.h>
@@ -17,7 +15,7 @@ void receivePrintfStdout(const char* msg, void* userdata) {
1715
}
1816
}
1917

20-
PwJamesDspPlugin::PwJamesDspPlugin(PwPipelineManager* pipe_manager, IAudioService* parent_service)
18+
PwJamesDspPlugin::PwJamesDspPlugin(PwPipelineManager* pipe_manager, bool enableBenchmark, IAudioService* parent_service)
2119
: PwPluginBase("@PwJamesDspPlugin: ", "JamesDsp", pipe_manager)
2220
{
2321
setMessageHandler(std::bind(&IAudioService::handleMessage, parent_service, std::placeholders::_1, std::placeholders::_2));
@@ -29,7 +27,7 @@ PwJamesDspPlugin::PwJamesDspPlugin(PwPipelineManager* pipe_manager, IAudioServic
2927
#ifdef DEBUG_FPE
3028
feenableexcept(FE_ALL_EXCEPT & ~FE_INEXACT & ~FE_INVALID);
3129
#endif
32-
JamesDSPGlobalMemoryAllocation((int)AppConfig::instance().get<bool>(AppConfig::BenchmarkOnBoot));
30+
JamesDSPGlobalMemoryAllocation((int)enableBenchmark);
3331
JamesDSPInit(this->dsp, 128, 48000);
3432
#ifdef DEBUG_FPE
3533
fedisableexcept(FE_ALL_EXCEPT & ~FE_INEXACT & ~FE_INVALID);

src/audio/pipewire/PwJamesDspPlugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extern "C" {
1111

1212
class PwJamesDspPlugin : public PwPluginBase, public IDspElement {
1313
public:
14-
PwJamesDspPlugin(PwPipelineManager* pipe_manager, IAudioService* parent_service);
14+
PwJamesDspPlugin(PwPipelineManager* pipe_manager, bool enableBenchmark, IAudioService* parent_service);
1515
PwJamesDspPlugin(const PwJamesDspPlugin&) = delete;
1616
auto operator=(const PwJamesDspPlugin&) -> PwJamesDspPlugin& = delete;
1717
PwJamesDspPlugin(const PwJamesDspPlugin&&) = delete;

0 commit comments

Comments
 (0)