[Mono-bugs] [Bug 577786] New: System.Media.SoundPlayer don't stop playing
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Feb 7 07:22:13 EST 2010
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: mono-bugs at lists.ximian.com
ReportedBy: akonyaev at gmail.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list