| |
|
|
Johannes Meyer | Grüßt you , I hope someone can me help on.
i'm momentarily thereby me in Fmod.dll einzuarbeiten. now have I a place where I do not weiterkommen . possible has who a idea.
i will the The fmod.dll The Sounds from memory(Ressource) fetch for too The definition.
Def &FMOD_OPENMEMORY $800
Api commands: 'FMOD_System_CreateStream(Systemb&,"Sound", &FMOD_OPENMEMORY, 0, Addr(Soundb&))
with the commands should one then whom Sound read from memory only a thing is me unclear what those in the api Help write versteh I do not :/
fashion whom I mitgebe the api function. FMOD_OPENMEMORY "name_or_data" wants be interpreted as a pointer to memory instead of filename for creating sounds. Use FMOD_CREATESOUNDEXINFO to specify length.
here yet short The parameter for function supra everybody can mitgeben can.
Quote: Parameters
name_or_data name of the file or URL to open. For CD playback this may be a drive letter with a colon, example "D:".
fashion Behaviour modifier for opening the sound. sea FMOD_MODE. means sea remarks for more.
exinfo Pointer to a FMOD_CREATESOUNDEXINFO which lets the user provide extended information while playing the sound. Optional. Specify 0 or NULL to ignore.
sound Address of a variable to receive a newly created FMOD::Sound object. funkitionier everything only Have no ahnugn How I the now The address give for Ressource. loudly support should the so weg with "FMOD_OPENMEMORY"
part is the the statement from the Api Help from the fmod.dll
would be Real calm if who ne idea has ;)
Greeting and thanks. |
|
|
| |
|
|
|
Johannes Meyer | has here no a idea How one in Profan a Pointer How one it from C++ knows using ?
Have here the whole as C++ code found Perhaps can the Yes who übersetzten
Code:
void LoadFileIntoMemory(const char *name, void **buff, int *length) { FILE *fp = fopen(name, "rb");
fseek(fp, 0, SEEK_END); *length = ftell(fp); fseek(fp, 0, SEEK_SET);
*buff = malloc(*length); fread(*buff, *length, 1, fp);
fclose(fp); }
LoadFileIntoMemory("../media/drumloop.wav", &buff, &length); memset(&exinfo, 0, sizeof(FMOD_CREATESOUNDEXINFO)); exinfo.cbsize = sizeof(FMOD_CREATESOUNDEXINFO); exinfo.length = length;
result = FMOD_System_CreateSound(system, (const char *)buff, FMOD_HARDWARE | FMOD_OPENMEMORY, &exinfo, &sound1); |
|
|
| |
|
|
|
| You can still Pointern until Umfallen -
with Dim beget such memory and the Variablenwert corresponds to the Pointer. CompileMarkSeparation Addr(s$) supply too The address the Bytes in the string. |
|
|
| |
|
|
|
Johannes Meyer | @If ok thanks, the known I do not . Have so not yet so worked ;) means with Speicherzuweisung etc. |
|
|
| |
|
|
|
Johannes Meyer | |
|
| |
|
|