shady-audio is the audio backend for the other shady tools.
Its interface let's you easily fetch the frequency presence of the given audio source
by selecting an audio source which implemented the Fetcher trait.
Example
use NonZeroUsize;
use ;
let mut audio = ;
// just retrieve the bars.
// ShadyAudio takes care of the rest:
// - fetching new samples from the fetcher
// - normalize the values within the range [0, 1]
// - etc.
assert_eq!;
// change the amount of bars you'd like to have
audio.set_bars;
assert_eq!;