Csound Csound-dev Csound-tekno Search About

[Csnd] Csound for IOS and Audiobus

Date2014-09-24 20:45
FromDavid Moya Garcia
Subject[Csnd] Csound for IOS and Audiobus
Hi all, 

I am trying to implement Audiobus in my app. The audio engine used is
Csound. My intention is to use  a sender port.  I have been following the
steps in the Audiobus manual Unfortunately I didn't been successful. I got
an error port communication. I don't know if I have to modify the CsoundObj
file, I am lost due to my low knowledge in terms of low level API
programming. That is the declaration of my ABSEnder port:

ABSenderPort *sender = [[ABSenderPort alloc] initWithName:@"SWTAudiob"
                                                        title:@"SWTAudiob"
                                   
audioComponentDescription:(AudioComponentDescription) {
                                        .componentType =
kAudioUnitType_RemoteGenerator,
                                        .componentSubType = 'aout',
                                        .componentManufacturer = 'aurg' }
                                                    audioUnit:(__bridge
AudioUnit)(mCsound)];

If some one can point me in the right direction it will be amazing.

Thanks in advance 



--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-for-IOS-and-Audiobus-tp5737651.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-09-24 23:37
FromAndres Cabrera
SubjectRe: [Csnd] Csound for IOS and Audiobus
It would be ideal if these technologies could be added to the csound libraries themselves (probably as a comiple time option to enable them).

Cheers,
Andrés

On Wed, Sep 24, 2014 at 12:45 PM, David Moya Garcia <davidmgarcia6@gmail.com> wrote:
Hi all,

I am trying to implement Audiobus in my app. The audio engine used is
Csound. My intention is to use  a sender port.  I have been following the
steps in the Audiobus manual Unfortunately I didn't been successful. I got
an error port communication. I don't know if I have to modify the CsoundObj
file, I am lost due to my low knowledge in terms of low level API
programming. That is the declaration of my ABSEnder port:

ABSenderPort *sender = [[ABSenderPort alloc] initWithName:@"SWTAudiob"
                                                        title:@"SWTAudiob"

audioComponentDescription:(AudioComponentDescription) {
                                        .componentType =
kAudioUnitType_RemoteGenerator,
                                        .componentSubType = 'aout',
                                        .componentManufacturer = 'aurg' }
                                                    audioUnit:(__bridge
AudioUnit)(mCsound)];

If some one can point me in the right direction it will be amazing.

Thanks in advance



--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-for-IOS-and-Audiobus-tp5737651.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2014-09-25 00:01
FromDavid Moya Garcia
Subject[Csnd] Re: Csound for IOS and Audiobus
I will perfect Andres. I already 2 days trying to figure out how to implement
the sender port, supposedly its the easier to implement. For me it is a
challenge and fun, but i cannot imagine if I will have to implement a filter
port with a sender and a receiver. I will keep trying but if some on else
can give me a reference or a direction it will be amazing.  



--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-for-IOS-and-Audiobus-tp5737651p5737656.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-09-25 00:07
FromSteven Yi
SubjectRe: [Csnd] Csound for IOS and Audiobus
I'd like to see Csound for iOS have support for this in a way that
would let users use it without modifying CsoundObj itself. However,
the Audiobus code looks like it is really easiest to use being
inserted into the AudioUnit callback.

One thing we could do is store additional information in the C struct
that is used in that callback. User then could just implement an
AudiobusBinding (what used to be called CsoundValueCacheable is now
CsoundBinding in the latest Csound for iOS in Git) and add it to the
CsoundObj to run. From there, because valueCacheables are called in
sync with the AudioUnit callback, they could grab all the info
available in that callback and send that along to AudioBus. It would
mean no changes to CsoundObj.

I'd like to see an example project be made and placed on
github.com/csound that would have a clear, reusable AudioBusBinding.
I'd also like to see the users who are already using AudioBus in the
Csound-based iOS apps work on creating this demo app.  (I'm not
interested to spend time on this at the moment, and I couldn't even
work on it at this point as I no longer have an Apple Dev account to
test apps on device).

On Wed, Sep 24, 2014 at 6:37 PM, Andres Cabrera  wrote:
> It would be ideal if these technologies could be added to the csound
> libraries themselves (probably as a comiple time option to enable them).
>
> Cheers,
> Andrés
>
> On Wed, Sep 24, 2014 at 12:45 PM, David Moya Garcia
>  wrote:
>>
>> Hi all,
>>
>> I am trying to implement Audiobus in my app. The audio engine used is
>> Csound. My intention is to use  a sender port.  I have been following the
>> steps in the Audiobus manual Unfortunately I didn't been successful. I got
>> an error port communication. I don't know if I have to modify the
>> CsoundObj
>> file, I am lost due to my low knowledge in terms of low level API
>> programming. That is the declaration of my ABSEnder port:
>>
>> ABSenderPort *sender = [[ABSenderPort alloc] initWithName:@"SWTAudiob"
>>                                                         title:@"SWTAudiob"
>>
>> audioComponentDescription:(AudioComponentDescription) {
>>                                         .componentType =
>> kAudioUnitType_RemoteGenerator,
>>                                         .componentSubType = 'aout',
>>                                         .componentManufacturer = 'aurg' }
>>                                                     audioUnit:(__bridge
>> AudioUnit)(mCsound)];
>>
>> If some one can point me in the right direction it will be amazing.
>>
>> Thanks in advance
>>
>>
>>
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/Csound-for-IOS-and-Audiobus-tp5737651.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>>
>


Date2014-09-25 17:17
FromDavid Moya Garcia
Subject[Csnd] Re: Csound for IOS and Audiobus
I will have a look at it. I had downloaded the last version of Csound. I will
like to make a simple question, where is the audio unit call back in the
csound code CsoundObj.

Thanks David 



--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-for-IOS-and-Audiobus-tp5737651p5737660.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-09-25 17:36
FromSteven Yi
SubjectRe: [Csnd] Re: Csound for IOS and Audiobus
Look for this function:

OSStatus  Csound_Render(void *inRefCon,
                        AudioUnitRenderActionFlags *ioActionFlags,
                        const AudioTimeStamp *inTimeStamp,
                        UInt32 dump,
                        UInt32 inNumberFrames,
                        AudioBufferList *ioData)



On Thu, Sep 25, 2014 at 12:17 PM, David Moya Garcia
 wrote:
> I will have a look at it. I had downloaded the last version of Csound. I will
> like to make a simple question, where is the audio unit call back in the
> csound code CsoundObj.
>
> Thanks David
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csound-for-IOS-and-Audiobus-tp5737651p5737660.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>

Date2014-09-25 17:42
FromDavid Moya Garcia
Subject[Csnd] Re: Csound for IOS and Audiobus
Ok I just found it. I will try to do my best. If I got it I will make a
simple example to post it. After I will start with the receiver also.

Thanks for the information



--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-for-IOS-and-Audiobus-tp5737651p5737662.html
Sent from the Csound - General mailing list archive at Nabble.com.