Re: WaveOutWrite and Sockets
- From: "Black_angel" <Blackangel@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 20 Apr 2005 22:25:01 -0700
hello,
I haven't got any Pocket PC device, so I am developing with the PPC2003
emulator.
The call witch returns the parameter error is the "WaveOutWrite" function.
In the WaveOut.cs
there's a function called "Play" where, when I have a audio packet, playback
it.
At the begining, this function "WaveOutWrite" returns 0 (NOERROR) but then,
when 5'30"
(more or less) pass this function returns 11 (INVALPARAM) and the audio
doesn't playback any more.
It's not an exception, when this happens the application continues, but the
sound stops.
If you put a interruption point in the WaveOutWrite function in the debugger
you can see it.
If a packet doesn't arrive don't mind. In the code that you have, when I
send a packet
I cut it in two parts because the size is very long (more than 1500bytes),
and then, when
the 2 pieces arrive I join them.
Yesterday I used a lower format: 8000HZ 8bits 1 channel and with this format
the packet has
the size of 800bytes so I didn't cut the packet but the error appears too.
When I add a packet to the queue "ColaReproduccion.cs" I sort the ArrayList,
I should control
if the timestamp is higuer to not add it but at the moment I don't manage
that.
However,even if the audio is mix, the WaveOutWrite should playback it
(listening bad but
listening something) because the PCI format hasn't any compression codec.
If you have any other question, I'll be delighted to answer you.
Regards and thank you very much.
"Paul G. Tobey [eMVP]" wrote:
> And just to be sure, you 1) are *not* using the emulator and, 2) are *not*
> using ActiveSync as your network transport, right?
>
> Paul T.
>
> "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
> wrote in message news:e0M8aucRFHA.3928@xxxxxxxxxxxxxxxxxxxxxxx
> > That's fine. You must be using the Web interface to the newsgroup;
> > regular newsreaders allow attachments...
> >
> > I'm sorry, but I can't get it to build for Windows CE.NET and I have no
> > PPC devices. I need a higher-level description of what's supposed to be
> > happening. What call EXACTLY returns the parameter error? What other
> > information is included in the exception? How are you handling the case
> > where a UDP packet is sent, but never arrives? Can packets be handled
> > when they arrive in a different order than they were sent?
> >
> > Paul T.
.
- Follow-Ups:
- Re: WaveOutWrite and Sockets
- From: Paul G. Tobey [eMVP]
- Re: WaveOutWrite and Sockets
- References:
- WaveOutWrite and Sockets
- From: Black_angel
- Re: WaveOutWrite and Sockets
- From: Paul G. Tobey [eMVP]
- Re: WaveOutWrite and Sockets
- From: Black_angel
- Re: WaveOutWrite and Sockets
- From: Paul G. Tobey [eMVP]
- Re: WaveOutWrite and Sockets
- From: Black_angel
- Re: WaveOutWrite and Sockets
- From: Paul G. Tobey [eMVP]
- Re: WaveOutWrite and Sockets
- From: Paul G. Tobey [eMVP]
- WaveOutWrite and Sockets
- Prev by Date: Re: exception in InitializeComponent of form
- Next by Date: Re: OpenNetCF cab confusion
- Previous by thread: Re: WaveOutWrite and Sockets
- Next by thread: Re: WaveOutWrite and Sockets
- Index(es):
Relevant Pages
|