LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PlaySound question in LW-CVI

The "sndplay" project which comes with Measurement Studio 1.0.1 allows to play a sound (actually a .wav file). Is it possible, in the same fashion, to vary the sound volume and/or balancing programatically, i.e. by means of functions similar to CVI_PlaySingleSound() ? If yes, which functions (eventually SDK) should I utilize ?
Thanks in advance....
Marco
0 Kudos
Message 1 of 3
(3,378 Views)
A quick search of the Windows SDK Help (Use "Playing Waveform-Audio Files" as your search string) gives a list of functions available for playing wav files.
There are also references to playing various files using DirectX sound controls.

Another option is if you have DirectX installed on your PC, you can build an FP within CVI that will allow you to control it via a FP.

The Win SDK option is the easiest. If you would like any more info, please email me.

Here is a list of commands that are available from the Win SDK:

MCI_BREAK
MCI_CAPTURE
MCI_CLOSE
MCI_CONFIGURE
MCI_COPY
MCI_CUE
MCI_CUT
MCI_DELETE
MCI_ESCAPE
MCI_FREEZE
MCI_GETDEVCAPS
MCI_INDEX
MCI_INFO
MCI_LIST
MCI_LOAD
MCI_MARK
MCI_MONITOR
MCI_OPEN
MCI_PASTE
MCI_PAUSE
MCI_PLAY
MCI_PUT
MCI_QUALITY
MCI_REALIZE
MCI_RECOR
D
MCI_RESERVE
MCI_RESTORE
MCI_RESUME
MCI_SAVE
MCI_SEEK
MCI_SET
MCI_SETAUDIO
MCI_SETTIMECODE
MCI_SETTUNER
MCI_SETVIDEO
MCI_SIGNAL
MCI_SPIN
MCI_STATUS
MCI_STEP
MCI_STOP
MCI_SYSINFO
MCI_UNDO
MCI_UNFREEZE
MCI_UPDATE
MCI_WHERE
MCI_WINDOW


Regards

Chris
0 Kudos
Message 2 of 3
(3,378 Views)
Thanks Chris, I cannot email to you because your email address is unknown !
Can you still write to me an e-mail (sartore@elbatech.com) indicating, for example, which CVI C instructions are necessary, say, to set the volume of the speakers using the MCI you suggested ? I mean, the SDK are not so user-friendly as CVI is, at least for me !
Thanks again,
Marco
0 Kudos
Message 3 of 3
(3,378 Views)