delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/03/18:20:19

Message-Id: <199811032320.XAA25959@relay.clara.net>
From: "Arthur" <arfa AT clara DOT net>
To: <djgpp AT delorie DOT com>
Subject: RE: Allegro: Voice being cut off
Date: Tue, 3 Nov 1998 23:15:13 -0000
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
In-Reply-To: <MPG.10a9627277e256539897ec@news.freeserve.net>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

> This is a repost. I originally posted it in June, but there was no
> response. The problem is still there, and I won't be able to release my
> game until it is fixed.
>
> The music of my game is stored as a number of large samples. These are
> played using the voice allocation commands, and the priority is set to
> 255.
>
> However, if I play a lot of other samples (using play_sample) at the same
> time, the music is sometimes cut off. When I say a lot at the same time,
> I mean many simultaneous samples, maybe twenty or more. Of course, there
> are not this many voices available, but I want the new samples to be cut
> off, not the music.

Suggest you get the latest Work In Progress (WIP) of Allegro (Oct 25). In
previous versions, the default priority was also 255, so setting priority
255 on any sample wouldn't make a difference, unless you set any other
samples to a lower priority. The new version has the default priority set to
128. You can fix your problem by setting your samples to a lower priority,
but I would still get the WIP because it also supports 16-bit interpolation
on the sound, which is really cool (older versions only supported 8-bit with
no mixing).

Get it from http://www.talula.demon.co.uk/allegro/ and read the instructions
on how to patch up your version of Allegro.

James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819


- Raw text -


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