Mail Archives: djgpp/2000/01/03/11:22:37
From: | "David C. Hoos, Sr." <david DOT c DOT hoos DOT sr AT ada95 DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
References: | <386FBA6E DOT CFA57AE8 AT pepparkakor DOT demon DOT nl>
|
Subject: | Re: What is wrong?
|
Lines: | 36
|
MIME-Version: | 1.0
|
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300
|
Message-ID: | <I6%b4.3262$Ec5.170661@newsread1.prod.itd.earthlink.net>
|
NNTP-Posting-Host: | 158.252.122.157
|
X-Complaints-To: | abuse AT earthlink DOT net
|
X-Trace: | newsread1.prod.itd.earthlink.net 946896424 158.252.122.157 (Mon, 03 Jan 2000 02:47:04 PST)
|
NNTP-Posting-Date: | Mon, 03 Jan 2000 02:47:04 PST
|
Organization: | EarthLink Network, Inc.
|
X-ELN-Date: | Mon Jan 3 02:47:04 2000
|
X-ELN-Insert-Date: | Mon Jan 3 02:47:04 2000
|
X-Posted-Path-Was: | not-for-mail
|
Date: | Mon, 03 Jan 2000 10:47:04 GMT
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Roger <roger AT pepparkakor DOT demon DOT nl> wrote in message
news:386FBA6E DOT CFA57AE8 AT pepparkakor DOT demon DOT nl...
> Hi !!
>
> When I try this little program,my computer make a reboot,and that is not
> what I like,so please,what is wrong?
>
> #include <time.h>
> #include <stdlib.h>
> #include <stdio.h>
>
> #include "allegro.h"
The above line should be
#include <allegro.h>
>
> SAMPLE *det;
>
> int main() {
> allegro_init();
> install_timer();
> install_sound(DIGI_AUTODETECT,MIDI_AUTODETECT,0);
> det=load_wav("applouse.wave");
The above filename is suspicious. Should it be
"applause.wav" ?
> play_sample(det,255,127,9000,-1);
> }
>
>
>
- Raw text -