Path: chuka.playstation.co.uk!news From: Phil Gooch Newsgroups: scee.yaroze.programming.sound Subject: Re: Vab fail Date: Tue, 15 Sep 1998 14:00:55 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 44 Message-ID: <35FE6507.46B4ECAB@easynet.co.uk> References: <35fd51c2.9018638@news.playstation.co.uk> NNTP-Posting-Host: 193.131.140.246 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [en] (Win95; I) Tanvir Khan wrote: > Hi, > > I am having problems with getting a tune in my game. The code I use > ( George Bain's) works perfectly alone but when put into my game > comes up with the error Vab fail (-1 ERROR). The vab and seq file are > alright. Its just that when I put the code in my game it messes up. > Sorry for the the lack detail but there nothing else to tell you. > Please can anyone help. > > Cheers. > > Tanvir Khan > EMAG DESIGN > > 2bad@lineone.net Tanvir The Vab fail error suggests that the VAB file has not been read from the CD correctly, or that it has not been transferred to the SPU before attempting to use it, or that the variable you are using to refer to the VAB i.d. has not been correctly assigned, or all sorts of other reasons. You must be able to give us *some* more information, surely? Are you calling the functions in the correct order? Are you loading in the VAB from the CD first before attempting to play the SEQ file? Are you loading the Vab from the CD into the correct location in memory? Perhaps the memory address for the Vab clashes with something else you are loading in, such as a TIM file, or even the location of your executable. The Yaroze reads from the CD in units of 2048 bytes, so you must allow an extra 2048 bytes when allocating space in memory for your Vab file. Please give us some more info. Please, please, don't say that you've just dropped George's code into the middle of your game code and expected it to work! Phil