コード例 #1
0
ファイル: FmodSystem.cs プロジェクト: nathanchere/nFMOD
 private static extern ErrorCode CreateStream(IntPtr system, byte[] data, SoundMode mode, ref SoundInfo exinfo, ref IntPtr sound);
コード例 #2
0
ファイル: FmodSystem.cs プロジェクト: nathanchere/nFMOD
 public Sound CreateStream(byte[] data, SoundMode mode, SoundInfo exinfo)
 {
     IntPtr resultHandle = IntPtr.Zero;
     Errors.ThrowIfError(CreateStream(DangerousGetHandle(), data, mode, ref exinfo, ref resultHandle));
     var result = new Sound(resultHandle);
     _sounds.Add(resultHandle, result);
     return result;
 }
コード例 #3
0
ファイル: FmodSystem.cs プロジェクト: nathanchere/nFMOD
 private static extern ErrorCode CreateStream(IntPtr system, string name, SoundMode mode, ref SoundInfo exinfo, ref IntPtr Sound);
コード例 #4
0
ファイル: FmodSystem.cs プロジェクト: nathanchere/nFMOD
 public Sound CreateSound(string path, SoundMode mode, SoundInfo exinfo)
 {
     IntPtr resultHandle = IntPtr.Zero;
     Errors.ThrowIfError(CreateSound(DangerousGetHandle(), path, mode, ref exinfo, ref resultHandle));
     var result = new Sound(resultHandle);
     _sounds.Add(resultHandle, result);
     return result;
 }