AudioInput.h 577 B

12345678910111213141516
  1. #pragma once
  2. #include <string>
  3. namespace WallpaperEngine::Audio {
  4. /** WE's audioinputdevice, audioinputvolume and audioinputthreshold */
  5. struct AudioInput {
  6. /** a source (microphone, line in, a monitor) by name or description, a sink by name for its monitor; empty or
  7. * "default" is the default sink's monitor */
  8. std::string device = "default";
  9. /** 50 is neutral, the spectrum is scaled by volume * 0.02 */
  10. int volume = 50;
  11. /** packets whose loudest sample stays under threshold * 0.001 count as silence, 0 is off */
  12. float threshold = 0.0f;
  13. };
  14. }