Example #1
0
        public AudioRenderSystem(AudioRendererManager manager, IWritableEvent systemEvent)
        {
            _manager            = manager;
            _terminationEvent   = new ManualResetEvent(false);
            _dspMemoryPoolState = MemoryPoolState.Create(MemoryPoolState.LocationType.Dsp);
            _voiceContext       = new VoiceContext();
            _mixContext         = new MixContext();
            _sinkContext        = new SinkContext();
            _splitterContext    = new SplitterContext();
            _effectContext      = new EffectContext();

            _commandProcessingTimeEstimator = null;
            _systemEvent      = systemEvent;
            _behaviourContext = new BehaviourContext();

            _totalElapsedTicksUpdating = 0;
            _sessionId = 0;
        }
Example #2
0
 /// <summary>
 /// Create a new <see cref="CommandBuffer"/>.
 /// </summary>
 /// <param name="commandList">The command list that will store the generated commands.</param>
 /// <param name="commandProcessingTimeEstimator">The command processing time estimator to use.</param>
 public CommandBuffer(CommandList commandList, ICommandProcessingTimeEstimator commandProcessingTimeEstimator)
 {
     CommandList                     = commandList;
     EstimatedProcessingTime         = 0;
     _commandProcessingTimeEstimator = commandProcessingTimeEstimator;
 }