Skip to content

Commit

Permalink
Fix more build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
messmerd committed Nov 7, 2024
1 parent 0dec314 commit 1b3b091
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
4 changes: 2 additions & 2 deletions include/ClapAudioPorts.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace lmms
class ClapAudioBuffer
{
public:
ClapAudioBuffer(std::uint32_t channels, std::uint32_t frames)
ClapAudioBuffer(std::uint32_t channels, fpp_t frames)
: m_channels{channels}
, m_frames{frames}
{
Expand Down Expand Up @@ -99,7 +99,7 @@ class ClapAudioBuffer
}

std::uint32_t m_channels;
std::uint32_t m_frames;
fpp_t m_frames;
float** m_data = nullptr;
};

Expand Down
7 changes: 4 additions & 3 deletions include/ClapExtension.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <string_view>
#include <clap/plugin.h>

#include "lmms_export.h"
#include "NoCopyNoMove.h"

namespace lmms
Expand All @@ -43,7 +44,7 @@ class ClapLog;
namespace detail
{

class ClapExtensionHelper : public NoCopyNoMove
class LMMS_EXPORT ClapExtensionHelper : public NoCopyNoMove
{
public:
ClapExtensionHelper(ClapInstance* instance)
Expand Down Expand Up @@ -109,7 +110,7 @@ class ClapExtensionHelper : public NoCopyNoMove
* Template for extensions with both a host and plugin side
*/
template<class HostExt, class PluginExt = void>
class ClapExtension : public detail::ClapExtensionHelper
class LMMS_EXPORT ClapExtension : public detail::ClapExtensionHelper
{
public:
using detail::ClapExtensionHelper::ClapExtensionHelper;
Expand Down Expand Up @@ -219,7 +220,7 @@ class ClapExtension : public detail::ClapExtensionHelper
* Template for host-only extensions
*/
template<class HostExt>
class ClapExtension<HostExt, void> : public detail::ClapExtensionHelper
class LMMS_EXPORT ClapExtension<HostExt, void> : public detail::ClapExtensionHelper
{
public:
using detail::ClapExtensionHelper::ClapExtensionHelper;
Expand Down
2 changes: 0 additions & 2 deletions plugins/ClapEffect/ClapEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ auto ClapEffect::processImpl(SampleFrame* buf, const fpp_t frames) -> ProcessSta
{
buf[f][0] = dry * buf[f][0] + wet * leftSamples[f][0];
buf[f][1] = dry * buf[f][1] + wet * rightSamples[f][1];
auto left = static_cast<double>(buf[f][0]);
auto right = static_cast<double>(buf[f][1]);
}

return ProcessStatus::ContinueIfNotQuiet;
Expand Down
5 changes: 0 additions & 5 deletions src/core/clap/ClapInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@
#include <QDomElement>
#include <algorithm>
#include <cassert>

#ifdef __MINGW32__
#include <mingw.thread.h>
#else
#include <thread>
#endif

#include "AudioEngine.h"
#include "ClapManager.h"
Expand Down
4 changes: 2 additions & 2 deletions src/core/clap/ClapManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ void ClapManager::loadClapFiles(const UniquePaths& searchPaths)
const auto startTime = std::chrono::steady_clock::now();

// Search `searchPaths` for files (or macOS bundles) with ".clap" extension
int totalClapFiles = 0;
int totalPlugins = 0;
std::size_t totalClapFiles = 0;
std::size_t totalPlugins = 0;
for (const auto& path : searchPaths)
{
for (const auto& entry : std::filesystem::recursive_directory_iterator{path})
Expand Down

0 comments on commit 1b3b091

Please sign in to comment.