reVeno/Source/Veno/Core/AudioConfig.h
versustunez d735c1d076 - cleanup vars
- added LICENSE.txt
- added LabelComponent.cpp
- renamed some variables
- moved instance id to processor
2020-06-08 21:27:17 +02:00

39 lines
807 B
C++

//
// Created by versustune on 22.03.20.
//
#ifndef VENO_AUDIOCONFIG_H
#define VENO_AUDIOCONFIG_H
#include "JuceHeader.h"
/**
* holds SampleRate and other needed sound information's :)
*/
class AudioConfig {
private:
static std::shared_ptr<AudioConfig> m_instance;
float m_sampleRate = 44100;
float m_bufferSize = 512; //maybe we need that... but this will update always!
bool m_needToReInit = false; //this is to reInit the Oscillators, ADSR and other stuff
public:
static std::shared_ptr<AudioConfig> getInstance();
float getSampleRate();
void setSampleRate(float _sampleRate);
float getBufferSize();
void setBufferSize(float _bufferSize);
bool isNeedToReInit();
void setNeedToReInit(bool _needToReInit);
protected:
};
#endif //VENO_AUDIOCONFIG_H