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

Modifying in-call voice playback in Android custom ROM

I would like to modify Android OS (official image from AOSP) to add preprocessing to a normal phone call playback sound. I've already achieved this filtering for app audio playback (by modifying HAL and audioflinger). I'm OK with targeting only a…
SirKnigget
  • 3,614
  • 2
  • 28
  • 61
49
votes
1 answer

Capturing sound from Wine with TargetDataLine

I have written a small Java application for testing purposes that captures sound from a mixer on ubuntu 12.04. The code works fine, I can capture sound from all applications except for anything running under Wine. Whenever I start my program, after…
Dominik Hensler
  • 635
  • 4
  • 9
48
votes
8 answers

PyAudio working, but spits out error messages each time

I'm using PyAudio to record input from the microphone. Since the audio is recording fine for me, should I try to simply suppress its error messages? Or would there be a way of resolving them? ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM…
eoinoc
  • 3,155
  • 3
  • 24
  • 39
42
votes
6 answers

run apps using audio in a docker container

This question is inspired by Can you run GUI apps in a docker container?. The basic idea is to run apps with audio and ui (vlc, firefox, skype, ...) I was searching for docker containers using pulseaudio but all containers I found where using…
A. Binzxxxxxx
  • 2,812
  • 1
  • 21
  • 33
40
votes
5 answers

Tutorials for OpenSL ES for Android

I've been trying to look into using the OpenSL ES library that is available for doing native audio with android 2.3, but it appears that the header files and the 600 page pdf of the spec are the only available documentation. Where should I be…
mjr
  • 1,963
  • 4
  • 20
  • 21
39
votes
1 answer

Android > 4.0 : Ideas how to record/capture internal audio (e.g. STREAM_MUSIC)?

Some months ago, with Android ICS (4.0), I developed an android kernel module which intercepted the "pcmC0D0p"-module to fetch all system audio. My target is to stream ALL audio (or at least the played music) to a remote speaker via AirPlay. The…
Martin L.
  • 3,006
  • 6
  • 36
  • 60
36
votes
1 answer

How to play sound in a Docker container on Mac OS Yosemite

I'm trying to dockerize a text to speech application for sharing the code with other developers, however the issue I am having right now is the docker container cannot find the sound card on my host machine. When I try to play a wav file in my…
Anoop
  • 5,540
  • 7
  • 35
  • 52
35
votes
1 answer

Call recording - make it work on Nexus 5X (rooting or custom ROM possible)

I'm attempting to use AudioRecord with AudioSource.VOICE_DOWNLINK on Nexus 5X, Android 7.1 (my own build from AOSP). I'm already past the permissions stage - moved my APK to privileged apps, made an adjustment to AudioRecord in Android source to…
33
votes
1 answer

Set ALSA master volume from C code

I've been looking for a simple C code example to set the master volume of the ALSA mixer but could not find anything simple for this supposedly common operation. I'm totally unfamiliar with ALSA, so making my own minimal example will take time. I…
trenki
  • 7,133
  • 7
  • 49
  • 61
33
votes
4 answers

Android OpenAL?

Has anyone built OpenAL for the Android, or found the shared library for it on the system? This seems like an obvious need for a game of any kind, yet there's no resources out there for it. It seems the Android java sound library can't do pitch…
Kalen
  • 3,106
  • 8
  • 29
  • 42
29
votes
2 answers

The meaning of period in ALSA

I'm using ALSA for and audio application on Linux, I found great docs explain how to use it : 1 and this one. although I have some issues to understand this part of the setup : /* Set number of periods. Periods used to be called fragments. */…
Engine
  • 5,360
  • 18
  • 84
  • 162
26
votes
3 answers

How to pipe /dev/urandom to linux sound output?

This doesn't seem to work at all: cat /dev/urandom > /dev/dsp #from wikipedia.org Is it because of pulseaudio? or I need to do some settings?
c2h2
  • 11,911
  • 13
  • 48
  • 60
26
votes
2 answers

Linux pipe audio file to microphone input

I'm looking for a way to feed audio data from a file into the microphone so when 3rd party applications (such as arecord or Chromium's "search by voice" feature) use the microphone for audio input, they receive the audio data from the file…
cheerupcharlie
  • 580
  • 1
  • 5
  • 12
25
votes
6 answers

How to programmatically change volume in Ubuntu

How do you programmatically change volume in Gnome on Ubuntu, either from the command line or an API (Python preferrably)? The only answers I found to similar questions use amixer, which seems to have no effect on Ubuntu 12.04. Running: amixer set…
Cerin
  • 60,957
  • 96
  • 316
  • 522
21
votes
2 answers

Makefile conditional include

I'm trying to write an application that needs either ALSA or OSS headers. Basically, I want to pass a define to the compiler if /etc/oss.conf does not exist, since that probably means the soundcard.h header doesn't exist (feel free to correct me on…
dav
  • 1,211
  • 1
  • 13
  • 19
1
2 3
71 72