Path: chuka.playstation.co.uk!news From: Ed Fear Newsgroups: scee.yaroze.beginners Subject: Thanx Date: Tue, 09 Feb 1999 20:02:19 +0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 93 Message-ID: <36C0944B.C39BB7FD@yahoo.com> References: <36BDFC53.2014A8AC@yahoo.com> <36BF458A.4D0F9814@yahoo.com> <36C07952.17FA1882@vmlabs.com> NNTP-Posting-Host: ppp-1-9-57.access.telinco.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.04 [en] (Win95; I) Scott, thou ist a god. Quite frankly. A superb god at that. I don't know if it will work when I do it, but thanx! Ed :) P.S If anyone else has any ways of doing it, feel free to post them! Scott Cartier wrote: > 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 > > > RAM> > > > 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...."