예제 #1
0
 /// <summary>
 /// Get a memory instance to a <see cref="EffectResultState"/> at the given <paramref name="index"/>.
 /// </summary>
 /// <param name="index">The index to use.</param>
 /// <returns>A memory instance to a <see cref="EffectResultState"/> at the given <paramref name="index"/>.</returns>
 /// <remarks>The returned <see cref="Memory{EffectResultState}"/> should only be used in the context of processing on the <see cref="Dsp.AudioProcessor"/>.</remarks>
 public Memory <EffectResultState> GetDspStateMemory(int index)
 {
     return(SpanIOHelper.GetMemory(_resultStatesDsp.AsMemory(), index, (uint)_resultStatesDsp.Length));
 }
예제 #2
0
 /// <summary>
 /// Get a <see cref="Memory{VoiceUpdateState}"/> at the given <paramref name="id"/>.
 /// </summary>
 /// <param name="id">The index to use.</param>
 /// <returns>A <see cref="Memory{VoiceUpdateState}"/> at the given <paramref name="id"/>.</returns>
 /// <remarks>The returned <see cref="Memory{VoiceUpdateState}"/> should only be used in the context of processing on the <see cref="Dsp.AudioProcessor"/>.</remarks>
 public Memory <VoiceUpdateState> GetUpdateStateForDsp(int id)
 {
     return(SpanIOHelper.GetMemory(_voiceUpdateStatesDsp, id, _voiceCount));
 }