コード例 #1
0
ファイル: SoundSystem.cs プロジェクト: gfdittmer/MiSharp
 private static extern Code CreateStream(IntPtr system, byte[] data, Mode mode, ref Info exinfo, ref IntPtr sound);
コード例 #2
0
ファイル: SoundSystem.cs プロジェクト: gfdittmer/MiSharp
        public Sound.Sound CreateStream(byte[] data, Mode mode, Info exinfo)
        {
            IntPtr soundHandle = IntPtr.Zero;

            Code returnCode = CreateStream(DangerousGetHandle(), data, mode, ref exinfo, ref soundHandle);
            Errors.ThrowError(returnCode);

            return new Sound.Sound(soundHandle);
        }
コード例 #3
0
ファイル: SoundSystem.cs プロジェクト: gfdittmer/MiSharp
 private static extern Code CreateStream(IntPtr system, string name, Mode mode, ref Info exinfo, ref IntPtr sound);
コード例 #4
0
ファイル: SoundSystem.cs プロジェクト: gfdittmer/MiSharp
        public Sound.Sound CreateSound(string path, Mode mode, Info exinfo)
        {
            IntPtr soundHandle = IntPtr.Zero;

            Code returnCode = CreateSound(DangerousGetHandle(), path, mode, ref exinfo, ref soundHandle);
            Errors.ThrowError(returnCode);

            return new Sound.Sound(soundHandle);
        }