protected MusicStream getStream( final Track track ) throws IOException, BadRequestException {
MusicStream stream;
// check if we're using an encoder first
Encoder encoder = getEncoder( track );
if ( encoder != null ) {
// use Chunked stream strategy
stream = new ChunkedStream( track, encoder, getProperties() );