[Portaudio] Missing port audio callbacks

Matti Sillanpää maash.1.bridge at gmail.com
Thu Aug 17 04:50:02 EDT 2017


Hi Stefan!

Here you go.

Could this be my asoundrc?

pcm.monocard {
             type plug
             slave.pcm "plughw:1,0"
             slave.channels  2
             slave.rate 16000
}

ctl.monocard {
             type hw
             card 1
             device 0
}

pcm.!default {
             type asym
             playback.pcm {
             type hw
             card 0
             }
             capture.pcm {
             type plug
             slave.pcm "monocard"
             }
}

ctl.!default {
             type hw
             card 0
}


-Matti

2017-08-17 11:05 GMT+03:00 Stefan Hajnoczi <stefanha at gmail.com>:

> On Wed, Aug 16, 2017 at 4:42 PM, Matti Sillanpää
> <maash.1.bridge at gmail.com> wrote:
> > Sorry this is wrong forum, however I didn’t want to make an error right
> away, as I suspect that the problem is my configuration.
> >
> > Environment is rPI 3 and Jessie. I’m using I2S microphone that outputs
> 16 bit 16khz mono. I can record from default device like (arecord -d 10 -f
> S16_LE -r 16000 test.wav). No problems there. Also rec test.wav works fine.
> >
> > I got the latest port audio sources from the website and compiled the
> successfully. The playback works fine, however the recording doesn’t work.
> I don’t get any errors, but no recording callbacks arrive. This is problem
> both with my own code and the paex_record.c (both stock and one modified to
> 16bit&16khz mono).
> >
> > Is this clear configuration issue or bug?
>
> Please post the output of strace -f ./paex_record ....
>
> That way we can see the system calls being made, probably by the ALSA
> backend.
>
> Stefan
> _______________________________________________
> Portaudio mailing list
> Portaudio at lists.columbia.edu
> https://lists.columbia.edu/mailman/listinfo/portaudio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.columbia.edu/pipermail/portaudio/attachments/20170817/58f43e7a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trace.txt.tar.xz
Type: application/x-xz
Size: 6668 bytes
Desc: not available
URL: <https://lists.columbia.edu/pipermail/portaudio/attachments/20170817/58f43e7a/attachment.xz>


More information about the Portaudio mailing list