mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-06 11:36:59 +03:00
27 lines
488 B
C++
27 lines
488 B
C++
#ifndef CONFIGJSON_H
|
|
#define CONFIGJSON_H
|
|
|
|
#include <memory>
|
|
#include <iostream>
|
|
#include "FileHelper.h"
|
|
#include "protobuf/metadata.pb.h"
|
|
|
|
class ConfigJSON
|
|
{
|
|
private:
|
|
std::shared_ptr<FileHelper> _file;
|
|
std::string _jsonFileName;
|
|
public:
|
|
ConfigJSON(std::string jsonFileName, std::shared_ptr<FileHelper> file);
|
|
bool load();
|
|
bool save();
|
|
|
|
uint16_t volume;
|
|
std::string deviceName;
|
|
AudioFormat format;
|
|
};
|
|
|
|
extern std::shared_ptr<ConfigJSON> configMan;
|
|
|
|
#endif
|