Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (23 sloc) 0.445 kB
using System;
using MonoTouch.Foundation;
using MonoTouch.AudioToolbox;
namespace LowLevelGLPaint
{
public class SoundEffect : NSObject
{
SystemSound sound;
public SoundEffect (string path)
{
sound = SystemSound.FromFile (new NSUrl (path, false));
}
protected override void Dispose (bool disposing)
{
((IDisposable) sound).Dispose ();
sound = null;
}
public void Play ()
{
sound.PlaySystemSound ();
}
}
}
Jump to Line
Something went wrong with that request. Please try again.