示例#1
0
 public static DirectSoundBuffer3D FromBuffer(DirectSoundBufferBase buffer)
 {
     if (buffer == null)
     {
         throw new ArgumentNullException("buffer");
     }
     return(buffer.QueryInterface <DirectSoundBuffer3D>());
 }
示例#2
0
 public static DirectSoundNotify FromBuffer(DirectSoundBufferBase buffer)
 {
     if (buffer == null) throw new ArgumentNullException("buffer");
     return buffer.QueryInterface<DirectSoundNotify>();
 }