Questions tagged [alsa]

ALSA stands for Advanced Linux Sound Architecture and is a kernel component that supports sound in Linux systems.

ALSA stands for Advanced Linux Sound Architecture and is a kernel component that supports sound in Linux systems. In the 2.6 version of the Linux kernel, ALSA replaced OSS (Open Sound System).

According to the project's website, ALSA does the following key features:

  • Efficient support for all types of audio interfaces, from consumer sound cards to professional multichannel audio interfaces.
  • Fully modularized sound drivers.
  • SMP and thread-safe design.
  • User space library (alsa-lib) to simplify application programming and provide higher level functionality.
  • Support for the older Open Sound System (OSS) API, providing binary compatibility for most OSS programs.

Independent ALSA and linux audio support site with info on audio hardware and drivers

1077 questions
21
votes
5 answers

How to detect that the sound is currently playing in Linux?

I use ALSA. I want to prevent PC to suspend while a sound is played. I use this bash code to run a screen locker and a suspend command: # Run a screen locker. #xautolock -time 5 -locker slimlock & # Run suspend #xautolock -time 6 -locker 'systemctl…
mhd
  • 535
  • 1
  • 5
  • 12
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
19
votes
1 answer

Redirecting audio / creating alternate sound paths in Android

Does anyone have experience (using OpenSL ES, ALSA, etc.) with redirecting audio or creating new sound paths in Android? The end goal is to create a virtual microphone to replace the external microphone, where one can play audio files as if they…
jpalm
  • 2,297
  • 1
  • 21
  • 27
18
votes
1 answer

understanding mixer_paths.xml in android

I am currently learning the audio domain of android OS with qualcomm chipsets. I have come across mixer_paths.xml file. I have been trying to understand the convention of writing and modifying the files. But I am not able to find any proper…
pradeepmcp
  • 182
  • 1
  • 9
17
votes
1 answer

How to setup a virtual mic and pipe audio to it from node.js

Summary of what I am trying to achieve: I'm currently doing some work on a Discord bot. I'm trying to join a voice channel, which is the easy part, and then use the combined audio of the speakers in that voice channel as input for a webpage in a web…
Niellles
  • 868
  • 10
  • 27
15
votes
3 answers

ALSA tutorial required

I am New to audio programming.I want to create small application which is capable of playing and gives volume control . I am using alsa-lib. I want to know what is the purpose of switch (ex.Master Playback switch), enum in mixer elements and what…
yuvaeasy
  • 823
  • 2
  • 10
  • 18
15
votes
4 answers

Set volume using php exec and amixer

I wrote a little php script to control the volume of my local machine with alsa:
Markus Kottländer
  • 8,228
  • 4
  • 37
  • 61
15
votes
4 answers

ALSA equivalent to /dev/audio dump?

This will be my poorest question ever... On an old netbook, I installed an even older version of Debian, and toyed around a bit. One of the rather pleasing results was a very basic MP3 player (using libmpg123), integrated for adding background music…
DevSolar
  • 67,862
  • 21
  • 134
  • 209
14
votes
1 answer

Correct usage of thread_queue_size in ffmpeg

I am doing a screencast where I am recording what is going on at my screen together with simultaneous audio comments from an external USB microphone. I am using the following command: ffmpeg -f x11grab -r 25 -s 1280x720 -i :0.0+320,236…
Alf
  • 1,821
  • 3
  • 30
  • 48
14
votes
3 answers

Cannot find alsa/asoundlib.h

While building my Android source code I get this error cannot find alsa/asoundlib.h I have already installed libasound2-dev. asoundlib.h is present in usr/include/alsa/ folder but still the builder is not able to find it. Can anyone tell me that…
Pulkit Gupta
  • 291
  • 1
  • 3
  • 7
14
votes
5 answers

Android AudioRecord - Won't Initialize 2nd time

Hej, im currently trying to get AudioRecord to work. Because I need it in a bigger project. But it seems to mess up a lot. I have been trying alot of things, so I went back to basic when I traced this bug. I am using my Samsung Galaxy S as my…
Anders Metnik
  • 6,096
  • 7
  • 40
  • 79
13
votes
1 answer

How to create sound devices for debian in docker?

I'm using various docker containers which, under the covers are built on Debian sid. These images lack /dev/snd and /dev/snd/seq, which pretty much makes sense since they have no hardware audio card. Several pieces of software I'm using to…
FrobberOfBits
  • 17,634
  • 4
  • 52
  • 86
12
votes
5 answers

Real Time Audio Analysis In Linux

I'm wondering what is the recommended audio library to use? I'm attempting to make a small program that will aid in tuning instruments. (Piano, Guitar, etc.). I've read about ALSA & Marsyas audio libraries. I'm thinking the idea is to sample data…
MAckerman
  • 408
  • 1
  • 6
  • 15
12
votes
4 answers

ALSA: Full duplex C example?

is there an example of a full-duplex ALSA connection in C? I've read that it is supported, but all the introductory examples I saw did either record or play a sound sample, but I'd like to have one handler that can do both for my VoIP-app. Big…
Jens
  • 121
  • 1
  • 1
  • 3
12
votes
1 answer

Simulate Microphone (virtual mic)

I've got a problem where I need to "simulate" microphone output. Data will be coming over the network, decoded into PCM and basically needs to be written into the mic - which then other programs can read/record/whatever. I've been reading up on…
ag_
  • 121
  • 1
  • 3
1
2
3
71 72