private void StopRecording()
 {
     if (nAudioRecorder != null)
     {
         string temp = nAudioRecorder.Filename;
         nAudioRecorder.StopRecording();
         nAudioRecorder = null;
     }
 }
 private void StartRecording(MMDevice device, string artist, string title, string album)
 {
     if (device != null)
     {
         if (nAudioRecorder != null)
         {
             StopRecording();
         }
         //Auf Werbung prüfen
         if (!checker.Trackinfos.Album.StartsWith("http://") || !checker.Trackinfos.Album.StartsWith("spotify"))
         {
             //TODO: Vorher prüfen, ob Pfad korrekt ist und Ordner existiert, ggf. erstellen
             nAudioRecorder = new NAudioRecorder(device, txbFolder.Text, artist, title, album, cmbBitrate.SelectedIndex);
             nAudioRecorder.RecordingStarted += nAudioRecorder_RecordingStarted;
             nAudioRecorder.RecordingStopped += nAudioRecorder_RecordingStopped;
             nAudioRecorder.StartRecording();
         }
     }
 }