Home
Tutorials
Code Snippets
Code Samples
Downloads
Links

The Blog
Our Projects
About
Contact

::Add RageStorm to Favorites!::

The Blog | Our Projects | Guest Book | About | Contact

 
Sample Code - Wave Format Player
Author:Arkon
Category:Win32API
File Name:wavplay.txt
File Size:~ 3.62 KB
Uploaded at:28-May-03
Downloads:5015
Description:
  This is a small example of how to read a .wav file and use the waveOut API to play it.
User Contributed Comments(5)
 [1] Raza | 2006-05-13 15:33:27

It's a nice and uderstanable code and sequence provided by the Author Mr.Arkon and I really appriciate his efforts.
 [2] vu dinh hai | 2006-10-30 02:12:38

thanks, but it have some error which i don't understand:
Compiling...
Cpp1.cpp
Linking...
Cpp1.obj : error LNK2001: unresolved external symbol __imp__waveOutClose@4
Cpp1.obj : error LNK2001: unresolved external symbol __imp__waveOutUnprepareHeader@12
Cpp1.obj : error LNK2001: unresolved external symbol __imp__waveOutWrite@12
Cpp1.obj : error LNK2001: unresolved external symbol __imp__waveOutPrepareHeader@12
Cpp1.obj : error LNK2001: unresolved external symbol __imp__waveOutOpen@24
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Cpp1.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.

Cpp1.exe - 7 error(s), 0 warning(s)
-------------------------------------------
and i don't know" // Do NOT forget to import winmm.lib!" and how to do it?
could you tell me soon?
Thanks you very much! and nice to meet you
 [3] arkon | 2006-10-30 13:49:57

#pragma comment(lib, "winmm.lib")
should do the work.
 [4] zerihun | 2007-06-24 06:05:56

i have encountered the run time error that says
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/play.exe : fatal error LNK1120: 1 unresolved externals
 [5] arkon | 2007-06-26 09:24:16

it means you created a console application instead of a win32 application.
just change the winmain to main...
NOTE:
Comments that will hurt anyone in any way will be deleted.
Don't ask for features, advertise or curse.
If you want to leave a message to the author use the contacts,
if you have any question in relation to your comments please use the forum.
Comments which violate any of these requests will be deleted without further
notice. Use the comment system decently.

Post your comment:
Name:
email:
Comment:
::Top 5 Tutorials::
Embedded Python[106929]
2D Rotated Rectangles Collision Detection[80070]
Keyboard Hook[69210]
UDP[53130]
HTTP Proxy[36376]

::Top 5 Samples::
2D ColDet Rotated Rectangles[10648]
PS2 Mouse Driver[6131]
Wave Format Player[5015]
Reading FAT12[4902]
CodeGuru[4601]


All rights reserved to RageStorm © 2009