示例#1
0
        public Sound.Sound CreateStream(byte[] data, Mode mode, Sound.Info exinfo)
        {
            IntPtr SoundHandle = IntPtr.Zero;

            Error.Code ReturnCode = CreateStream(this.DangerousGetHandle(), data, mode, ref exinfo, ref SoundHandle);
            Error.Errors.ThrowError(ReturnCode);

            return(new Sound.Sound(SoundHandle));
        }
示例#2
0
        public Sound.Sound CreateSound(string path, Mode mode, Sound.Info exinfo)
        {
            IntPtr SoundHandle = IntPtr.Zero;

            Error.Code ReturnCode = CreateSound(this.DangerousGetHandle(), path, mode, ref exinfo, ref SoundHandle);
            Error.Errors.ThrowError(ReturnCode);

            return(new Sound.Sound(SoundHandle));
        }
示例#3
0
 private static extern Error.Code CreateStream(IntPtr system, byte[] data, Mode mode, ref Sound.Info exinfo, ref IntPtr sound);
示例#4
0
 private static extern Error.Code CreateStream(IntPtr system, string name, Mode mode, ref Sound.Info exinfo, ref IntPtr Sound);