Comment 5 for bug 1315769

Revision history for this message
John Nogatch (jnogatch) wrote :

> > Error in Soundin
> > Failed to start audio stream
> >
> > Error in Soundin
> > PortAudio says requested soundcard format not supported

Are you starting wsjtx from a terminal window? Are you observing the
"...SetApproximateSampleRate..." message?

 wsjtx tries to open the sound input device with sampleRate=48000. If
the device does not support that rate, then error messages are
produced. For example, if I try to use device hw:1,0 directly, then I
see these messages in the terminal window:

 Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
'src/hostapi/alsa/pa_linux_alsa.c', line: 1968
 Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture,
inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in
'src/h
 ostapi/alsa/pa_linux_alsa.c', line: 2643
 Expression 'PaAlsaStream_Configure( stream, inputParameters,
outputParameters, sampleRate, framesPerBuffer, &inputLatency,
&outputLatency, &ho
 stBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2767

  I was able to make this device work by creating ~/.asoundrc with
this entry in it, and then telling wsjtx to use device "p148k":
  pcm.p148k {
      type plug
      slave {
           pcm "hw:1,0"
           format S16_LE
           channels 1
           rate 48000
       }
  }

Note that the entry is specific for audio device "hw:1,0". It creates
a new virtual audio device, based on hw:1,0 but supporting the desired
sample rate. You can see the id number of all audio devices by running
alsamixer and hitting function key F6. Use the hw number for your
particular device.

I hope that this helps you.

-John AC6SL