Re: PlaySound resource won't play sound in emulator..



To check you don't miss anything in your OSDesign, can you try to play the
wav file directly from WMP ?

--
----------------------------------------------------------------
Yannick Chamming's (eMVP)
ADENEO (ADESET)
Windows Embedded Manager
ychammings AT adeneo DOT adetelgroup DOT com>
http://www.adeset.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------

<photochop@xxxxxxxxxxx> a écrit dans le message de news:
1139267983.618306.264150@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hey all!
First off, this is for eMbedded Visual C++ 4.0 with SP4. Running
the emulator.

I'm creating a slideshow application with a simple background
sound, and while I can get sound to play if it's a system sound either
through PlaySound or sndPlaySound like these examples when running the
application through the emulator:


PlaySound(L"Asterisk", hInst, SND_ASYNC);

OR

sndPlaySound(L"Asterisk",SND_ASYNC);

I can not get the sound to play when doing something like this:
PlaySound(MAKEINTRESOURCE(IDR_WAVE1), hInst, SND_RESOURCE | SND_ASYNC))

I have the wav file embedded in the resources properly, and it compiles
fine. It's just that PlaySound returns false everytime. Any reason why
it would be doing this? Am I missing something? It only does this with
resource'd wav files. My resource'd bitmaps load fine. :(

Hoping for a speedy answer because I'm running out of time. :(
-Steve



.



Relevant Pages

  • Background WAV doesnt play
    ... that I wanted to play in the background of my e-mail. ... The sound played flawlessly. ... WAV file without having to re-save the file as an EML file? ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • RE: Play .wav file at DB start-up
    ... RejectSteelBarCodes - just copy the wav file into this and it should work. ... is that I move that database around and the sound file wont be in the same ... MsgBox "The Sound Did Not Play!" ...
    (microsoft.public.access.gettingstarted)
  • Re: A pps. file in Front Page...no audio!!!
    ... files play at the same time. ... playing more than one sound at a time, ... Is there anyway to have the one wav file play ... >> Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)
  • Re: play audio file continuously without gaps
    ... I'm trying to write a code to play a wav file in a loop. ... You can use size to determine the length of your sound. ... Data Acquisition Toolbox has some very nice functions that make this ...
    (comp.soft-sys.matlab)
  • Re: Shostakovichs 8th symphony?
    ... but the PSO simply doesn't have enough sound and impact ... They play very well, but they just don't have a very impactful ... playing style. ... the conductors who shape the sound of the orchestra. ...
    (rec.music.classical.recordings)

Loading