ggwave : add "soundMarkerThreshold" parameter

Can be used to control the threshold used for distinguishing odd from even
frequencies in the sound markers.
This commit is contained in:
Georgi Gerganov
2021-02-21 00:13:28 +02:00
parent 6011c0cef2
commit f4fb02d5d4
5 changed files with 14 additions and 5 deletions

View File

@@ -192,6 +192,7 @@ int main(int argc, char ** argv) {
// playback / capture at different sample rates
for (int srInp = GGWave::kBaseSampleRate/3; srInp <= 2*GGWave::kBaseSampleRate; srInp += 1100) {
auto parameters = GGWave::getDefaultParameters();
parameters.soundMarkerThreshold = 1.1f;
std::string payload = "hello123";