• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

How do i play a wavefile using MFC?

How do i play a wavefile using MFC? How does the sndPlaySound command work?
0
byrdal
Asked:
byrdal
1 Solution
 
ppeckCommented:
hi byrdal,

there are no MFC classes dealing with wav files.

the sndPlaySound() function simply plays a wav file and it is a very comfortable way
to do that. however, you should only play short wav files with it, since they have to
fit into physical memory. moreover, the documentation says

> sndPlaySound is being maintained for backward compatibility.

so use the PlaySound() function instead (which offers basically the same functionality).


if you need advanced output facilities, check out the sound output class at:

http://www.codeguru.com/multimedia/index.shtml


patrick

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now