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
19
votes
1 answer

ALSA Configuration How To Combine MMAP Emulation and Ladspa Plugin in asound.conf

I have a working PCM output with good sounding audio on a Raspberry Pi compute module ( Linux ) using the rpi dac. The 'aplay -l' command output shows the following: >> aplay -l **** List of PLAYBACK Hardware Devices **** card 0: sndrpirpidac…
PhilBot
  • 748
  • 18
  • 85
  • 173
3
votes
0 answers

Pause ALSA pcm handle without snd_pcm_pause()

I am working on an audio player written in C that uses libasound (ALSA) as the audio back-end. I have implemented a callback mechanism that allows the audio player to send audio to ALSA in a timely manner. I configured my pcm_handle to internally…
3
votes
1 answer

PyAudio throws warnings on Raspberry Pi

Since I found no answer for my question, neither in older posts nor in other forums, I want to ask the stackoverflow community for advice. I am using a raspberry pi, version 9 (stretch) with kernel version 4.14.71-v7. It should be the newest image…
EGuy
  • 211
  • 1
  • 3
  • 10
3
votes
1 answer

How to get PCM device path in ALSA?

What is the easiest way in ALSA library to get the file name of the physical playback device from a pcm handle or name? For example for the pcm device hw:0,0 I would like to get the /dev/snd/pcmC0D0p. This is rather simple (just transfer the…
Brain
  • 311
  • 2
  • 12
2
votes
1 answer

Pygame Midi libasound_module_conf_pulse.so error + unable to open slave

I was getting this error when I tried to run my pygame.midi code: ALSA lib conf.c:3558:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so (/usr/lib/alsa-lib/libasound_module_conf_pulse.so:…
Sederfo
  • 177
  • 1
  • 11
2
votes
1 answer

ALSA: snd_pcm_hw_params_free() causing memory error

I'm modifying some existing sound code and noticed that when it finishes writing configuration data to the hardware, the code doesn't call snd_pcm_hw_params_free(). The application, for legacy reasons, open and closes the sound hardware for every…
Chimera
  • 5,884
  • 7
  • 49
  • 81
2
votes
1 answer

ALSA on embedded System - readi - Input/output error and freeze

I'm still facing problems using ALSA capturing on an embedded system. I can open the device now from the library, after using the snddevices script. But the application return error messages Input/output error (EIO) on readi calls after a time of…
Micka
  • 19,585
  • 4
  • 56
  • 74
1
vote
1 answer

ALSA snd_pcm_hw_params_any crashed when run the application from startup script

I downloaded the ALSA sample source codes (https://gist.github.com/ghedo/963382) and test running under putty window, it works. However when put into the startup script (eg. rc.local) with or without "sudo", it crashed. Note: The application only…
runningdog
  • 21
  • 5
1
vote
1 answer

Define a clean and working asound.conf for my embedded device

I am currently using a very complex asound.conf file from a reference design BSP. I would like to define my own asound.conf. My current need on my embedded device : Play mono files only with 44100 Hz rate. In speaker mode I have only one output…
ArthurLambert
  • 749
  • 1
  • 7
  • 30
1
vote
1 answer

Streaming bytes to ALSA playback device

I'm having a lot of trouble writing random bytes to an ALSA playback device using libasound. Eventually, my goal is to be able to route playback stream over the network and have it played on a remote device. The code presented in this question reads…
Guru Prasad
  • 4,053
  • 2
  • 25
  • 43
1
vote
1 answer

Can't play sound in USB sound card with libasound. (C++)

I'm currently learning to develop using alsa API (libasound). I want to send PCM sound to my usb sound card. I run this code : #include #include #include #include "helloPi.h" int main(int argc, char *argv[])…
Max
  • 53
  • 4
1
vote
1 answer

ALSA capture causes high CPU usage

I write a full-duplex ALSA program and run it on a linux-based embedded system. Its sound configurations are: Sample rate: 16Hz Channels: 1 (mono) Format: S16_LE min avail: 160 (frames) For real-time application, I need to capture sound every…
Tobby
  • 11
  • 2
1
vote
0 answers

gcc: cannot find -lasound when crosscompiling

I try to crosscompile this small program to my arm device, but get error: arm-none-linux-gnueabi/bin/ld: cannot find -lasound collect2: error: ld returned 1 exit status Then i found libasound files in my target device and have copied to my folder…
Footniko
  • 2,682
  • 2
  • 27
  • 36
1
vote
1 answer

pcm_plug.c:67: snd_pcm_plug_close: Assertion `plug->gen.slave == plug->req_slave' failed

I'm using ALSA for the first time and am seeing the error: pcm_plug.c:67: snd_pcm_plug_close: Assertion `plug->gen.slave == plug->req_slave' failed. This occurs when I attempt to close the PCM: snd_pcm_close(pcm); What could be causing this…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
0
votes
0 answers

how to change interface of the audio codec chip that snd_pcm_open() opens?

I am currently working on an embedded system that has a multi-interface audio codec chip, WM8281. My yocto-built linux kernel has the ALSA driver suite installed and I have GStreamer installed and working successfully with the WM8281 codec chip. I…
Andres Gonzalez
  • 2,129
  • 5
  • 29
  • 43
1
2