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