• Advertisement

Archived

This topic is now archived and is closed to further replies.

Windows sound API questions

This topic is 6213 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve been digging around for Windows sound program leads since my last post and found a mention of sndPlaySound() in a Windows graphics and sound programming book. It dosen''t go into detail about other DSP type sound programming on Windows, so I was wondering if there are any experianced Windows sound programmers who could give me advice on playing basic DSP (ie wav files) sound on Windows? Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
hi
sndPlaySound can play wave samples from file or a memory pointer but if you need more functionality then you should use the windows wave device API functions which start with wave e.g.
waveOutOpen and waveOutPrepareHeader...
These functions also let you more access and control to the
sound data like direct access to samples.
Reply if you need more help on this.

Share this post


Link to post
Share on other sites
Yes I do need more help, I would appreciate any
advice you can give me!

I tried compiling a test app under Windows to call
sndPlaySound() but I couldn''t find the lib to link
it to. I get an undefined referance error.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
The .lib to link sndPlaySound is the winmm.lib (in VC++ anywayz)
- I posted in the other thread within this subject -
http://www.relisoft.com a bit down on the page you can get some tips for WIN32 - uses C++.
also: at http://www.wotsit.org - you can get the basic .wav information
- it is not as hard as it looks and it is actually pretty intresting reading if you''re new to filehandling and stuff like that - I appreciated it anyway.

It is nice to know that someone else have a similar problem.

CYA

Share this post


Link to post
Share on other sites
oops - that was me - I was anonymous.
I didn''t know you could be that on the I-net

Share this post


Link to post
Share on other sites

  • Advertisement