From: News101 on
I'm trying to learn VB6 and I'm now busy trying to figure out the
Multimedia functions.
When studying examples, I encounter 2 functions: mciSendString and
SoundPlay.
Both appear to be part of Windows API, and I've seen code examples using
either one of them, but also a few that uses both functions.
Could someone please tell me what the main differences between these two
functions are, and what's their preferred useage.
Thanks alot!
J.
From: Jim Mack on
News101 wrote:
> I'm trying to learn VB6 and I'm now busy trying to figure out the
> Multimedia functions.
> When studying examples, I encounter 2 functions: mciSendString and
> SoundPlay.
> Both appear to be part of Windows API, and I've seen code examples
> using either one of them, but also a few that uses both functions.
> Could someone please tell me what the main differences between
> these two functions are, and what's their preferred useage.
> Thanks alot!
> J.

mciSendString is a hugely flexible function that can handle any kind
of media or media device that the system knows about, including video
disk players, mpeg files, WAVs, cameras, etc.

PlaySound just plays sounds.

Generally, if all you need is to play sound files or sound resources,
use the simpler function.

--
Jim Mack
MicroDexterity Inc
www.microdexterity.com

From: News101 on
Thanks alot Jim, your reply was a big help, I'll start with PlaySound
first then.
Thanks again!
J.
Jim Mack schreef:
> News101 wrote:
>> I'm trying to learn VB6 and I'm now busy trying to figure out the
>> Multimedia functions.
>> When studying examples, I encounter 2 functions: mciSendString and
>> SoundPlay.
>> Both appear to be part of Windows API, and I've seen code examples
>> using either one of them, but also a few that uses both functions.
>> Could someone please tell me what the main differences between
>> these two functions are, and what's their preferred useage.
>> Thanks alot!
>> J.
>
> mciSendString is a hugely flexible function that can handle any kind
> of media or media device that the system knows about, including video
> disk players, mpeg files, WAVs, cameras, etc.
>
> PlaySound just plays sounds.
>
> Generally, if all you need is to play sound files or sound resources,
> use the simpler function.
>