scottlawsonbc / audio-reactive-led-strip

:musical_note: :rainbow: Real-time LED strip music visualization using Python and the ESP8266 or Raspberry Pi
MIT License
2.67k stars 643 forks source link

Unable to use virtual audio #124

Open arunpatro opened 6 years ago

arunpatro commented 6 years ago

I am able to visualize the audio and its beats with MIC_RATE = 44100 FPS = 30 N_FFT_BINS = 24

However, when I use Loopback as a virtual audio, with the same parameters, the visualization always throws buffer overflow errors. How do I obtain the appropriate MIC_RATE for it?

d-rez commented 6 years ago

Check your current output device's sample rate. You can find it in Sound => Playback devices => (device) => Advanced

Mine is 48000 I believe. But I don't recall, I think I added a change that auto-reads the sampling rate from Windows

uzairali001 commented 6 years ago

I'm unable to use Virtual audio. I've enable Stereo Mix set MIC_RATE to 48000 but visualization.py graphs show garbage and doesn't match the audio signals at all