mail-archives/mono-osx/2011-February/004015.html

96 строки
3.5 KiB
HTML
Исходник Обычный вид История

2019-06-06 22:05:17 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] Playing sounds on OS X
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Playing%20sounds%20on%20OS%20X&In-Reply-To=1273186870473-2133460.post%40n4.nabble.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="004029.html">
<LINK REL="Next" HREF="004016.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] Playing sounds on OS X</H1>
<B>Miguel de Icaza</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Playing%20sounds%20on%20OS%20X&In-Reply-To=1273186870473-2133460.post%40n4.nabble.com"
TITLE="[Mono-osx] Playing sounds on OS X">miguel at novell.com
</A><BR>
<I>Sun Feb 13 11:15:04 EST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="004029.html">[Mono-osx] [MonoMac] OpenGL OpenTK proposal / compromise
</A></li>
<LI>Next message: <A HREF="004016.html">[Mono-osx] Debugging and Progress Indicator doesn't go well together
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4015">[ date ]</a>
<a href="thread.html#4015">[ thread ]</a>
<a href="subject.html#4015">[ subject ]</a>
<a href="author.html#4015">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Hello,
&gt;<i> I have a C# app that uses System.Media.SoundPlayer. It appears to work (no
</I>&gt;<i> exceptions) but I get no sound from it when running on OS X (it plays fine
</I>&gt;<i> on Windows). I am running on Mono 2.6.3, and built the app on Windows/VS2008
</I>&gt;<i> (target .NET 2.0/x86). The app displays its window and in all other respects
</I>&gt;<i> seems to run OK. Just no sound. I really searched here first, no luck or
</I>&gt;<i> ancient Mono-1.1 related info. I even looked in the Mono 2.6 trunk
</I>&gt;<i> sources... something about ALSA drivers? I then looked for ALSA for MAC OS X
</I>&gt;<i> and found only a scary article on patching something into the kernel, which
</I>&gt;<i> I am unwilling to do as a &quot;shot in the dark&quot; attempt - then what about my
</I>&gt;<i> users' systems???.
</I>&gt;<i>
</I>&gt;<i> I must be barking up the wrong tree. Does anyone know what I am missing?
</I>
Mono does not currently have a backend for using
System.Media.SoundPlayer on OSX. It only has support for Linux at
this point.
If you are interested in working on this, the source code is in:
mono/mcs/class/System/System.Media/AudioDevice.cs
Alternatively, there are entire MacOS bindings in MonoMac, but I have
not used those to play any audio.
Miguel
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="004029.html">[Mono-osx] [MonoMac] OpenGL OpenTK proposal / compromise
</A></li>
<LI>Next message: <A HREF="004016.html">[Mono-osx] Debugging and Progress Indicator doesn't go well together
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4015">[ date ]</a>
<a href="thread.html#4015">[ thread ]</a>
<a href="subject.html#4015">[ subject ]</a>
<a href="author.html#4015">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>