AnsweredAssumed Answered

VRf-Soundblaster

Question asked by VRFuser on Nov 17, 1996
send q VRf-Soundblaster vrf ww Bjarne.E.Roscher@medtek.haukeland.no

from: Greg Goebel / HP-MXD
      gvg@lvld.hp.com / 970-679-3030 / FAX 970-679-5971
to:   VRf-Bjarne Roscher
date: Monday, 18 November 1996 1155 MST

> 1. Has anybody tried to drive a Soundblaster Card (PC) with HPVee.
> How can I do that? Must I write a driver myself (how can I do that?) or
> can I find it anywere?

Concerning this Soundblaster issue ... my lab contact never got around to
tweaking the program (he is a good fellow but too busy) but I did some
tinkering and came up with a pretty good solution.  This will go out in the
next EXCHANGE Newsletter.

--------------------------------- cut here ----------------------------------



[VEE] Playing Sound Files On VEE For Windows

* I had been puzzling over the problem of how to get VEE to play sound files
-- typically .WAV files -- on a PC for a long time, but though it was
possible to use the VEE Execute Program object to run the Windows Media
Player ("mplayer.exe") with a .WAV file as a parameter, it would play the
file -- and then stay on the screen.

A customer on the VEE Reflector (bless it!) came up with the solution ... you
have to invoke it as:

   c:winmplayer.exe -play -close c:sounds igboom.wav 

-- assuming, of course, that the "mplayer.exe" file is in a directory named
"c:win" and you want to play a .WAV file named "c:sounds igboom.wav".
This brings up the Media Player, which then plays the .WAV file -- and goes
away.

In practice, the VEE code to play different .WAV would look something like
this:

               +-------+
               | Start |
               +---+---+
                   |
  +----------------+----------------+
  |              Text               |
  +---------------------------------+
  | c:winmplayer.exe -play -close +--+   +-------------+
  +---------------------------------+  |   |   Formula   |
                                       +-->+-------------+
  +------------------------+               | A + " " + B +--+
  |          Text          |           +-->+-------------+  |
  +------------------------+           |                    |
  | c:sounds igboom.wav  +-----------+                    |
  +------------------------+                                |
                                                            |
                     +--------------------------------------+
                     |
                     |   +------------------------------------------------+
                     |   |             Execute Program (PC)               |
                     |   +---------+-----------------------------------+--+
                     |   |         | Run Style:          [ Minimized ] |  |
                     +-->| Command | Wait for prog exit: [ Yes ]       |  |
                         |         | Prog with params:   [ c:winmp ] |  |
                         |         | Working directory:  [           ] |  |
                         +---------+-----------------------------------+--+

Notice how the "Run Style" is set to "Minimized" to ensure that the Media
Player only comes up as an icon.

We have successfully run this program on both Win3 and WinNT using PCs with
sound cards.  Experiments with the so-called "Sound Driver for the PC
Speaker" didn't provide very good results -- but then that particular driver
doesn't provide very good results in general.

[<>]

Outcomes