Пример #1
0
        bool WriteObj(object buffer)
        {
            GCHandle gch = GCHandle.Alloc(buffer, GCHandleType.Pinned);

            bool Result = Bass.SampleSetData(Handle, gch.AddrOfPinnedObject());

            gch.Free();

            return(Result);
        }