private void initBuffer()
{
if ( bufferLeft == IntPtr.Zero ) {
bufferLeft = Marshal.AllocHGlobal( sizeof( float ) * BUFLEN );
}
if ( bufferRight == IntPtr.Zero ) {
bufferRight = Marshal.AllocHGlobal( sizeof( float ) * BUFLEN );
}
if ( buffers == IntPtr.Zero ) {
unsafe {
buffers = Marshal.AllocHGlobal( sizeof( float* ) * 2 );
}
}
}