Mail Archives: djgpp/1999/08/15/20:44:13
I'm trying to get sound to work under Allegro. I know I have digi_driver
set correctly, how do I know midi_driver. (sorry, stupid question). I've
checked and doublechecked, and the problem isn't the .wav file being there.
It compiles fine (gxx -o sound.exe sound.cpp -lalleg), but no sound comes
out when I run it.
Thanks in advance,
Al [muaddib AT proaxis DOT com]
#include <allegro.h>
void main()
{
allegro_init();
detect_digi_driver(DIGI_SB16);
detect_midi_driver(MIDI_AWE32); // i guessed that, beacuse it sounds
familiar, how do i know what to put here?
install_sound(DIGI_SB16, MIDI_AWE32, "");
SAMPLE *amazing = load_wav("c:\\amazing.wav");
play_sample(amazing, 255, 128, 1000, 0);
allegro_exit();
}
I have sound.cfg in the same directory configured as follows:
digi_card = SB16
midi_card = AWE32
digi_voices = 1
midi_voices = 1
quality = 1
flip_pan = 1
sb_port = 220
sb_dma = 1
sb_irq = 5
sb_freq = 30000
fm_port = 388
mpu_port = 330
mpu_irq = 5
digi_volume = 128
midi_volume = 128
- Raw text -