[Mono-bugs] [Bug 653489] New: System.Media.Soundplayer does not play wav file
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Nov 13 14:46:19 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=653489
https://bugzilla.novell.com/show_bug.cgi?id=653489#c0
Summary: System.Media.Soundplayer does not play wav file
Classification: Mono
Product: Mono: Runtime
Version: 2.8.x
Platform: x86-64
OS/Version: Mac OS X 10.6
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: platzer.wolfgang at pieps.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=400078)
--> (http://bugzilla.novell.com/attachment.cgi?id=400078)
A short wav file
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12)
Gecko/20101026 Firefox/3.6.12
Playing a simple wav file that is included in a resource does not work. No
error and no sound.
This code example works fine under under Linux (Ubuntu-64).
private static void playSoundFromResource()
{
System.Reflection.Assembly a =
System.Reflection.Assembly.GetExecutingAssembly();
System.IO.Stream s =
a.GetManifestResourceStream("<AssemblyName>.WAVConnect.wav");
SoundPlayer player = new SoundPlayer(s);
player.Play();
}
Reproducible: Always
Steps to Reproduce:
1. Try sample code from Details section.
Actual Results:
Nothing. No error and no sound.
Expected Results:
I hear the wav file.
--
Configure bugmail: https://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