Xref: news-dnh.mv.net comp.os.msdos.djgpp:1544 Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!tank.news.pipex.net!pipex!sunsite.doc.ic.ac.uk!ulcc.ac.uk!pluto.ulcc.ac.uk!cziwkga From: cziwkga AT pluto DOT ulcc DOT ac DOT uk (Kevin Ashley) Newsgroups: comp.os.msdos.djgpp Subject: Re: Thanks for your help, and another thing... Date: 14 Aug 1995 10:35:02 GMT Organization: University of London Computer Centre Lines: 37 Distribution: world References: <40fkss$ad3 AT fileserv DOT aber DOT ac DOT uk> Reply-To: k DOT ashley AT ulcc DOT ac DOT uk Nntp-Posting-Host: pluto-e.ulcc.ac.uk To: ngh94 AT aber DOT ac DOT uk (NIGEL HUGHES) Dj-Gateway: from newsgroup comp.os.msdos.djgpp >- Another quick question, has anybody tried out the sblaster.zip >archive? I gave it a quick go and the compiler complained about the >enable and disable functions clashing with the ones in dos.h. I renamed >those to sbenable and sbdisable in the protos and the actual code and >it almost worked, brief brass hit sound then a crash. Anyone had more >luck? I've had some success with it. The existing code seems to die if you pass it a buffer greater than its chunk size ; something goes wrong in the interrupt handler when it tries to queue up the next bit of the buffer. By changing the chunk size to something approaching 64k and never giving it more than this in one go, I get more out of it. This was OK in my environment but won't suit everyone. I also modified the top-level routine to check to see if an existing buffer was already playing and to wait for it to finish if it was (again, that was what I needed but may not be what you need.) Due to the general flakiness of interrupts in V1, especially if you start paging, I still get unreproducible crashes using it though. The recent code submitted for V2 looks a better bet but I couldn't try it out earlier as I need 387 emulation and V2 didn't have that working last time I looked (but it may well do now.) I'm really after something that can drive the SB in 16-bit stereo mode. I've found it much more difficult to find useful code examples for this, but I'm going to take a look at the VoxWare stuff and see if it can be usefully integrated into the V2-submitted code. I may then try to add a NAS API (NAS being the Network Audio System, which is what I use for sound on all my other platforms.) --------------------------------------------------------------------------- Kevin Ashley K DOT Ashley AT Ulcc DOT ac DOT uk Systems Development Group Manager http://www.ulcc.ac.uk/staff/Kevin+Ashley University of London Computer Centre. ...ukc!ncdlab!K.Ashley This is not a signaure