Hi,

I have a small program that I have that detects a slot car passing over a
photocell
that I read through the printer port. I want to play a sound every time a
car passes
over a cell, so I need the sounds to play fast and also interrupt each other
when the
cars pass very close to each other. From what I understand, I need to have
the sound
coming from memory and not reading in a wave file.
From what I see, DirectSound or SndPlaySound are my options.
Is this true? If so which is the easiest to use and best for my application?
Any
source code available?
These are small wave files, car 'drive by' sound effects.

Thanks for your time

Re: Lap timer sounds... by lallous

lallous
Wed Dec 17 01:37:13 CST 2003

Hello,

I guess sndPlaySound() is easier to use and doesn't need DirectX to be
installed.
sndPlaySound() can play sound from resource or memory (in addition to
playing files from disk).

--
Elias
"Franco" <jfrancoz@dietandtraining.com> wrote in message
news:xmSDb.5552$JD6.1531@lakeread04...
> Hi,
>
> I have a small program that I have that detects a slot car passing over a
> photocell
> that I read through the printer port. I want to play a sound every time a
> car passes
> over a cell, so I need the sounds to play fast and also interrupt each
other
> when the
> cars pass very close to each other. From what I understand, I need to have
> the sound
> coming from memory and not reading in a wave file.
> From what I see, DirectSound or SndPlaySound are my options.
> Is this true? If so which is the easiest to use and best for my
application?
> Any
> source code available?
> These are small wave files, car 'drive by' sound effects.
>
> Thanks for your time
>
>