[Solved] Why can’t I play an MP3 file from a separate object?
The code you are writing in the Offnen.cs file isn’t doing anything with the file because the variable “mp” is local to the object o (Offnen). Perhaps something like this is what you are looking for: MainWindow.xaml.cs #region Öffnen der Datei private void menuOffnen_Click(object sender, RoutedEventArgs e) { mp.Pause(); Offnen o = new Offnen(); o.OffnenDerDatei(mp); … Read more