Using WaveSurfer in Debian to record using a 384000 Hz 16 bit USB microphone, if I do Right button > Properties, in the window I set Sound > Set sample rate = 384000, Set number of channels = 1, OK and Record button I get "ERROR: Failed setting sample frequency", details are:
Failed setting sample frequency.
Failed setting sample frequency.
while executing
"$s record"
(procedure "record" line 19)
invoked from within
"record .x.s1"
(in namespace inscope "::wsurf" script line 1)
invoked from within
"::namespace inscope ::wsurf {record .x.s1}"
invoked from within
".x.s1.titlebar.{record}button invoke "
invoked from within
".x.s1.titlebar.{record}button instate !disabled { .x.s1.titlebar.{record}button invoke } "
invoked from within
".x.s1.titlebar.{record}button instate pressed { .x.s1.titlebar.{record}button state !pressed; .x.s1.titlebar.{record}button instate !disabled { .x.s1...."
(command bound to event)
But if I set Sound > Set sample rate = 192000, OK and Record button the spectrogram works, and if then I set Sound > Set sample rate = 384000, OK and Record button the spectrogram works without "ERROR: Failed setting sample frequency". In order to check if the sample frequency is correct, I set Spectrogram > Cut spectrogram at = 300000, and spectrogram is correctly cut at 96000 if sample rate = 192000, at 192000 if sample rate = 384000.
Using the most recent version of stable Debian and WaveSurfer, this problem does not appear. You can close the report if you want.
Thank you very much for developing this wonderful tool!