Path: chuka.playstation.co.uk!news From: Ivo Wubbels Newsgroups: scee.yaroze.programming.sound Subject: Re: Beginner Sound Question.. Date: Wed, 04 Feb 1998 11:29:29 +0100 Organization: Engine Software Lines: 52 Message-ID: <34D84309.14C2@worldaccess.nl> References: <34D7896B.A4740D51@infores.com> Reply-To: wubbels@worldaccess.nl NNTP-Posting-Host: sht2-3.worldaccess.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01C (Win95; U) Luca Cappellini wrote: > > Hi, > > I'm just fallen in sound stuff please please help !! > > I understood that if i want to play simple fx sound i need to use only > VB and VH data without the use of SEQ file, is that true or i must use a > SEQ file in any case ? > > If i am right, why this simple prog crash in the SsVabTransfert func > ???? > > #include > > #define vb 0x801B5000 > #define vh 0x801B0000 > > main() > { > > short vbret,vnum; > > vbret = SsVabTransfer((unsigned char *) vh,(unsigned char *) vb,-1,1); > > printf("VB val = %d\n",vbret); > > vnum = SsUtKeyOn(vbret, 0, 0, 48, 0, 127, 127); > > SsVabClose(vbret); > > return 0; > } > > I am wrong or i should hear something or at least the prog should not > crash !!! > > Please help me i m getting MAD !!! > > Thanks in advace > > Luca Hi Luca, The transfer function will crash if your data is not valid. Check if the addresses match at the siocons. Try the VABtool to verify if the data is valid. If data is valid, be sure the data does not cross the stack (about 801f0000). If the tranfer completes you should hear a sample by calling the SsUtKeyOn IF you turned on the mainvolume! Hope this helps Ivo