Re: Problem retrieving WAVEHDR using USB Audio driver, wince 6.0 Media player

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks for your feedback.

I am playing 16-bit sample. The wav files (that I am playing using ce
media player) are simple audio files taken from PB 6.0 i.e. ring.wav,
exclaim.wav, stop.wav, busy.wav, waiting.wav etc. I have converted
these default files [Audio Sample size: 8 bit, Audio Sample rate:
11KHz)] into [Audio sample rate: 48KHz, Audio Sample Size:16 bit,
Channels 1 (mono)/ 2 (Stereo)] using winxp sound recorder application.
I am using these files to be played using ce media player in CEPC.

The lpData field of WaveHdr that I receive is NULL.

One more thing i want to note is that I am not implementing
WODM_GETEXTDEVCAPS. I am keeping it as Not supported. Would it affect
any processing?

Thanks.

On Nov 6, 3:11 pm, "R. de Gravelaine" <g_r_a_v_e_l_a_i_n...@aton-
sys.fr> wrote:
Hi,

I have no idea of what can happen with your WAVEHDR.

Is the lpData field NULL or are the data you receive all 0x00?
Are you playing 16-bit samples? If so, 0x0000 is just a silence and
depending on what you are playing, this may be a normal behaviour.
Did you check all the buffers you receive for non-zero values?

Why don't you try to play simplest known wave files such as the one used
in the Volume & Sounds Control Panel applet? The first test I always
make is to run this applet, enable the checkboxes and then click on the
Loud arrow: this should produce a short, disgracious but clear sound.

Remi

Puneet A. a écrit :



Thanks Mr. Remi for your feedback. After updating registry entries for
SoftwareMixer suggested by you, I am able to receive open request
properly with 48000 Hz sample rate. [During Wodm_Open the upper layer
ask for 48000 Hz and my usb audio driver answers with 48000 Hz]

However during the WODM_WRITE processing [using wince media player],
WAVEHDR is still receiving inapproriate value i.e. pWaveHdr->lpData is
having value 0x00.
Could you please suggest me how can i get proper WAVEHDR? Am I missing
something?
Thank you for your anticipation in advance.

On Nov 5, 3:18 pm, "R. de Gravelaine" <g_r_a_v_e_l_a_i_n...@aton-
sys.fr> wrote:
Hi,

Windows CE does support 48000 Hz sample rate.

You'll find some answers athttp://msdn.microsoft.com/en-us/library/ee483245.aspx.

Just change the AC44 (44100) SampleRate value to BB80 (48000):

[HKEY_LOCAL_MACHINE\Audio\SoftwareMixer]
     "SampleRate"=dword:BB80

and your driver will receive open requests accordingly.

HTH
Remi- Hide quoted text -

- Show quoted text -

.



Relevant Pages

  • RE: Media Player 11 wont play .avi or .mpg files
    ... I have Windows Vista Premiun and there is no Audio file folder. ... Media Player 11 stopped playing avi and mpg files in my Vista 64. ... Error message has of course that link ...
    (microsoft.public.windowsmedia.player)
  • My CD drive isnt playing an audio CD
    ... I have a Windows Media player on my desktop, ... typically, when I insert an audio CD, the Media Player p ... pops up and begins playing the CD. ... audio CD, and the drive indicator light blinked about six ...
    (microsoft.public.windowsmedia.player)
  • Re: Video not available on my media player 9
    ... I am having problem with my media player 9 I am getting only audio when i am ... playing a video file.Ifcat mine was media player 11 and was having this ... Try Vista Codec pack, it contains audio and video decoders for many, many different formats. ...
    (microsoft.public.multimedia.windows.mediaplayer)
  • media player connects to the net instead of playing a file
    ... whenever i put in a audio cd to play it or play an audio ... file saved on my hard drive, the media player instead of ... playing it connects to the internet. ...
    (microsoft.public.win2000.multimedia)
  • Jon Ds 2 audio clips for our esteemed perusal
    ... This is in response to a thread that Jon started on December 18 titled "2 audio clips for your esteemed perusal" I finally got around to playing with the unprocessed mp3 a little. ... can make things sound thin and distant, but compression and limiting can ...
    (rec.music.makers.guitar.jazz)