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