/* BASS Library - FLAC Plugin by k3ph special thanks to: Skwire < License > BASS Library is licensed under BSD. http://www.autohotkey.net/~k3ph/license.txt BASS is free for non-commercial use. If you are a non-commercial entity (eg. an individual) and you are not charging for your product, and the product has no other commercial purpose, then you can use BASS in it for free. If you wish to use BASS in commercial products, read more details at: http://www.un4seen.com Usage of BASS and BASS Library indicates that you agree to the above conditions. All trademarks and other registered names contained in the BASS package are the property of their respective owners. */ ; File extension support BASS_FLAC_FILEFILTER := "Free Lossless Audio Codec (*.flac;)" BASS_FLAC_EXT := RegExReplace(BASS_FLAC_FILEFILTER, "(.*)\(|\)") BASS_CTYPE_STREAM_FLAC := 0x10900 ; BASS_CTYPE_STREAM_FLAC_OGG := 0x10901 ; BASS_FLAC_Init(){ global BASS_FLAC_HANDLE := BASS_PluginLoad(BASS_DLL_PLUGINPATH . BASS_DLL_FLAC, 0) BASS_FLAC_DLLCALL := DllCall("LoadLibrary", "str", BASS_DLL_PLUGINPATH . BASS_DLL_FLAC) Return BASS_FLAC_HANDLE, BASS_FLAC_DLLCALL } BASS_FLAC_Free(){ global Return BASS_PluginFree(BASS_FLAC_HANDLE), DllCall("FreeLibrary", UInt, BASS_FLAC_DLLCALL) } /* HSTREAM BASS_FLAC_StreamCreateFile( BOOL mem, void *file, QWORD offset, QWORD length, DWORD flags ); */ BASS_FLAC_StreamCreateFile(mem,file,offset,length,flags){ global Return DllCall(BASS_DLL_PLUGINPATH . BASS_DLL_FLAC . "\BASS_FLAC_StreamCreateFile", UInt, mem, UInt, &file, UInt64, offset, UInt64, length, UInt, flags ) } /* HSTREAM BASS_FLAC_StreamCreateFileUser( DWORD system, DWORD flags, BASS_FILEPROCS *procs, void *user ); */ BASS_FLAC_StreamCreateFileUser(system,flags,proces,user){ global Return DllCall(BASS_DLL_PLUGINPATH . BASS_DLL_FLAC . "\BASS_FLAC_StreamCreateFileUser", UInt, system, UInt, flags, UInt, procs, UInt, &user) }