Español
Foro

Fmod.dll ,Sound de Ressource invitar

 

Johannes
Meyer
Grüßt euch , Yo hoffe alguien kann me weiterhelfen.

Yo bin momentan esta mich en Fmod.dll einzuarbeiten. nun Yo una lugar wo Yo no weiterkommen .
eventuell ha wer una Concepto.

Yo voluntad el el fmod.dll el Sounds de el Speicher(Ressource) holt dafür auch el definition.

Def &FMOD_OPENMEMORY $800

Api Befehl:
'FMOD_System_CreateStream(Systemb&,"Sound", &FMOD_OPENMEMORY, 0, Addr(Soundb&))

con el Befehl se una continuación el Sound auslesen de el Speicher sólo una sache me está unklar
lo que el como en el api hilfe escribir versteh Yo no :/

mode el Yo mitgebe el api funktion.
FMOD_OPENMEMORY
"name_or_data" voluntad be interpreted as a pointer to memory instead of filename for creating sounds. Use FMOD_CREATESOUNDEXINFO to specify length.

hier todavía kurz el parameter para el funktion oben el uno mitgeben kann.

Zitat:
Parámetros

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:".

mode
Behaviour modifier for opening the sound. See FMOD_MODE. Also see remarks for more.

exinfo
Pointer to a FMOD_CREATESOUNDEXINFO which lets the user provide extended information mientras que playing the sound. Optional. Specify 0 or NULL to ignore.

sound
Address of a variable to receive a newly created FMOD::Sound object.
funkitionier alles sólo tener no ahnugn Yo el nun el adresse dar para el Ressource.
Laut support se el así ir con "FMOD_OPENMEMORY"

teil is el el Auszug de el Api hilfe de el fmod.dll

Wäre echt fresco si wer ne idee ha ;)

Saludo y danke.
 
XProfan X2
Win7 Home Premium, SP1, Core(TM) i5-2400 @ 3.10GHz

Gruß,
Johannes

Programmiert in Profan X2
(Release) Gravity the Game
16.11.2012  
 




Johannes
Meyer
Sombrero hier no una idee cómo en Profano una Pointer cómo ihn de C++ sabe benutzt ?

tener hier todos como C++ code gefunden tal vez puede sí wer ü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;

resultado = FMOD_System_CreateSound(system, (const char *)buff, FMOD_HARDWARE | FMOD_OPENMEMORY, &exinfo, &sound1);
 
XProfan X2
Win7 Home Premium, SP1, Core(TM) i5-2400 @ 3.10GHz

Gruß,
Johannes

Programmiert in Profan X2
(Release) Gravity the Game
17.11.2012  
 



Usted puede doch Pointern a para Umfallen -

con Dim erzeugst solch Speicher y Variablenwert entspricht el Pointer.
KompilierenMarcaSeparación
declare myMem#
dim myMem#,1024//1024 byte speicher holen
meineAPI(addr(myMem#))//Pointenre>

Addr(s$) liefert auch el Adresse el Bytes en el String.
 
17.11.2012  
 




Johannes
Meyer
@If ok danke, el wusste Yo no . Hab así no tan gearbeitet ;)
Also con Speicherzuweisung etc.
 
XProfan X2
Win7 Home Premium, SP1, Core(TM) i5-2400 @ 3.10GHz

Gruß,
Johannes

Programmiert in Profan X2
(Release) Gravity the Game
17.11.2012  
 




Johannes
Meyer
ha se hecho ;)
 
XProfan X2
Win7 Home Premium, SP1, Core(TM) i5-2400 @ 3.10GHz

Gruß,
Johannes

Programmiert in Profan X2
(Release) Gravity the Game
18.11.2012  
 



Respuesta


Título del Tema, max. 100 Signo.
 

Systemprofile:

Kein Systemprofil creado. [anlegen]

XProfan:

 Contribución  Font  Smilies  ▼ 

Bitte registro en una Contribución a verfassen.
 

Tema opciones

5.336 Views

Untitledvor 0 min.
Gast.081506.09.2024
Member 862464118.05.2024
H.Brill28.12.2021
Jörg Sellmeyer20.03.2020
Más...

Themeninformationen

Dieses Thema ha 2 subscriber:

Johannes Meyer (4x)
iF (1x)


Admins  |  AGB  |  Applications  |  Autores  |  Chat  |  Política de Privacidad  |  Descargar  |  Entrance  |  Ayuda  |  Merchantportal  |  Pie de imprenta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Juegos  |  Búsqueda  |  Support

Ein Projekt aller XProfan, el lo son!


Mi XProfan
Privado Noticias
Eigenes Ablageforum
Temas-Merkliste
Eigene Beiträge
Eigene Temas
Zwischenablage
Cancelar
 Deutsch English Français Español Italia
Traducciones

Política de Privacidad


Wir uso Cookies sólo como Session-Cookies wegen el technischen Notwendigkeit y en uns hay no Cookies de Drittanbietern.

Wenn du hier en unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung de Informationen en unseren Cookies en XProfan.Net a.

Weitere Informationen a unseren Cookies y dazu, como du el Kontrolle darüber behältst, findest du en unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Yo möchte no Cookie