Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/07/2008, 10:55
Tikitios
 
Fecha de Ingreso: mayo-2008
Ubicación: Chile
Mensajes: 189
Antigüedad: 16 años
Puntos: 3
Respuesta: ¿Que hay de malo en esta funcion?

Cita:
Al final lo deje asi:

#include <allegro.h>

void Disparo1(){

int disp;
DATAFILE *sfx_datafile;

sfx_datafile = load_datafile("sfx.dat");
disp= install_sound(DIGI_AUTODETECT, MIDI_AUTODETECT, NULL);
play_sample((SAMPLE*)sfx_datafile[DISPARO].dat,100,128,1000,0);
}
Pero esto solo es una funcion, si quieren que les funcione deben tener mas que esto.
Tamien tienen que declarar el fichero del datafile(DISPARO)