Search the Community
Showing results for tags 'bass_vst_setchunk'.
-
need help with dll calls and data they return
jvds posted a topic in AutoIt General Help and Support
im not so good with dll call im trying to save a vst plugin last status in autoit via the bass udf + bassVst udf i tried some stuff with trial error but got nothing this is what i have so far, the link and funk names the example C of the site and my autoit function BASS_VST_GetChunk http://www.bass.radio42.com/help/html/9d82cc1a-9ac0-3ff6-a599-9dd1dc898938.htm public static byte[] BASS_VST_GetChunk( int vstHandle, bool isPreset ) Func _BASS_VST_GetChunk($vstHandle,$isPreset) $_BASSFX_ret_ = DllCall($_ghbassVSTDll, "BYTE", "BASS_VST_GetBypass", "int", $vstHandle,"BOOLEAN", $isPreset) If @error Then Return SetError(1, 1, 0) If $_BASSFX_ret_[0] = $BASS_DWORD_ERR Then Return SetError(_BASS_ErrorGetCode(), 0, 0) Return $_BASSFX_ret_[0] EndFunc ;==>_BASS_VST_GetBypass BASS_VST_SetChunk http://www.bass.radio42.com/help/html/66f64176-cb25-27e2-a734-8bd0c2255be7.htm public static int BASS_VST_SetChunk( int vstHandle, bool isPreset, byte[] chunk ) Func _BASS_VST_SetChunk($vstHandle,$isPreset,$chunk) $_BASSFX_ret_ = DllCall($_ghbassVSTDll, "int", "BASS_VST_SetChunk", "int", $vstHandle,"BOOLEAN", $isPreset,"BYTE",$chunk) If @error Then Return SetError(1, 1, 0) If $_BASSFX_ret_[0] = $BASS_DWORD_ERR Then Return SetError(_BASS_ErrorGetCode(), 0, 0) Return $_BASSFX_ret_[0] EndFunc ;==>_BASS_VST_GetBypass as far as i understand,BASS_VST_GetChunk is supposed to return a chunk of data i can store and later send it to the vst plugin with BASS_VST_SetChunk i don't understand how to get the BASS_VST_GetChunk output, and have trouble to fit $ispreset in to the equation- 2 replies
-
- bass_vst_getchunk
- bass_vst_setchunk
-
(and 1 more)
Tagged with: