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

java sound on linux: how to capture from TargetDataLine quickly enough to keep up?

I'm using the Java sound API and Java 1.7. I am having difficulty reading from a TargetDataLine quickly enough to keep up with what is being recorded when I run my application on Linux (java version "1.7.0_51", Java(TM) SE Runtime Environment…
6
votes
4 answers

How to use ALSA's snd_pcm_writei()?

Can someone explain how snd_pcm_writei snd_pcm_sframes_t snd_pcm_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size) works? I have used it like so: for (int i = 0; i < 1; i++) { f =…
Louise
  • 6,193
  • 13
  • 36
  • 36
6
votes
1 answer

what is the difference between ALSA threshold, avail_min and period?

I am working on an ALSA capture routine on a quad core debian box and I am baffled. Basic ALSA capture, hw:0 interface, 16 bits, 44.1 KHz, using a blocking thread with poll(), controlled by snd_pcm_start() and snd_pcm_drop(). I check the return…
Andres Gonzalez
  • 2,129
  • 5
  • 29
  • 43
6
votes
2 answers

ChucK Audio Input/Output Error in Ubuntu

I installed ChucK in my Ubuntu 12.0.4 VirtualBox. When I started the miniAudicle Virtual Machine, I got a pop up error message "The Virtual Machine appears to be hanging.......Abort the current shred? Cancel or Abort button" I seem can not click…
hangee
  • 719
  • 2
  • 9
  • 12
6
votes
4 answers

How to find out ALSA audio device capabilities programmatically in Linux without opening the device

How do I find out the capabilities of ALSA devices without opening the device first? Problem is, I need to supply the parameters to the snd_pcm_open() function to use the test functions which to me is silly. Why ask whether this is a playback or…
Makis
  • 12,468
  • 10
  • 62
  • 71
6
votes
1 answer

ALSA: Relation between period size of speaker and mic

I have audio conferencing device which has a mic and speaker. Both mic and speaker having same sampling rate set by snd_pcm_hw_params_set_rate_near() say 8000 Hz. Do I need to set period size and number of periods to be same for both (for two such…
Lunar Mushrooms
  • 8,358
  • 18
  • 66
  • 88
6
votes
1 answer

Inject uplink audio in call with Snapdragon MSM8960 SoC

I've been investigating on this topic specific to MSM8960 for some time. I looked into the ALSA hardware module from google. Michael's answer in the post did mention that MSM8960 supported the in-call uplink audio injection at "Hardware and Device…
Simon Weng
  • 151
  • 1
  • 7
6
votes
1 answer

Pulseaudio to output RTP to internet

I want pulseaudio (remote instance) to push audio sent to the primary alsa device straight to RTP over the internet so that I could listen to it on VLC on my home computer. in my /etc/pulse/default.pa load-module module-rtp-send…
Justin
  • 367
  • 1
  • 5
  • 15
6
votes
5 answers

ALSA Api: How to play two wave files simultaneously?

What is the required API configuration/call for playing two independent wavefiles overlapped ? I tried to do so , I am getting resource busy error. Some pointers to solve the problem will be very helpful. Following is the error message from…
Lunar Mushrooms
  • 8,358
  • 18
  • 66
  • 88
6
votes
4 answers

No Audio in Android-x86

I've setup an Android-x86 image (4.0-RC1-eeepc) in VirtualBox on a Dell Latitude D820. This particular ISO is not for the laptop, but of all available ISOs it works the best. I have worked through some of the troubles I have come across (by not…
CatShoes
  • 3,613
  • 5
  • 29
  • 43
6
votes
1 answer

Android: How to configure "tinymix" to record system audio with "tinycap"

in Android it's currently impossible to record system-audio with the Android-SDK. Therefore I played around a bit with TinyALSA (since Android 4) and hope I can reroute the audio-out so I can record it. When I call "tinymix" on my device I get…
Martin L.
  • 3,006
  • 6
  • 36
  • 60
6
votes
2 answers

Recording sound using ALSA from Line IN

I've developed a small application that records sound using ALSA driver on an embedded system. Now I have a problem selecting the device that I want to record from MIC/Line IN . The application is set to start at system start up but my default…
Gabriel
  • 1,435
  • 3
  • 17
  • 24
5
votes
3 answers

Why does aplay work when pulseaudio is running and else not?

I have a ubuntu install with pulseaudio default installed. When pulseaudio is running this works: aplay -D hw:2,7 /usr/share/xbmc/sounds/Bursting\ Bubbles/nav.wav But when no pulseaudio daemon is running it doesn't. The command doesn't give an error…
Leon
  • 841
  • 3
  • 10
  • 21
5
votes
1 answer

Error while checking audio capture device

Hello I am trying to check if a Beaglebone AI is getting correctly I2S from a TIDA-1454 so if I try to arecord test.wav I get: debian@beaglebone:/etc$ arecord -d 10 ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave…
Mikel
  • 40
  • 1
  • 9
5
votes
1 answer

How to set Audio Sampling rate higher than 44.1kHz on linux/android platform?

I noticed that android.media.AudioRecord failed to work when using wrong sampleRateInHz REPRODUCE You can also reproduce easily that issue using pcmrecorder on Samsung Nexus S (by Google)…
RzR
  • 3,068
  • 29
  • 26