Questions tagged [libasound]

This package contains the ALSA library and its standard plugins, as well as the required configuration files.

This package contains the ALSA library and its standard plugins, as well as the required configuration files.

25 questions
0
votes
0 answers

Cannot lock down 82287136 byte memory area (Cannot allocate memory) / An error ocurred : module 'speech_recognition' has no attribute 'recognize'

I found the python script below that should be able to give a realistic humanoid voice to chat gpt,converting the text produced by it into a humanoid voice and using my voice with a mic to talk with it. In short terms I want to do the same thing…
0
votes
1 answer

ALSA get a simple mixer element (snd_mixer_elem_t using) from a control event (snd_ctl_event_t)

I have a sound card's control open and am polling on ALSA control events. The event is pulled from the event stream using the gtkIOStream ALSA::Control class like so : snd_ctl_event_t *event; snd_ctl_event_alloca(&event); int err = snd_ctl_read(ctl,…
Matt
  • 509
  • 2
  • 14
0
votes
1 answer

ALSA Kernel API is different from the asoundlib API?

I was reading about how to play audio from the linux kernel when I came across the ALSA (advanced linux sound architecture) and its api here in these kernel docs: https://www.kernel.org/doc/html/latest/sound/kernel-api/alsa-driver-api.html. However…
nick2225
  • 527
  • 5
  • 17
0
votes
0 answers

Separate audio streams from ALSA driver

I am using a USB sound card with 16 microphones on my Raspberry Pi (the device is the UMA 16). Currently, I am collecting all 16 channels data and using up to 8 of them by separating their contents programmatically for an application that needs real…
0
votes
0 answers

what is the meaning of "type loop" in the asoundrc file?

I am new to ALSA and its userspace configuration. I saw one pcm device in my asoundrc like below pcm.myalsadev{ type loop device 0 ipc_perm 0660 ipc_gid audio subdevice 0 rate 16000 channels 1 format S16_LE } What is…
zappy
  • 1,864
  • 3
  • 18
  • 36
0
votes
0 answers

How to start playback in Alsa with memory mapped IO?

When I call snd_pcm_start getting EPIPE error. Expected because there’s no data, I’m supposed to fill initial samples first. When I call snd_pcm_status_dump, I’m getting following file written: state : PREPARED trigger_time: 0.000000 tstamp …
Soonts
  • 20,079
  • 9
  • 57
  • 130
0
votes
0 answers

Confusing error from libasound function snd_pcm_hw_params

My question has to do with the libasound function named "snd_pcm_hw_params" in connection with code to play a sound file. I am new to ALSA programming. Using a coding example I found on the internet, I wrote a small program to play a 7 second .wav…
0
votes
1 answer

C: Why won't the global variables in my library update? (Using ALSA Lib)

Preface: I have looked at the other answers, and I believe this is a different type of issue. It's probably pointer related, but none of the other answers helped. I also may just be missing something. I managed to make a working program which…
Ella Jameson
  • 408
  • 3
  • 8
0
votes
1 answer

ALSA - Retrieving audio buffer timestamps

I have a simple C program that plays audio using the ALSA APIs and I wish to know the precise timing of the audio buffers. I am attempting to retrieve the timestamps from the audio driver using ALSA's snd_pcm_htimestamp functionality, which returns…
Andy Barnard
  • 696
  • 1
  • 5
  • 15
0
votes
1 answer

I downloaded libasound2-dev, but I can't find source file

I'm using Linux OS (Ubuntu) and I need some recording file from mic. I typed sudo apt-get install libasound2-dev. Then, I can find header file in /usr/include/alsa , but I can't find c file. I think this is the problem of "undefined reference to…
1
2