This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Win95 program to play audio file


Hello:

I just tried to compile an example program from the Charles Petzold
book on programming Windows 95. It contains a function call

     PlaySound ("hellowin.wav", NULL, SND_FILENAME | SND_ASYNC) ;

I coudn't find a header file for this function. I get the error message

gcc -c -Wall -Ic:/Cygnus/b19/H-i386-cygwin32/i386-cygwin32/include
hellowin.c
hellowin.c: In function `WndProc':
hellowin.c:65: warning: implicit declaration of function `PlaySound'
hellowin.c:65: `SND_FILENAME' undeclared (first use this function)
hellowin.c:65: (Each undeclared identifier is reported only once
hellowin.c:65: for each function it appears in.)
hellowin.c:65: `SND_ASYNC' undeclared (first use this function)
MAKE.EXE: *** [hellowin.o] Error 1

Has anybody compiled a program involving playing sound files ? If yes,
would someone please share a code fragment with me ?

thanks,

Bhaskar Bhattacharya
PS. The program compiles (and runs) fine if that line is commented out.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]