mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-03-24 19:25:40 -05:00
29 lines
610 B
C++
Executable File
29 lines
610 B
C++
Executable File
#ifndef __AUDIO_DATA_HPP
|
|
#define __AUDIO_DATA_HPP
|
|
|
|
#include <string>
|
|
|
|
class AudioData {
|
|
public:
|
|
void reset();
|
|
void change_audio_volume(bool is_change_positive);
|
|
void change_audio_mute();
|
|
int get_final_volume();
|
|
bool has_text_to_print();
|
|
std::string text_to_print();
|
|
int get_real_volume();
|
|
bool load_audio_data(std::string key, std::string value);
|
|
std::string save_audio_data();
|
|
|
|
private:
|
|
int volume;
|
|
bool mute;
|
|
bool text_updated;
|
|
void set_audio_volume(int new_volume);
|
|
void set_audio_mute(bool new_mute);
|
|
const std::string volume_str = "volume";
|
|
const std::string mute_str = "mute";
|
|
};
|
|
|
|
#endif
|