Path: chuka.playstation.co.uk!news From: Ivo Wubbels Newsgroups: scea.yaroze.programming.sound Subject: Looping large (>300KB) samples Date: Thu, 08 Jan 1998 09:31:38 +0100 Organization: Engine Software Lines: 29 Message-ID: <34B48EEA.144@worldaccess.nl> Reply-To: wubbels@worldaccess.nl NNTP-Posting-Host: sht1-5.worldaccess.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01C (Win95; U) I still am not able to loop a sample. - I use AIFF2VAG (version 2.1) to convert the sample (-L option, samplecount=multiple of 28) - Group them with the TIM-tool (or by .DEF file only) - Play them using the following code void InitBGSoundbank(unsigned char *VHAdr,unsigned char *VBAdr) { bgVABId=SsVabTransfer(VHAdr,VBAdr,-1,1); SsSetMVol(127,127); } void PlayBG() { bgVoice=SsUtKeyOn(bgVABId,0,0,45,0,127,127); } When my sample ends, it loops into another sample??? Very strange... I first thought it might be a problem in the TIMtool, so I used a copy of your .DEF file (sound example). That did not help, the sample wouldn't loop correctly. I noticed you converted the samples using the -L option alltough their samplesize wasn't dividable by 28. Do those samples loop??? I didn't try. Maybe anybody does have some examples of samples that loop, or maybe you're using updated tools? Hope you're able to help, thanks Ivo