[sndtools] sndpeek build fails on linux

Tristan Matthews le.businessman at gmail.com
Wed Mar 4 15:43:25 EST 2015


On Wed, Mar 4, 2015 at 3:08 PM, Orm Finnendahl
<orm.finnendahl at selma.hfmdk-frankfurt.de> wrote:
> Am Mittwoch, den 04. März 2015 um 13:59:48 Uhr (-0500) schrieb Tristan Matthews:
>>
>> Ah, you need to add -D__UNIX_JACK__ (in addition to the already
>> present -D__LINUX_JACK__) to CFLAGS in makefile.jack, this is because
>> Stk and RtAudio use different defines for Jack support.
>
> Hi thanks so much, compiles and works now! There's only one drawback
> here: It only runs with a jack samplerate of 48000. Having started
> jack with a samplerate of 44100, the program starts up but quits
> immediately with:
>
> ...
> [sndpeek]: opening input device: 0 output device: 0...
> [sndpeek](via RtAudio): RtApiJack::probeDeviceOpen: the requested sample rate (48000) is different than the JACK server rate (44100).
> [sndpeek]: ERROR: cannot open audio device for capture/playback...
>
> Is there a way to specify the samplerate on the commandline or
> override the request somewhere?

Ah yes, I've hacked around this in my own project by catching the
exception and changing the samplerate accordingly:
http://sourceforge.net/p/polygnome/code/ci/master/tree/src/MTAudio.cpp#l103

Ugly but functional.

Best,
Tristan


More information about the sndtools mailing list