[System] Don't include AlsaDevice on xammac_net_4_5
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 18 Apr 2017 21:09:42 +0000 (23:09 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 18 Apr 2017 21:11:23 +0000 (23:11 +0200)
(cherry picked from commit 79ad720d5d6a595672012535116246920d32fba1)

mcs/class/System/System.Media/AudioDevice.cs

index 5053aadace9566d6f38a4d7299f20b0e12e4feec..2c54ef71a5ffa86a5a71b268b28d09bee8cbb559 100644 (file)
@@ -48,6 +48,9 @@ namespace Mono.Audio {
                protected uint chunk_size;
                
                static AudioDevice TryAlsa (string name) {
+#if XAMMAC_4_5
+                       return null;
+#else
                        AudioDevice dev;
                        try {
                                dev = new AlsaDevice (name);
@@ -55,6 +58,7 @@ namespace Mono.Audio {
                        } catch {
                                return null;
                        }
+#endif
                }
 
                public static AudioDevice CreateDevice (string name) {
@@ -87,6 +91,7 @@ namespace Mono.Audio {
                }
        }
 
+#if !XAMMAC_4_5
        class AlsaDevice: AudioDevice, IDisposable {
                IntPtr handle;
                IntPtr hw_param;
@@ -319,6 +324,7 @@ namespace Mono.Audio {
                        snd_pcm_drain (handle);
                }
        }
+#endif
 
 }