Simple audio player example using ManagedBass with Xamarin on a Mac
Contributed by: Brian Pieslak
- Download
libbass.dylib
from Un4seen, and place it in thesrc
folder. - Open
Xamarin.Mac.Player.sln
using Xamarin Studio, compile and run. - When the window opens, enter the path to the audio file you wish to play, and then click Play.
- While the audio is playing, click the Stop button when you wish to stop the audio.
- If you encounter any exceptions while attempting to play or stop the audio, check the
\bin\Debug
output folder and confirm that bothlibbass.dylib
andManagedBass.PInvoke.dll
exist in the output folder.