Re: Problem retrieving WAVEHDR using USB Audio driver, wince 6.0 Media player
- From: "Puneet A." <avasthi.puneet@xxxxxxxxx>
- Date: Mon, 9 Nov 2009 00:46:19 -0800 (PST)
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 -
.
- Follow-Ups:
- Re: Problem retrieving WAVEHDR using USB Audio driver, wince 6.0 Media player
- From: R. de Gravelaine
- Re: Problem retrieving WAVEHDR using USB Audio driver, wince 6.0 Media player
- References:
- Problem retrieving WAVEHDR using USB Audio driver, wince 6.0 Media player
- From: Puneet A.
- Re: Problem retrieving WAVEHDR using USB Audio driver, wince 6.0 Media player
- From: R. de Gravelaine
- Re: Problem retrieving WAVEHDR using USB Audio driver, wince 6.0 Media player
- From: Puneet A.
- Re: Problem retrieving WAVEHDR using USB Audio driver, wince 6.0 Media player
- From: R. de Gravelaine
- Re: Problem retrieving WAVEHDR using USB Audio driver, wince 6.0 Media player
- From: Puneet A.
- Re: Problem retrieving WAVEHDR using USB Audio driver, wince 6.0 Media player
- From: R. de Gravelaine
- Problem retrieving WAVEHDR using USB Audio driver, wince 6.0 Media player
- Prev by Date: Re: Hyperterminal for WinCE 4.2
- Next by Date: Re: Unidentifed crash on WinCE 6
- Previous by thread: Re: Problem retrieving WAVEHDR using USB Audio driver, wince 6.0 Media player
- Next by thread: Re: Problem retrieving WAVEHDR using USB Audio driver, wince 6.0 Media player
- Index(es):
Relevant Pages
|