Something went wrong. Try again.
Mixxx DJ software with MCP, Subsonic/Navidrome streaming library support — browse and load tracks from your self-hosted music server mixxx.org
subsonic navidrome streaming audio dj mac linux midi
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162#pragma once
#include "audio/signalinfo.h"
namespace mixxx {static constexpr audio::ChannelCount kEngineChannelOutputCount = audio::ChannelCount::stereo();static constexpr audio::ChannelCount kMaxEngineChannelInputCount = audio::ChannelCount::stem();// The following constant is always defined as it used for the waveform data// struct, which must stay consistent, whether the STEM feature is enabled or// not.constexpr int kMaxSupportedStems = 4;#ifdef __STEM__enum class StemChannel { First = 0x1, Second = 0x2, Third = 0x4, Fourth = 0x8,
None = 0, All = First | Second | Third | Fourth};Q_DECLARE_FLAGS(StemChannelSelection, StemChannel);#endif
// Contains the information needed to process a buffer of audioclass EngineParameters final { public: SINT framesPerBuffer() const { return m_framesPerBuffer; } SINT samplesPerBuffer() const { return m_outputSignal.frames2samples(framesPerBuffer()); }
audio::ChannelCount channelCount() const { return m_outputSignal.getChannelCount(); }
audio::SampleRate sampleRate() const { return m_outputSignal.getSampleRate(); }
explicit EngineParameters( audio::SampleRate sampleRate, SINT framesPerBuffer) : m_outputSignal( kEngineChannelOutputCount, sampleRate), m_framesPerBuffer(framesPerBuffer) { DEBUG_ASSERT(framesPerBuffer > 0); DEBUG_ASSERT(sampleRate > 0); }
private: const audio::SignalInfo m_outputSignal; const SINT m_framesPerBuffer;};}