Пример #1
0
        public MusicModule(float[] Memory, int Length, Resolution BufferKind = Resolution.Short)
            : base(BufferKind)
        {
            GCHandle GCPin = GCHandle.Alloc(Memory, GCHandleType.Pinned);

            Handle = Bass.LoadMusic(GCPin.AddrOfPinnedObject(), 0, Length, BassFlags.Byte);
            GCPin.Free();
        }
Пример #2
0
 public MusicModule(string FilePath, Resolution BufferKind = Resolution.Short)
     : base(BufferKind)
 {
     Handle = Bass.LoadMusic(FilePath, 0, 0, BufferKind.ToBassFlag(), 0);
 }