Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Rob Vawter Newsgroups: scea.yaroze.programming.sound Subject: Re: Vab fail Date: Fri, 18 Sep 1998 15:38:30 -0700 Organization: SCEA News Server Lines: 33 Message-ID: <3602E0E6.620@playstation.sony.com> References: <35fd529f.9239436@news.playstation.co.uk> NNTP-Posting-Host: 206.41.6.40 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (Win95; I) Tanvir Khan wrote: " 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." Well, can you play the seq and vab with the sample code or vabplayer and seqplayer? If so, then your vab and seq creation are proper. Next, how are you loading the vab and seq into main RAM? Be certain that the address you are trying to VAB from is the address you've loaded it into. (I know that sounds silly, but since you've cut and pasted some code, it's a strong possibility that something somewhere isn't matched up). Since it's returning (-1), the possible causes are as follows: 1) Sound system already in process of transferring. Can only occur on dev kit, not Yaroze (at least I don't think it is possible). 2) requested VABID <-2 or greater than 15 3) No open vabs left (must close some previously used vabs) 4) First 3 bytes of VAB do not spell out "VAB" 5) Parse error of programs due to overwriting of VAB header. 6) SPU Malloc failure - no room left in the SPU inn 7) Size of VAB larger than SPU RAM That's it. I suspect you do not have the VAB data at the address you are accessing or have overwritten the VAB header with other data. - Rob