http://bugzilla.novell.com/show_bug.cgi?id=577786
http://bugzilla.novell.com/show_bug.cgi?id=577786#c0 Summary: System.Media.SoundPlayer don't stop playing Classification: Mono Product: Mono: Class Libraries Version: 2.6.x Platform: i586 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: System AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Description of Problem: If call Stop() method for SoundPlayer instance, witch playing 1.wav, and than call Play() for playing 2.wav, 1.wav playing will not be interrupted. Steps to reproduce the problem: 1. var sp = new SoundPlayer(); 2. sp.Stream = myStream; sp.Play(); // start long wav-file playing 3. // in another thread interrupt current playing and start new wav-file playing: sp.Stop(); sp.Stream = myStream; sp.Play(); Actual Results: first wav-file continues playing but new wav-file start play too! Expected Results: first file playing stopped and second file playing started How often does this happen? ever Additional Information: bug here: SoundPlayer.Start(): wrong realization: void Start() { if (!use_win32_player) { stopped = false; if (adata != null) adata.IsStopped = false; } if (!load_completed) Load(); } good realization: void Start() { if (!load_completed) Load(); if (!use_win32_player) { stopped = false; if (adata != null) adata.IsStopped = false; } } So, when we set adata.IsStopped = false variable adata refer to old WavData yet -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
