Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: Rob Vawter Newsgroups: scea.yaroze.programming.sound Subject: Re: Old smf2seq version? Date: Mon, 12 Jan 1998 12:59:00 -0800 Organization: SCEA News Server Lines: 52 Message-ID: <34BA8414.6814@playstation.sony.com> References: <34903714.48FE@umich.edu> 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) Kurt Steinkraus wrote: > > Hi all, > > I'm having some problems getting my midi files to play. I can convert > them > with smf2seq just fine, and they will play if I use seqplay. If, > however, I > try to play them in my own program with code such as: > > if((vab0 = SsVabTransfer((u_char *)VH0_ADDR, (u_char *)VB0_ADDR, -1, > 1)) < 0) { > printf("Can't init sound\n"); > return; > } > if((sMainSeqAccessNum = SsSeqOpen((u_long *)SEQ_ADDR, vab0)) < 0) { > printf("Can't open seq.\n"); > return; > } > SsSeqSetVol(sMainSeqAccessNum, 127, 127); > SsSeqPlay(sMainSeqAccessNum, SSPLAY_PLAY, 1); > SsSetMVol(127, 127); > > then nothing is played, and the SsSeqOpen call prints: > > This is an old SEQ Data Format. > > to the console. What's weird is that the SsSeqOpen call is returning 0, > *not* > something less than zero to indicate failure! My smf2seq.exe is dated > at > 04-30-96 1:32p, and I'm loading std0.vh and std0.vb at VH0_ADDR and > VB0_ADDR > respectively. > > Is there a newer version of smf2seq that I need, or am I doing something > else > wrong? (Also, should I really need to load std0.vh and std0.vb? The > seqplay > batch file doesn't seem to...) > > Thanks for any ideas! > Kurt, The message "This is an old SEQ Data Format." gets printed out when the first byte of SEQ data is not "S" or "p". You must be overwriting your SEQ data or altering the header of the data. - rob