Try using an AudioPlayer. Cue to your start point and use the looping methods to play 10 ms (I believe you set it to loop 0 times to play once); alternatively, you can poll the position and pause when you've played 10 ms.
If you need access to the samples for some kind of analysis, use an AudioRecordingStream, from the spi package. Some of the method names are different, but you have the same control that an AudioPlayer gives you.