New to the forum and to libvlc. Sorry if posted in the wrong place please move if necessary.
I am using a Mac m1 24 running Big Sur.
I use a language called PureBasic.
I am attempting to produce a LibVlc module for use in pureBasic to play audio.
So far I have VLC Version 2.2.8 Weatherwax (Intel 64bit) installed which plays any audio file I drop on it .ogg and MP3.
Which to me seems strange as I am on an M1 machine using the Apple silicon.
To start I would like to play a single song file and know when it has finished.
My code so far is:-
Both debugs return large numbers, no zeros.libVlc = GetUserDirectory(#PB_Directory_Documents) + "VlcTRY/VLC.app/Contents/MacOS/lib/libvlc.dylib"
SetEnvironmentVariable("VLC_PLUGIN_PATH", GetUserDirectory(#PB_Directory_Documents) + "VlcTRY/VLC.app/Contents/MacOS//plugins/")
hlib = OpenLibrary(#PB_Any, libVlc)
m_pVLCInstance = CallCFunction(hlib, "libvlc_new", 0, #Null)
m_pMediaPlayer = CallFunction(hlib, "libvlc_media_player_new", m_pVLCInstance)
Debug m_pVLCInstance
Debug m_pMediaPlayer
Where do I go from here?
Any help appreciated.