@Override
    public void setAudioFormat( AudioFormat audioFormat )
    {
        resetStream( audioFormat );
        if( attachedSource != null && attachedSource.rawDataStream &&
            attachedSource.active() && sourceDataLine != null )
            sourceDataLine.start();
    }