Category : alsa

I am new to alsa, pulseAudio, needed help with this issue. This is the truncated output of pacmd command on my system pacmd list-sources: name: <alsa_input.pci-0000_00_1f.3.analog-stereo> properties: alsa.resolution_bits = "16" device.profile.name = "analog-stereo" device.profile.description = "Analog Stereo" device.description = "Built-in Audio Analog Stereo" module-udev-detect.discovered = "1" device.icon_name = "audio-card-pci" I want to fetch the field: ..

Read more

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 time audio input, according to a configuration file which ..

Read more

I have a buffer of length 1024 coming over the network filled with single channel audio data at 48000Hz in S32LE format. I’m able to play this back using SDL2 however I need change this to use the ALSA API. I’ve followed countless tutorials but all I’m getting is static. This is the setup code ..

Read more

I am trying to make a call using PJSUA2, play a wav file to the callee, and callee should record this file to wav. I created two programs for that (caller and callee). And when caller starts playing wav file into AudioMedia object, console of callee program just spams out "alsa.c pb_thread_func: underrun!" and nothing ..

Read more

Depending on what I do I either get "No such audio device" if I leave determining my audio device up to SDL2 or I get Failed loading libasound.a: /home/aypahyo/.conan/data/libalsa/1.2.4///package/d48130e0dd76369b1338deb3b2372c5a649f9f2d/lib/libasound.a: invalid ELF header when I set SDL_AUDIODRIVER=alsa. (The error message is actually cut off, I added an r at the end). Here is an implementation that ..

Read more

I’m trying to record microphone with alsa api on linux, but result is strange sounds like freezed glitchy robot. Recorded pcm data sended by UDP protocol to pcm player endpoint. char* device = "default"; unsigned int rate = 44100; unsigned int channels = 2; snd_pcm_uframes_t frames{}; snd_pcm_t* capture_handle{}; snd_pcm_hw_params_t* hw_params{}; if (snd_pcm_open(&capture_handle, device, SND_PCM_STREAM_CAPTURE, 0) ..

Read more