Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Scott Cartier Newsgroups: scee.yaroze.beginners Subject: Re: Found the problem, but need more help!!!! Date: Tue, 09 Feb 1999 10:07:14 -0800 Organization: SCEA News Server Lines: 83 Message-ID: <36C07952.17FA1882@vmlabs.com> References: <36BDFC53.2014A8AC@yahoo.com> <36BF458A.4D0F9814@yahoo.com> NNTP-Posting-Host: vmlabs34.vmlabs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (Win98; U) X-Accept-Language: en Okay, I'll try to make this plain English. Let me know if I lose you. :) Note, this is definitely not a "beginners" topic. One thing I thought about doing (to solve this very problem) is to have my program execute in two parts. The first part would load in the sample set and sound effects, put them in sound RAM, and then quit. Once they are in sound RAM you can reuse the memory that they occupied. So the sequence would be something like this (in SIOCONS pseudo-code): dload sfx.vb 0x80090000 dload sfx.vh 0x800A0000 dload main go dload graphix1.tim 0x80090000 dload graphix2.tim 0x800A0000 . . . go Your main program might look something like this: int mode = 0; void main() { if (mode == 0) { mode++; exit; } } When you load your program, "mode" will be set to 0. The first time you execute it, that "if" statement will take effect, load the sounds, increment "mode", and exit. Then after you've loaded your graphics and other data you execute the program again (DON'T reload it - just type "go" again). This time "mode" is 1 so it skips that first part. Did that make sense? I know I'll be using this method once I run out of RAM. Anyone else have ideas how to accomplish the same thing? Scott > Heya all! > > I have found the problem... > > I am following the Sound For Dummies tutorial, and to play midi I have to > load a file called std0.vb (I do also have to load a .vh file, but it's only > small...). Unfortunatley, it is 300kb... can anyone suggest a way of > making it smaller or using another method? Please respond in 'plain > English' - I'm just a lowly beginner! > > I can't see that they expect you to give up 300kb for a file that you need. > > To make a soundfile, you have to split it up into a .vb and .vh file. Can I > get a very small sound file and use these as the .vb and .vh file? > > Cheers in advance, > > Ed :) > > "Um...."