delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/16/16:31:40

From: "Al Morgan" <muaddib AT proaxis DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Sound with allegro
Date: Mon, 16 Aug 1999 00:10:58 -0700
Organization: Posted via Supernews, http://www.supernews.com
Lines: 39
Message-ID: <rrfe9tapoqs60@corp.supernews.com>
References: <rrekvqaqoqs14 AT corp DOT supernews DOT com> <37B76C37 DOT 43A AT ns DOT sympatico DOT ca>
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

My soundcard is a Soundblaster16.  Your suggestion didn't work, still
nothing.  Is there some working allegro sound example source or something I
can look at out there?

I've slightly altered my program:

#include <allegro.h>
#include <iostream.h>

void main()
    {
    allegro_init();
    detect_digi_driver(DIGI_AUTODETECT);
    detect_midi_driver(MIDI_AUTODETECT);
    install_sound(DIGI_AUTODETECT, MIDI_AUTODETECT, NULL);

    SAMPLE *amazing = load_wav("c:\\amazing.wav");

    play_sample(amazing, 255, 128, 1000, 0);

    allegro_exit();
    }



Klaas <klaas AT ns DOT sympatico DOT ca> wrote in message
news:37B76C37 DOT 43A AT ns DOT sympatico DOT ca...
> >     allegro_init();
> >     detect_digi_driver(DIGI_SB16);
> >     detect_midi_driver(MIDI_AWE32);  // i guessed that, beacuse it
> [...]
>
> 1. What is your soundcard?
>
> 2. Try install_sound(DIGI_AUTODETECT,MIDI_AUTODETECT,NULL); instead/
>
> -Mike


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019