WAV Sound Trouble

This is a discussion on WAV Sound Trouble within the Windows Programming forums, part of the Platform Specific Boards category; I'm trying to play a .WAV in GUI (with Dev-C++) using the PlaySound( ) function, but the compiler and linker ...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    1

    WAV Sound Trouble

    I'm trying to play a .WAV in GUI (with Dev-C++) using the PlaySound( ) function, but the compiler and linker keep spitting back errors:

    Compiler:
    243 music1b.cpp
    C:\DEV-C_~1\Include\lvp\gui_bot.h: In function `int WinMain(HINSTANCE__ *, HINSTANCE__ *, CHAR *, int)':
    474 c:\dev-c_~1\include\lvp\gui_bot.h
    warning: converting NULL to non-pointer type

    Linker:
    C:\Dev-C++\Borland\BCC55\Lib\PSDK\winmm.lib: file not recognized: File format not recognized

    I'm using winmm.lib by loading it as an object file, but I'm not completely sure that it's the original winmm.lib file. I'd really appreciate some advice on how to fix this problem (or a link to where I could download a fresh version of winmm.lib).
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Low latency sound effects
    By VirtualAce in forum Game Programming
    Replies: 0
    Last Post: 12-21-2004, 01:58 AM
  2. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  3. DirectSound - multiple sounds
    By Magos in forum Game Programming
    Replies: 9
    Last Post: 03-03-2004, 04:33 PM
  4. Wav edit programmation for dos with DJGPP
    By sprudhom in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 07-17-2003, 08:35 AM
  5. sounds?
    By BODYBUILDNERD in forum C++ Programming
    Replies: 6
    Last Post: 12-06-2002, 03:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21