Skip to content

Missing error messages #249

@Binozo

Description

@Binozo

Hello 👋,

I am currently having some difficulties to use the tinyalsa api and it's utilities (tinycap) to record audio.

I have the following device:

biscuit_puffin:/ # tinypcminfo -D 0 -d 24
Info for card 0, device 24:

PCM out:
cannot open device '/dev/snd/pcmC0D24p'
Device does not exist.

PCM in:
Access:   0x000008
Format[0]:   00000000
Format[1]:   0x000001
Format Name:   S24_3LE
Subformat:   0x000001
Rate:   min=16000Hz     max=16000Hz
Channels:   min=9           max=9
Sample bits:   min=24          max=24
Period size:   min=256         max=2560
Period count:   min=1           max=10

I tried to access it trough the C api and with the following command: tinycap /data/local/tmp/out.wav -D 0 -d 24 -r 16000 -b 24 -c 9 -p 512 -n 5
but sadly I always get an empty error message like this:

Unable to open PCM device ()
Captured 0 frames

Is this a bug? Why is there no real error message reason? (The "()" are empty and in C an empty char array is returned as error)

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions