AP_HAL_SITL: Resolve missing-declarations errors

This commit is contained in:
muramura 2023-06-18 21:07:59 +09:00 committed by Peter Barker
parent 078e1e0e89
commit bfa23aa7b0
1 changed files with 7 additions and 1 deletions

View File

@ -29,7 +29,13 @@ struct sTone
double dEndFrequency = 440.0;
double dAmplitude = 1.0;
};
double w(const double dHertz);
double osc(double dHertz, double dTime, eWaveType waveType);
double amplitude(double dTime, sEnvelope env);
bool generate(sf::SoundBuffer* buffer, sEnvelope env, std::vector<sTone> tones, unsigned uMasterVol, unsigned uSampleRate);
bool generate(sf::SoundBuffer* buffer, sEnvelope env, sTone tone, unsigned uMasterVol, unsigned uSampleRate);
////////////////////////////////////////////////////////////
// Converts frequency (Hz) to angular velocity
////////////////////////////////////////////////////////////