From: "Al Morgan" Newsgroups: comp.os.msdos.djgpp Subject: Sound with allegro Date: Sun, 15 Aug 1999 16:58:55 -0700 Organization: Posted via Supernews, http://www.supernews.com Lines: 46 Message-ID: X-Complaints-To: newsabuse AT supernews DOT com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 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