public AudioSource([NotNull] AudioContext context) { Context = context; Alc.MakeContextCurrent(context.NativeContext); _source = AL.GenSource(); context.ManageSource(this); }
internal WatchThread([NotNull] AudioContext audioContext) { _audioContext = audioContext; _synchronizationContext = SynchronizationContext.Current ?? new SynchronizationContext(); }
public AudioBuffer([NotNull] AudioContext context) { Context = context; Alc.MakeContextCurrent(context.NativeContext); _buffer = AL.GenBuffer(); }