QuickBasic 4.5 Gravis超声库 [英] QuickBasic 4.5 Gravis Ultrasound Library

查看:124
本文介绍了QuickBasic 4.5 Gravis超声库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在QuickBasic中从事一个小型项目,该项目需要使用MIDI文件.
作为DOS环境,我使用的是DOSBox 0.74,它提供了Gravis Ultrasound卡的仿真功能.

I am currently working on a small project in QuickBasic that requires the use of MIDI files.
As the DOS environment I'm using DOSBox 0.74, which provides emulation of the Gravis Ultrasound card.

到目前为止,我只能通过使用C:\ ULTRASND目录中的PLAYMIDI.EXE文件来访问GUS. 但是,不可能从QuickBasic内部启动它:SHELL语句创建子COMMAND.COM进程,因此,当PLAYMIDI.EXE在后台开始播放时,子进程将结束并终止,并且音乐停止.所有这些都意味着,启动PLAYMIDI.EXE的唯一方法是通过实际程序之前的批处理文件,但这也意味着无法控制QuickBasic程序中的音乐. Edit( 2011年7月24日).:实际上可以使用SHELL来启动它(我的错),但是PLAYMIDI.EXE的TSR版本占用了大量内存,因此没有我的程序有足够的余量.问题仍然存在.

So far, I've been able to access GUS only by using the PLAYMIDI.EXE file in the C:\ULTRASND directory. However, it is impossible to launch it from inside QuickBasic: the SHELL statement creates a child COMMAND.COM process, so when PLAYMIDI.EXE starts playing in the background the child process finishes and terminates, and the music stops. All of this means that the only way to launch PLAYMIDI.EXE is through a batch file before the actual program, but it also means that there is no way to control the music from the QuickBasic program. Edit (Jul 24, 2011): It is actually possible to launch it using SHELL (my mistake), but the TSR version of PLAYMIDI.EXE takes a lot of memory, so there isn't enough left for my program. The question still stands.

因此,我的问题是是否有针对QuickBasic的Gravis Ultrasound库.
编辑(2011年7月19日):也可能会使用另一种语言,因为QuickBasic也可以链接这些语言.

Therefore, my question is whether there is a Gravis Ultrasound library for QuickBasic available.
Edit (Jul 19, 2011): Might be in another language as well, as QuickBasic can link those too.

PS 可用的Sound Blaster库在这里,但我不喜欢它产生的声音.

P.S. Sound Blaster library available here, but I don't like the sound it produces.

  • libTiMidity: http://libtimidity.sourceforge.net/
  • Assembly Gravis Ultrasound library: guslib11.arj
  • Assembly tutorials (including QBasic): http://www.petesqbsite.com/sections/tutorials/assembly.shtml
  • Direct Sound 4 QB++ : ds4qbpp12.zip
  • Bells, Whistles and Soundboards: bwsb.zip
  • QMIDI 4.1: http://www.phatcode.net/downloads.php?id=191

推荐答案

QB64 _ SNDOPEN .

这篇关于QuickBasic 4.5 Gravis超声库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆