예제 #1
0
        public AudioSource([NotNull] AudioContext context)
        {
            Context = context;
            Alc.MakeContextCurrent(context.NativeContext);
            _source = AL.GenSource();

            context.ManageSource(this);
        }
예제 #2
0
 internal WatchThread([NotNull] AudioContext audioContext)
 {
     _audioContext           = audioContext;
     _synchronizationContext = SynchronizationContext.Current ?? new SynchronizationContext();
 }
예제 #3
0
 public AudioBuffer([NotNull] AudioContext context) {
     Context = context;
     Alc.MakeContextCurrent(context.NativeContext);
     _buffer = AL.GenBuffer();
 }