alsa
Tutorials for OpenSL ES for Android
There’s an example app that comes with the NDK called NativeAudio. It has examples of nearly anything you would ever want to implement: effects, streaming, synthesis, etc. If you look at its code, you’ll get a good head start.
run apps using audio in a docker container
it took me some time until i found out what is needed. (Ubuntu) we start with the docker run command docker run -ti –rm myContainer sh -c “echo run something” ALSA: we need /dev/snd and some hardware access as it looks like. when we put this together we have docker run -ti –rm \ -v … Read more
PyAudio working, but spits out error messages each time
You can try to clean up your ALSA configuration, for example, ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side are caused by /usr/share/alsa/alsa.conf: pcm.rear cards.pcm.rear pcm.center_lfe cards.pcm.center_lfe pcm.side cards.pcm.side Once you comment out these lines, those error message will be gone. You may also want … Read more
Capturing sound from Wine with TargetDataLine
Make use of AudioSystem.write() method. It is much easier targetDataLine.open(format); targetDataLine.start(); AudioInputStream ais=new AudioInputStream(targetDataLine); AudioFileFormat.Type fileformat=AudioFileFormat.Type.WAVE; /* Other Audio file formats supported: AudioFileFormat.Type.AU AudioFileFormat.Type.AIFF AudioFileFormat.Type.AIFC AudioFileFormat.Type.SND */ File audoutputfile=new File(‘myfile’); //adjust extension according to AudioFileFormat AudioSystem.write(ais,fileformat, audoutputfile);
Modifying in-call voice playback in Android custom ROM
There are several possible issues that come to my mind. The blank buffer might indicate that you have the wrong source selected. Also since according to https://developer.android.com/reference/android/media/AudioRecord.html#AudioRecord(int,%20int,%20int,%20int,%20int) you might not always get an exception even if something’s wrong with the configuration, you might want to confirm whether your object has been initialized properly. If all … Read more