Le 17 oct. 2013 à 15:31, LFSaw <[email protected]> a écrit :

> Hello folks,
> 
> 
> when working with bigger chunks of memory in SuperCollider, it is advised to 
> use buffers (non-rt allocated memory) in favour to r/t allocated arrays.

How are those r/t allocated arrays allocated ? What kind of API?

> Is it possible to tell Faust to generate such a thing when compiling 
> SuperCollider UGens?

As a see in the Faust distribution SuperCollider architecture file, the Faust 
generated object is allocated as a field of a derived Unit object, so I guess 
it will then obey the memory allocation rules used be the defined "Faust" class 
 when an instance of it will be allocated?

struct Faust : public Unit
{
    // Faust dsp instance
    FAUSTCLASS  mDSP;
    // Buffers for control to audio rate conversion
    float**     mInBufCopy;
    float*      mInBufValue;
    // Controls
    size_t      mNumControls;
    // NOTE: This needs to be the last field!
    //
    // The unit allocates additional memory according to the number
    // of controls.
    Control     mControls[0];

    int getNumAudioInputs() { return mDSP.getNumInputs(); }
};

Stéphane


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to