| That would have to get ported to native android code to work, the
pdlib just lets you use a pd patch as the engine, but doesn't
necessarily include every external.
On Tue, Dec 21, 2010 at 11:31 AM, Victor Lazzarini
wrote:
> you could also try to use csoundapi~ in PD too. But that looks ever so
> cumbersome.
>
> Victor
> On 21 Dec 2010, at 19:06, Brian Redfern wrote:
>
>> Yeah maybe we're talking about native audio track, wrapping c++ around
>> java sounds counter-intuitive, AudioTrack must be implemented in
>> native system code and then both libraries use it.
>>
>> You can get performance benefits for audio processing and 3d animation
>> from native code, otherwise there are no benefits for most
>> applications, just where you're doing a lot of math.
>>
>> For csndlib I'm using native code because otherwise I have to entirely
>> re-write csound in Java, which would probably not even be possible, at
>> least not without a huge amount of work.
>>
>> I'm looking at what the pd people did and see if its possible to do
>> the same with csound. Otherwise I can always use pd instead, if its
>> not possible to use csound.
>>
>>
>> On Tue, Dec 21, 2010 at 11:05 AM, Victor Lazzarini
>> wrote:
>>>
>>> This is what I hear on the portaudio list, from someone who seems to know
>>> android audio:
>>>
>>> "OpenSL is actually a wrapper over AudioTrack. AudioTrack is default
>>> Android's implementation which is exposed to Java. There are no almost
>>> any benefits when using OpenSL in terms of latency and performance.
>>> Some performance improvements are due to no interaction with Java VM
>>> through JNI. Also Dalvik's thread is not driving OpenSL and thus it
>>> won't be interrupted by GC."
>>>
>>> Myself, I have no experience of the matter.
>>>
>>> Victor
>>> On 21 Dec 2010, at 18:38, Brian Redfern wrote:
>>>
>>>> Its the other way around, AudioTrack is a just a wrapper around Opensl
>>>> using JNI. Audiotrack on its own allows you to add preset effects like
>>>> reverb. I think with Opensl you should be able to extend that and
>>>> write your own audio processors in native code and then write Java
>>>> wrappers in JNI to access custom effects.
>>>>
>>>> On Tue, Dec 21, 2010 at 10:34 AM, Victor Lazzarini
>>>> wrote:
>>>>>
>>>>> Apparently Opensl is just wrapper around AudioTrack.
>>>>>
>>>>> Victor
>>>>> On 21 Dec 2010, at 18:03, Brian Redfern wrote:
>>>>>
>>>>>> That's for java programs, that must be what some people are using to
>>>>>> do simple java based analog synths. The native sdk uses opensl es for
>>>>>> its audio library.
>>>>>>
>>>>>> The native library uses
>>>>>>
>>>>>> On Tue, Dec 21, 2010 at 9:26 AM, Victor Lazzarini
>>>>>> wrote:
>>>>>>>
>>>>>>> I think you need to use something called AudioTrack,
>>>>>>> http://developer.android.com/reference/android/media/AudioTrack.html
>>>>>>>
>>>>>>> Victor
>>>>>>> On 21 Dec 2010, at 17:12, Brian Redfern wrote:
>>>>>>>
>>>>>>>> For my own project I'm just going to use the alsa native code as a
>>>>>>>> guide to adding code to support for native audio, or to see if its
>>>>>>>> even possible to do what I want to do.
>>>>>>>>
>>>>>>>> First I need to try to just build the pdlib to see how its done with
>>>>>>>> working code, and then use that as a guide to do the same for
>>>>>>>> csound.
>>>>>>>>
>>>>>>>> On Tue, Dec 21, 2010 at 4:24 AM, Richard Dobson
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Ross Bencina has just started a thread on the portaudio list about
>>>>>>>>> Android
>>>>>>>>> audio. This may be a more generally productive route in the longer
>>>>>>>>> term
>>>>>>>>> than trying to add native Android audio directly to Csound.
>>>>>>>>>
>>>>>>>>> Much seems to depend on how well devices improve on Android's
>>>>>>>>> modest
>>>>>>>>> latency
>>>>>>>>> requirements of each-way 45ms "or less".
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Richard Dobson
>>>>>>>>>
>>>>>>>>> On 21/12/2010 04:04, Brian Redfern wrote:
>>>>>>>>>>
>>>>>>>>>> Android takes a different approach from ios. With audio apps you
>>>>>>>>>> would
>>>>>>>>>> write the audio part in native code and the user interface is
>>>>>>>>>> built
>>>>>>>>>> with java.
>>>>>>>>>>
>>>>>>>>> ..
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>>> "unsubscribe
>>>>>>>>> csound"
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>>> "unsubscribe
>>>>>>>> csound"
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>> "unsubscribe
>>>>>>> csound"
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>> "unsubscribe
>>>>>> csound"
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>> "unsubscribe
>>>>> csound"
>>>>>
>>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|