| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | [C] Playing a wav file |
From: "Kurt Kuzba"
From: Neil.Heller!1.106.2000.0{at}filegate.net
NH> I was thinking that at one place in a program I wrote I would
NH> like to have some sort of sound (other than a simple beep or
NH> bell which usually indicates an error). My conclusion was that
NH> it would probably be easiest (as well as sounding the best) if
NH> I could play a simple wav file. The trouble is that I don't
NH> know where to even start looking for help on the web.
NH> Does anybody have an idea of a word or phrase that might be the
NH> seed for a search? BTW, if it makes any difference, I'm working
NH> with MSVC in NT.
Windows supports sounds and has a function which is callable from
C in a Windows app.
BOOL PlaySound(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
Do a search in your MSVC Help for this function. There is an
example in Chapter 2 of Charles Petzold's "Programming Windows 95".
[Microsoft Press - ISBN 1-55615-676-6]
(available used via Amazon for $5.14~$25)
> kkuzba{at}centurytel.net http://home.centurytel.net/kkuzba
> Such was the dark Dunharrow, the work of long-forgotten men.
--- BBBS/LiI v4.01 Flag-5
* Origin: Prism bbs (1:261/38)SEEN-BY: 633/267 270 @PATH: 261/38 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.