Newer
Older
music / app / src / main / cpp / AudioHost.h
@lukas lukas on 13 Aug 2022 409 bytes add master volume option
#ifndef MUSIC_AUDIO_HOST_H
#define MUSIC_AUDIO_HOST_H

class AudioHost;

#include "SineWave.h"
#include "Instrument.h"
#include <aaudio/AAudio.h>
#include <list>

class AudioHost {
private:
    AAudioStream *stream;
public:
    uint32_t sampleRate = 0;
    double masterVolume = 1.0f;
    std::list<Instrument *> *instruments = new std::list<Instrument *>();
    AudioHost();
};


#endif //MUSIC_AUDIO_HOST_H