delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/30/20:15:20

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Questions...
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <vb8rqss7guk5rbh2q3t77lbh49g8g4j05a@4ax.com>
References: <X%1q5.1209$%f1 DOT 30062 AT news1 DOT news DOT adelphia DOT net> <a18iqscd5215q5q19m00kvl6sit9mlnnv2 AT 4ax DOT com> <39a9a3f4 DOT 27945502 AT news DOT wins DOT uva DOT nl>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 44
X-Trace: +rnM+lEBnhpRBov2K3ZLKvoFrCrQa6qCYqTJLN0hR5Cx8jCdGIz+qcPD2vaivvNMTbJ0DaBJEqU8!ciJmK+95f7wrFetYQ/fgkhw6XkDnkSbMuKGLl1YjlwSWTG9EFIl+P17nuumewF45qDYWa/5NWiE+!Vg==
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Thu, 31 Aug 2000 00:12:21 GMT
Distribution: world
Date: Thu, 31 Aug 2000 00:12:21 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Wed, 30 Aug 2000 22:14:30 GMT, eglebbk AT dds DOT nl (Evert Glebbeek)
wrote:

>From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
>>"JS" <jmszczap82 AT adelphia DOT net> wrote:
>>
>>> 1. What command line parameters can I use to reduce the size of my exe.
>>>files. ALSO, what do these parameters mean and do?
>>
>>gcc -s foo.c -lalleg -o foo.exe
>>-s : remove debugging symbols
>>
>>upx -9 foo.exe
>>upx : pack an existing DJGPP exe
>>  http://upx.tsx.org/
>
>Is there a qualitative difference between upx and djp?

UPX springs from the djp and lzop projects.  UPX uses a newer
(smaller/faster?) compression library.  UPX also supports more exe
formats (DOS MZ, DJGPP COFF, Win32 PE, Watcom LE, Linux ELF...)

>>>  2. Is it ABSOLUTELY necessary to call 'detect_digi_driver()' AND
>>>'detect_midi_driver()' before calling 'install_sound()'?
>>
>>No.  In fact I don't recommend it.
>
>Why not?

If you call detect_*_driver() first, you won't hear MIDI if there
is no digi available, and you won't hear digi if there is no MIDI
available.  If you skip detect_*_driver() and just install_sound(),
you can still hear one or the other.  I learned this the hard way
when a new Linux kernel I compiled lacked support for SB FM MIDI,
causing Allegro not to play waves.  I removed the detect_*() calls
from the program and it worked fine.

-- 
MS (n)  1. A debilitating and surprisingly widespread affliction
  that renders the sufferer barely able to perform the simplest
  task.  2. A disease, multiple sclerosis (see).

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


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