shichao-an / soundmeter

Simple real-time sound meter
https://soundmeter.shichao.io
BSD 2-Clause "Simplified" License
82 stars 27 forks source link

Complains about jack server not running on Raspbian #10

Open scelfo opened 8 years ago

scelfo commented 8 years ago

I tried using soundmeter today on a Raspberry Pi running Raspbian. It's a Debian like distribution and installation worked without any problems by following the normal Debian/Ubuntu installation instructions. The soundmeter functionality I expect seems to work fine. However, it always complains about jack server not running. Specifically, here's an example:

$ soundmeter --collect --seconds 10
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Collecting RMS values...
        19  Timeout
Collected result:
    min:         18
    max:         27
    avg:         19

I can make that warning go away if I run jackd with the dummy driver:

terminal1$ jackd -d dummy
jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"

terminal2$ soundmeter --collect --seconds 10
Collecting RMS values...
        17  Timeout
Collected result:
    min:         16
    max:         20
    avg:         17

I'm filing this issue because I'm not sure what the implications are of running an instance of jackd with the dummy driver. Since it seems like soundmeter doesn't actually need a jack server to function, is it possible to add a fix somewhere in soundmeter itself?

shichao-an commented 8 years ago

Hi, I did a search and found that it seems more of a pyaudio/portaudio issue:

So soundmeter doesn't need a jackd process running, so you can ignore that message.