Play a range within an audio asset

IntermediateProgrammer SoundInstance objects. You can use the following properties, methods, and structures: For example:

  1. //Assume sample length is 5 seconds.var length = mySound.TotalLength;var begin = TimeSpan.FromSeconds(2);var duration = TimeSpan.FromSeconds(2);mySoundInstance.SetRange(new PlayRange(begin, duration));

See also

  • Global audio settings
  • Spatialized audio
  • Non-spatialized audio