Bonjour,
I'm struggling a little bit with getting as precise as possible timestamps with the ALSA sequencer API.
I have a queue used for enabling timestamping of incoming messages, set-up like this:
snd_seq_port_info_t*…
My requirements are:
Reading number of channels in playback interface
Read number of channels in each capture interface
Mapping WAV channels to specific speakers in/outs
When it comes to speakers it could posssibly be achieved by inspeciting…
I am currently writing a Linux Kernel module that will create a virtual Midi device so that a user-space program can send midi signals to any DAW-like software. I found a wonderful function to help me in my task: int register_sound_midi(const struct…
Why does the program below issue errors for snd_pcm_hw_params_set_period_size(), snd_pcm_hw_params_set_buffer_size(), and snd_pcm_hw_params_set_rate()? If I raise the value of SAMPLES to 768 it only issues an error to snd_pcm_hw_params_set_rate().…
I fetch alsa device fd by fd field of struct pollfd structure filled by snd_pcm_poll_descriptors...
But when it comes to "demangle" event comming from epoll_wait, snd_pcm_poll_descriptors_revents
which is no help since only struct pollfd fits to…
I'm now writing a program (c and c++) using alsamixer on ubuntu. But I have a problem that sometimes my alsamixer goes back to mute. I think the reason is the function auto mute of alsamixer. But I do not know what function auto mute of alsamixer is…
I am controlling volume of Speaker using Alsa amixer library on Linux.
The problem I have is that its not controlling volume in a proper scale between [0,100] percentage.This sample code I got from here
Set ALSA master volume from C…
I am doing my own alsa project.
Having changed OS (fresh installation / no upgrade) from
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
4.1.19-v7+ #858 SMP…
In this example code I set up an ALSA client, create a sequencer queue and output port. Then I output a scheduled note on and note off event to this port and wait for a keystroke. At this point I set up midisnoop to read from the port.
When…
My example code uses snd_seq_queue_status_get_tick_time() to check a running queue. But the result is that it always reports a zero tick time.
#include
#include
int queue;
snd_seq_t *seq_handle;
snd_seq_tick_time_t…
Currently I am attempting to get information about an Alsa device by calling the snd_pcm_open function then passing that to snd_pcm_info to get information about the device. I plan specifically to get the channel information from…
I have several issues to compile a C program to stream sound from Intel Edison to devices (iOS and Android).
I made a C program :
I use alsa/asoundlib.h and pthread.h in my program I don't include sys/time.h because ALSA does not allow this.
I use…
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…
here I want different audio streams, simultaneously on two hardware playback devices (hw:0,0 and hw:0,1). Currently I am able to listen on them seperately but if I try playing them concurrently sound stops from hw:0,1 and only plays from hw:0,0…
I am trying to read data from my codec. For reasons in my project I would like to do nonblocking, but every time I read the number of bytes available on my codec it says zero.
The algorithm is pretty simple: wait 1ms then check to see if there…