alsa

Android: How to configure “tinymix” to record system audio with “tinycap”

醉酒当歌 提交于 2019-12-10 16:51:50
问题 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 following configuration: ctl type num name value 0 ENUM 1 DL1 Equalizer Flat response 1 ENUM 1 DL2 Left Equalizer 450Hz High-pass 2 ENUM 1 DL2 Right Equalizer 450Hz High-pass 3 ENUM 1 Sidetone Equalizer Flat response 4 ENUM 1 AMIC Equalizer High-pass

is it possible to dynamic link to libcsd-client.so to enable in call voice recording on Galaxy S4 I9505

点点圈 提交于 2019-12-09 07:05:07
问题 I9505 runs on APQ8064T and the way how the HAL layer set up the in-call voice recording audio path on the chipset has changed compared to the previous generation MSM8960. Now, in addition to set correct Mixer controls in Kernel, it also requires sending some sort of "magic" commands through libcsd-client.so (Qualcomm proprietary, close source) library to the baseband modem. Google does this for the Nexus 4 (runs APQ8064) at the HAL layer by dlsym the libcsd-client.so (see the csd_start_record

Python RPi ALSA - Use of multiple channels

百般思念 提交于 2019-12-08 19:34:28
I have this piece of a code and I want to work independently with each of the four mic array I use (Ps3 Eye Cam). For example I want to calculate cross-correlation between the mic 1 and the mic 4 excluding 2 and 3. How can I use channels I want? import audioop import alsaaudio inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE,alsaaudio.PCM_NONBLOCK) inp.setchannels(1) inp.setrate(8000) inp.setformat(alsaaudio.PCM_FORMAT_S16_LE) inp.setperiodsize(1000) Thanks 来源: https://stackoverflow.com/questions/42027487/python-rpi-alsa-use-of-multiple-channels

error -19,0 from using Mediaplayer?

穿精又带淫゛_ 提交于 2019-12-08 14:19:29
E/MediaPlayer(20473): error (-19, 0) I/MyApp (20473): Decoding lala.mp3 I/StagefrightPlayer( 68): setDataSource('mypath') E/AudioFlinger( 68): no more track names available E/AudioTrack( 68): AudioFlinger could not create track, status: -12 E/AudioSink( 68): Unable to create audio track Does any1 know why i'm getting this? This usually happens after playing about 100+ of so audio files using mediaPLayer. I'm playing it like this public RenderResultFormat DoIt() { if(mp!=null){ mp.release(); mp = null; } AudioRenderer mr = new AudioRenderer(); mp = mr.AudioRenderer(filePath);} private class

error -19,0 from using Mediaplayer?

删除回忆录丶 提交于 2019-12-08 07:35:13
问题 E/MediaPlayer(20473): error (-19, 0) I/MyApp (20473): Decoding lala.mp3 I/StagefrightPlayer( 68): setDataSource('mypath') E/AudioFlinger( 68): no more track names available E/AudioTrack( 68): AudioFlinger could not create track, status: -12 E/AudioSink( 68): Unable to create audio track Does any1 know why i'm getting this? This usually happens after playing about 100+ of so audio files using mediaPLayer. I'm playing it like this public RenderResultFormat DoIt() { if(mp!=null){ mp.release();

Portaudio and ALSA: “Cannot obtain info for CTL elem”

Deadly 提交于 2019-12-08 07:12:51
问题 I am trying to use Portaudio. For a start, I'd like to run the tests programs included with the distribution. After I copied the header portaudio.h and libportaudio.a to the test directory, I managed to compile successfully patest_sine8.c with: $ g++ -o test1 patest_sine8.c -lrt -lm -lpthread -lasound libportaudio.a When I run the program the output is the following: PortAudio Test: output signed 8 bit sine wave. ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'AC97 2ch

alsa-util 1.1.0 arm cross compile issue

╄→гoц情女王★ 提交于 2019-12-08 03:51:35
问题 I am trying to build alsa-util-1.1.0 for an arm-linux platform, through trial and error I managed to compile alsa-lib and alsa-util ok using these commands: alsa-lib: CC=arm-linux-gnueabihf-gcc ./configure --host=arm-linux -prefix=/home/username/20160311_alsa_work/alsa/install --disable-python alsa-util: CC=arm-linux-gnueabihf-gcc ./configure --prefix=/home/username/20160311_alsa_work/alsa/install --host=arm-linux --with-alsa-inc-prefix=/home/username/20160311_alsa_work/alsa/install/include -

How to use alsa to play sounds simultaneously in c?

余生颓废 提交于 2019-12-07 21:59:45
问题 I'm using alsa lib in c under linux. I'd like to load several wav files and play them depending on some test conditions. I'm using the following code, but it needs to be improved: // A simple C example to play a mono or stereo, 16-bit 44KHz // WAVE file using ALSA. This goes directly to the first // audio card (ie, its first set of audio out jacks). It // uses the snd_pcm_writei() mode of outputting waveform data, // blocking. // // Compile as so to create "alsawave": // gcc -o alsawave

send midi messages from C++

◇◆丶佛笑我妖孽 提交于 2019-12-07 16:10:28
I'm using a raspberry pi, so it is sort of Debian (Raspbian) I have a synthesizer running (Zynaddsubfx) and I want to send him midi messages from code and have it playing the music for me. I will use ALSA for that. I managed to create a "emitting port" in my program by doing: snd_seq_create_simple_port(seq_handle, "My own sequencer", SND_SEQ_PORT_CAP_READ|SND_SEQ_PORT_CAP_SUBS_READ, SND_SEQ_PORT_TYPE_APPLICATION) now I can see ZynSubAddFX in aconnect -ol and my own sequencer in aconnect -il . And I'm able to connect them: pi@cacharro:~/projects/tests$ aconnect 129:0 128:0 pi@cacharro:~

Multiple files created by arecord

对着背影说爱祢 提交于 2019-12-07 02:32:46
问题 I've made custom distribution using buildroot, with hard-flow for ARMv7 processor. Everything is working except.... # arecord -D hw:0,0 -fdat -d 5 test.wav This makes multiple files. Thousands of them. -rw-r--r-- 1 root root 958508 Jan 1 00:19 test-01.wav -rw-r--r-- 1 root root 44 Jan 1 00:19 test-02.wav -rw-r--r-- 1 root root 44 Jan 1 00:19 test-03.wav -rw-r--r-- 1 root root 44 Jan 1 00:19 test-04.wav -rw-r--r-- 1 root root 44 Jan 1 00:19 test-05.wav -rw-r--r-- 1 root root 44 Jan 1 00:19