0
0

hi there,
installing the api on a clean machine will not run any of the vb6 demos anymore. as i have a history of fmod installations, 42503 is the latest that works, in all newer versions, error 37 will appear in whatever call i do, telling me that in invalid parameter was passed to this function… :(

  • You must to post comments
0
0

Hi cvmarty,

Sorry, we don’t actively support the VB6 wrapper any more.

  • You must to post comments
0
0

ok, understood then. it was strange though that the wrapper (the bas files) were synched with the api. they required the latest api but they didnt work with it though haha…

The only thing I can suppose is a change in the structure of FMOD_CREATESOUNDEXINFO but I will have to find it myself by looking in the headers of the other languages :(

  • You must to post comments
0
0

userasyncread, userasynccancel and extracodecdata are missing in FMOD_CREATESOUNDEXINFO.

If you don’t need FMOD_CREATESOUNDEXINFO, see http://52.88.2.202/forum/viewtopic.php?t=9407
which will give you more compatibility with older/newer fmodex versions – because this structure changes from time to time.

[code]
Public Type FMOD_CREATESOUNDEXINFO
cbsize As Long ‘ [in] Size of this structure. This is used so the structure can be expanded in the future and still work on older versions of FMOD Ex.
Length As Long ‘ [in] Optional. Specify 0 to ignore. Size in bytes of file to load, or sound to create (in this case only if FMOD_OPENUSER is used). Required if loading from memory. If 0 is specified, then it will use the size of the file (unless loading from memory then an error will be returned).
fileoffset As Long ‘ [in] Optional. Specify 0 to ignore. Offset from start of the file to start loading from. This is useful for loading files from inside big data files.
Numchannels As Long ‘ [in] Optional. Specify 0 to ignore. Number of channels in a sound specified only if FMOD_OPENUSER is used.
defaultfrequency As Long ‘ [in] Optional. Specify 0 to ignore. Default frequency of sound in a sound specified only if FMOD_OPENUSER is used. Other formats use the frequency determined by the file format.
Format As FMOD_SOUND_FORMAT ‘ [in] Optional. Specify 0 or FMOD_SOUND_FORMAT_NONE to ignore. Format of the sound specified only if FMOD_OPENUSER is used. Other formats use the format determined by the file format.
decodebuffersize As Long ‘ [in] Optional. Specify 0 to ignore. For streams. This determines the size of the double buffer (in PCM samples) that a stream uses. Use this for user created streams if you want to determine the size of the callback buffer passed to you. Specify 0 to use FMOD’s default size which is currently equivalent to 400ms of the sound format created/loaded.
initialsubsound As Long ‘ [in] Optional. Specify 0 to ignore. In a multi-sample file format such as .FSB/.DLS/.SF2, specify the initial subsound to seek to, only if FMOD_CREATESTREAM is used.
Numsubsounds As Long ‘ [in] Optional. Specify 0 to ignore or have no subsounds. In a user created multi-sample sound, specify the number of subsounds within the sound that are accessable with Sound::getSubSound.
inclusionlist As Long ‘ [in] Optional. Specify 0 to ignore. In a multi-sample format such as .FSB/.DLS/.SF2 it may be desirable to specify only a subset of sounds to be loaded out of the whole file. This is an array of subsound indicies to load into memory when created.
inclusionlistnum As Long ‘ [in] Optional. Specify 0 to ignore. This is the number of integers contained within the inclusionlist array.
pcmreadcallback As Long ‘ [in] Optional. Specify 0 to ignore. Callback to ‘piggyback’ on FMOD’s read functions and accept or even write PCM data while FMOD is opening the sound. Used for user sounds created with FMOD_OPENUSER or for capturing decoded data as FMOD reads it.
pcmsetposcallback As Long ‘ [in] Optional. Specify 0 to ignore. Callback for when the user calls a seeking function such as Channel::setTime or Channel::setPosition within a multi-sample sound, and for when it is opened.
nonblockcallback As Long ‘ [in] Optional. Specify 0 to ignore. Callback for successful completion, or error while loading a sound that used the FMOD_NONBLOCKING flag.
dlsname As String ‘ [in] Optional. Specify 0 to ignore. Filename for a DLS or SF2 sample set when loading a MIDI file. If not specified, on windows it will attempt to open /windows/system32/drivers/gm.dls, otherwise the MIDI will fail to open.
encryptionkey As String ‘ [in] Optional. Specify 0 to ignore. Key for encrypted FSB file. Without this key an encrypted FSB file will not load.
maxpolyphony As Long ‘ [in] Optional. Specify 0 to ingore. For sequenced formats with dynamic channel allocation such as .MID and .IT, this specifies the maximum voice count allowed while playing. .IT defaults to 64. .MID defaults to 32.
userdata As Long ‘ [in] Optional. Specify 0 to ignore. This is user data to be attached to the sound during creation. Access via Sound::getUserData.
suggestedsoundtype As FMOD_SOUND_TYPE ‘ [in] Optional. Specify 0 or FMOD_SOUND_TYPE_UNKNOWN to ignore. Instead of scanning all codec types, use this to speed up loading by making it jump straight to this codec.
useropen As Long ‘ [in] Optional. Specify 0 to ignore. Callback for opening this file.
userclose As Long ‘ [in] Optional. Specify 0 to ignore. Callback for closing this file.
userread As Long ‘ [in] Optional. Specify 0 to ignore. Callback for reading from this file.
userseek As Long ‘ [in] Optional. Specify 0 to ignore. Callback for seeking within this file.
userasyncread As Long ‘ [w] Optional. Specify 0 to ignore. Callback for seeking within this file. */
userasynccancel As Long ‘ [w] Optional. Specify 0 to ignore. Callback for seeking within this file. */
speakermap As FMOD_SPEAKERMAPTYPE ‘ [in] Optional. Specify 0 to ignore. Use this to differ the way fmod maps multichannel sounds to speakers. See FMOD_SPEAKERMAPTYPE for more. */
initialsoundgroup As Long ‘ [in] Optional. Specify 0 to ignore. Specify a sound group if required, to put sound in as it is created.
initialseekposition As Long ‘ [in] Optional. Specify 0 to ignore. For streams. Specify an initial position to seek the stream to.
initialseekpostype As FMOD_TIMEUNIT ‘ [in] Optional. Specify 0 to ignore. For streams. Specify the time unit for the position set in initialseekposition.
ignoresetfilesystem As Long ‘ [w] Optional. Specify 0 to ignore. Set to 1 to use fmod’s built in file system. Ignores setFileSystem callbacks and also FMOD_CREATESOUNEXINFO file callbacks. Useful for specific cases where you don’t want to use your own file system but want to use fmod’s file system (ie net streaming). */
extracodecdata As Long ‘ [w] Optional. Specify 0 to ignore. Codec specific data. See FMOD_SOUND_TYPE for what each codec might take here. */
End Type
[/code]

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.