[Bug 470881] New: replace System.MediaSounds on windows Mono
- From: "chronojump (bugzilla.gnome.org)" <bugzilla-daemon bugzilla gnome org>
- To: chronojump-devel-list gnome org
- Subject: [Bug 470881] New: replace System.MediaSounds on windows Mono
- Date: Mon, 27 Aug 2007 23:00:19 +0000 (UTC)
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=470881
chronojump | chronojump | Ver: unspecified
Summary: replace System.MediaSounds on windows Mono
Product: chronojump
Version: unspecified
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: Normal
Component: chronojump
AssignedTo: xaviblas cvs gnome org
ReportedBy: xaviblas cvs gnome org
QAContact: xaviblas cvs gnome org
GNOME version: Unspecified
GNOME milestone: Unspecified
System.MediaSounds works on windows with .net and on Linux with mono, but not
on windows mono because it's dependendat on Alsa, libasound
http://lists.ximian.com/pipermail/mono-list/2007-August/036050.html
try to do it in other way, probably like this:
[DllImport ("winmm.dll", SetLastError = true)]
static extern bool PlaySound (string pszSound, IntPtr hmod, int fdwSound);
public void PlayFinishedSound ()
{
string sound = Application.ExecutablePath + @"\Sounds\finished.wav";
PlaySound (sound, IntPtr.Zero, 0);
}
from http://www.mono-project.com/Guide:_Porting_Winforms_Applications
Check also this thread:
http://www.mail-archive.com/mono-devel-list lists ximian com/msg13642.html
If it doesn't work, see how muine works
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=470881.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]