5#include <openssl/evp.h>
6#include <openssl/err.h>
31 void Prepare(
int midiNoteForNormalPitch,
float dawSampleRate);
36 int loadSounds(juce::Array<File> audioSampleFiles,
bool getNearest);
69 std::unique_ptr<MemoryBlock>
loadSample(
const juce::File& path,
int sampleCount);
InterpolationType
Definition KrotosAudioBuffer.h:120
Definition KrotosSynthesiserSound.h:19
void newBlockStart() override
Definition KrotosSynthesiserSound.h:42
void clearAndFreeBuffer()
Definition KrotosSynthesiserSound.cpp:115
std::unique_ptr< MemoryBlock > loadSample(const juce::File &path, int sampleCount)
Definition KrotosSynthesiserSound.cpp:45
void canReadSpecificFiles(bool canRead)
Definition KrotosSynthesiserSound.h:46
bool appliesToNote(int midiNoteNumber) override
Definition KrotosSynthesiserSound.cpp:347
KrotosSampleOscillatorSound()
Definition KrotosSynthesiserSound.cpp:9
static constexpr int MAX_NUMBER_SAMPLES
Definition KrotosSynthesiserSound.h:63
static constexpr size_t BUF_SIZE
Definition KrotosSynthesiserSound.h:65
void removeListener(Listener *l)
Definition KrotosSynthesiserSound.h:49
const float DECIBELS_MINUS_0_1
Definition KrotosSynthesiserSound.h:75
SampleEngine * getSampleEngine() override
Definition KrotosSynthesiserSound.h:44
int m_midiRootNote
Definition KrotosSynthesiserSound.h:58
void Prepare(int midiNoteForNormalPitch, float dawSampleRate)
Definition KrotosSynthesiserSound.cpp:39
bool appliesToChannel(int midiChannel) override
Definition KrotosSynthesiserSound.cpp:348
static constexpr int64 MAX_DATA_SIZE
Definition KrotosSynthesiserSound.h:62
void setInterpolationType(KrotosAudioBuffer::InterpolationType interpType)
Definition KrotosSynthesiserSound.cpp:342
String m_specificExtension
Definition KrotosSynthesiserSound.h:73
std::vector< std::array< unsigned char, BUF_SIZE > > m_sampleData
Definition KrotosSynthesiserSound.h:66
ListenerList< Listener > m_listeners
Definition KrotosSynthesiserSound.h:59
int loadSounds(juce::Array< File > audioSampleFiles, bool getNearest)
Definition KrotosSynthesiserSound.cpp:139
double m_sourceSampleRate
Definition KrotosSynthesiserSound.h:57
SampleEngine m_sampleEngine
Definition KrotosSynthesiserSound.h:56
String m_name
Definition KrotosSynthesiserSound.h:55
void addListener(Listener *l)
Definition KrotosSynthesiserSound.h:48
Definition KrotosSynthesiserSound.h:10
virtual SampleEngine * getSampleEngine()
Definition KrotosSynthesiserSound.h:14
virtual void newBlockStart()
Definition KrotosSynthesiserSound.h:13
KrotosSynthesiserSound()
Definition KrotosSynthesiserSound.h:12
Class used to manage access to a resource from multiple users / threads In this version,...
Definition ResourceLock.h:19
Definition SampleEngine.h:84
void newBlockStart()
Definition SampleEngine.h:86
Definition AirAbsorptionFilter.cpp:2
Definition KrotosSynthesiserSound.h:22
virtual void soundChanged(KrotosSampleOscillatorSound *sound)=0
virtual ~Listener()=default