<?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[Android audio parameters.]]></title><description><![CDATA[<p>I'm trying to get a simple patch (just for the sake of learning) to work in Android. So I tried:<br />
int sampleRate= AudioParameters.suggestSampleRate();<br />
PdAudio.initAudio(sampleRate, 0, 2, 8, true);<br />
and I get:<br />
&quot;W/AudioParameters: Initializing audio parameters with null context on Android 4.2 or later.&quot;<br />
I've tried changing the sample rate and I still get the same message. Ideas?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12555/android-audio-parameters</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 09:03:04 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/12555.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Feb 2020 15:41:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Android audio parameters. on Wed, 05 Feb 2020 15:41:30 GMT]]></title><description><![CDATA[<p>I'm trying to get a simple patch (just for the sake of learning) to work in Android. So I tried:<br />
int sampleRate= AudioParameters.suggestSampleRate();<br />
PdAudio.initAudio(sampleRate, 0, 2, 8, true);<br />
and I get:<br />
&quot;W/AudioParameters: Initializing audio parameters with null context on Android 4.2 or later.&quot;<br />
I've tried changing the sample rate and I still get the same message. Ideas?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12555/android-audio-parameters</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12555/android-audio-parameters</guid><dc:creator><![CDATA[MDobleZ]]></dc:creator><pubDate>Wed, 05 Feb 2020 15:41:30 GMT</pubDate></item><item><title><![CDATA[Reply to Android audio parameters. on Wed, 05 Feb 2020 16:05:32 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/mdoblez">@MDobleZ</a> I don't know, but it looks like there is some useful script here......<br />
<a href="https://github.com/tsnobip/MagnetPD/blob/master/libs/pureData/org/puredata/android/io/AudioParameters.java" rel="nofollow">https://github.com/tsnobip/MagnetPD/blob/master/libs/pureData/org/puredata/android/io/AudioParameters.java</a><br />
And in MagnetPD generally.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12555/android-audio-parameters/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12555/android-audio-parameters/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 05 Feb 2020 16:05:32 GMT</pubDate></item><item><title><![CDATA[Reply to Android audio parameters. on Wed, 05 Feb 2020 16:48:44 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> said:</p>
<blockquote>
<p>MagnetPD</p>
</blockquote>
<p>Yeah, I've seen that code, but I haven't found it useful really. I think the problem is the sample rate, but changing it doesn't do anything.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12555/android-audio-parameters/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12555/android-audio-parameters/3</guid><dc:creator><![CDATA[MDobleZ]]></dc:creator><pubDate>Wed, 05 Feb 2020 16:48:44 GMT</pubDate></item><item><title><![CDATA[Reply to Android audio parameters. on Wed, 05 Feb 2020 19:26:06 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/mdoblez">@MDobleZ</a> Ah!.  I understand the sample rate is fixed at 48K but from Nougat onwards you can change it in all of the following files......</p>
<p>a2dp_audio_policy_configurations.xml<br />
audio.policy.conf<br />
audio.policy.configuration.xml<br />
r_submix_audio_policy_configurations.xml<br />
usb_audio_policy_configuration.xml</p>
<p>Normally all files are resampled to 48K..... bit depth?<br />
Will Android resample if only some of those files are set to a different sample rate?<br />
Or will you end up with a total mess?<br />
But some devices still only use the .conf file as was the case before Nougat.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12555/android-audio-parameters/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12555/android-audio-parameters/4</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 05 Feb 2020 19:26:06 GMT</pubDate></item><item><title><![CDATA[Reply to Android audio parameters. on Wed, 05 Feb 2020 19:39:55 GMT]]></title><description><![CDATA[<p>Reading a bit further, I found &quot;couldn't find &quot;<a href="http://libpd.so" rel="nofollow">libpd.so</a>&quot;&quot; in the list.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12555/android-audio-parameters/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12555/android-audio-parameters/5</guid><dc:creator><![CDATA[MDobleZ]]></dc:creator><pubDate>Wed, 05 Feb 2020 19:39:55 GMT</pubDate></item><item><title><![CDATA[Reply to Android audio parameters. on Fri, 07 Feb 2020 13:48:30 GMT]]></title><description><![CDATA[<p>I've solved it by adding:</p>
<p>ndk {<br />
abiFilters &quot;armeabi&quot;<br />
}<br />
to my build.gradle(module:app)</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12555/android-audio-parameters/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12555/android-audio-parameters/6</guid><dc:creator><![CDATA[MDobleZ]]></dc:creator><pubDate>Fri, 07 Feb 2020 13:48:30 GMT</pubDate></item></channel></rss>