public void Read(float[] Buffer) { GCHandle gch = GCHandle.Alloc(Buffer, GCHandleType.Pinned); Bass.SampleGetData(Handle, gch.AddrOfPinnedObject()); gch.Free(); }