コード例 #1
0
 void Start()
 {
     bufferSize      = JackWrapper.GeBufferSize();
     monodata        = new float[bufferSize]; //this has to be set from options
     monodataHandler = GCHandle.Alloc(monodata, GCHandleType.Pinned);
     generateDummyClip();
     started = true;
 }
コード例 #2
0
        void Start()
        {
            bufferSize = JackWrapper.GeBufferSize();
            monodata   = new float[bufferSize];

            // The buffer passed to jack must be pinned to memory otherwise it is possible that the GC
            // will free the buffer while jack is still using it
            monodataHandler = GCHandle.Alloc(monodata, GCHandleType.Pinned);
            System.Array.Clear(monodata, 0, monodata.Length);
            started = true;
        }