SITL: SIM_Buzzer: hide params if not WITH_SITL_TONEALARM

This commit is contained in:
Iampete1 2022-07-27 20:06:13 +01:00 committed by Andrew Tridgell
parent f1c4797ef4
commit 223b005d29

View File

@ -40,6 +40,8 @@ namespace BuzzerSynth {
using namespace SITL; using namespace SITL;
#ifdef WITH_SITL_TONEALARM
// table of user settable parameters // table of user settable parameters
const AP_Param::GroupInfo Buzzer::var_info[] = { const AP_Param::GroupInfo Buzzer::var_info[] = {
@ -60,8 +62,6 @@ const AP_Param::GroupInfo Buzzer::var_info[] = {
AP_GROUPEND AP_GROUPEND
}; };
#ifdef WITH_SITL_TONEALARM
static sf::SoundBuffer xsoundBuffer; static sf::SoundBuffer xsoundBuffer;
static sf::Sound xdemoSound; static sf::Sound xdemoSound;
@ -126,6 +126,8 @@ void Buzzer::update(const struct sitl_input &input)
using namespace SITL; using namespace SITL;
const AP_Param::GroupInfo Buzzer::var_info[] = { AP_GROUPEND };
Buzzer::Buzzer() { }; Buzzer::Buzzer() { };
void Buzzer::update(const struct sitl_input &input) {} void Buzzer::update(const struct sitl_input &input) {}