<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Trying to use ADC~ on Android Studio Emulator - No microphone input signal]]></title><description><![CDATA[<p>Hi all,,</p>
<p>I'm trying to do a simple talk-through using libpd with android studio.</p>
<p>adc~   -&gt;  *~ 0.5   -&gt;   dac~</p>
<p>However, I do not have an android phone, so I'm using an Android Studio emulator (Nexus 4, api 23).<br />
I can't get any input from my laptop microphone (or from my earphones built-in microphone when I try that).<br />
Is there something I'm missing?<br />
I know when using Record_Audio directly in Android studio, you need to add permission.<br />
&lt;uses-permission android:name=&quot;android.permission.RECORD_AUDIO&quot;/&gt;<br />
Is my issue something along these lines?<br />
Or is it a limitation with using emulators?<br />
I've read many questions on forums about it, but not many are recent and there seems to be many conflicting answers also.</p>
<p>All the best</p>
<p>Mark</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10218/trying-to-use-adc-on-android-studio-emulator-no-microphone-input-signal</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Mar 2026 15:16:53 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/10218.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 16 Jul 2016 18:18:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trying to use ADC~ on Android Studio Emulator - No microphone input signal on Sat, 16 Jul 2016 18:18:37 GMT]]></title><description><![CDATA[<p>Hi all,,</p>
<p>I'm trying to do a simple talk-through using libpd with android studio.</p>
<p>adc~   -&gt;  *~ 0.5   -&gt;   dac~</p>
<p>However, I do not have an android phone, so I'm using an Android Studio emulator (Nexus 4, api 23).<br />
I can't get any input from my laptop microphone (or from my earphones built-in microphone when I try that).<br />
Is there something I'm missing?<br />
I know when using Record_Audio directly in Android studio, you need to add permission.<br />
&lt;uses-permission android:name=&quot;android.permission.RECORD_AUDIO&quot;/&gt;<br />
Is my issue something along these lines?<br />
Or is it a limitation with using emulators?<br />
I've read many questions on forums about it, but not many are recent and there seems to be many conflicting answers also.</p>
<p>All the best</p>
<p>Mark</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10218/trying-to-use-adc-on-android-studio-emulator-no-microphone-input-signal</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10218/trying-to-use-adc-on-android-studio-emulator-no-microphone-input-signal</guid><dc:creator><![CDATA[mark.o.s]]></dc:creator><pubDate>Sat, 16 Jul 2016 18:18:37 GMT</pubDate></item><item><title><![CDATA[Reply to Trying to use ADC~ on Android Studio Emulator - No microphone input signal on Sun, 17 Jul 2016 16:35:49 GMT]]></title><description><![CDATA[<p>With help from the contributors on the libpd github page, I found out the cause(s) for the no mic input issue...</p>
<p>Firstly, my targetsdkversion was API 23. As pointed out:<br />
&quot;Requesting permissions in API 23+ is something that needs to be done in the app itself, not in the pd-for-android library.&quot;<br />
So I changed the target sdk version to 22.</p>
<p>Additionally, I had not added permission to my manifest to use the microphone. So adding this line to the Androidmanifest:<br />
&lt;uses-permission android:name=&quot;android.permission.RECORD_AUDIO&quot; /&gt;</p>
<p>Finally, I forgot to change the number of input channels from 0 when changing the source source from a osc~ to adc~. So my initPD method now looks like:<br />
int sampleRate = AudioParameters.suggestSampleRate();<br />
int inpch = AudioParameters.suggestInputChannels();<br />
PdAudio.initAudio(sampleRate, inpch, 2, 8, true);</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10218/trying-to-use-adc-on-android-studio-emulator-no-microphone-input-signal/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10218/trying-to-use-adc-on-android-studio-emulator-no-microphone-input-signal/2</guid><dc:creator><![CDATA[mark.o.s]]></dc:creator><pubDate>Sun, 17 Jul 2016 16:35:49 GMT</pubDate></item></channel></rss>