Re: WaveOutWrite and Sockets

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.

.



Relevant Pages

  • Re: WaveOutWrite and Sockets
    ... If a packet is sent but not arrives, at the moment, it doesnt mind me, ... there'll be a jump in the playback but it doesn't mind me. ... When a packet arrives, I add it in a queue and then I sort the queue using ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: marshalling socket buffer
    ... there is no guarantee that the full packet has ... packet arrives in multiple fragments. ... all unsafe code blocks here. ... >>unsafe public void MessageReceived(IAsyncResult ar) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: WaveOutWrite and Sockets
    ... You can't use datagrams and the emulator reliably in my experience. ... of serialization in UDP, running on the device will probably work fine. ... *have* considered the fact that a UDP packet can be sent but not ever ... >>> where a UDP packet is sent, but never arrives? ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Distibution List delivery
    ... The message is sent using UDP, ... so the only guarantee you have is that *if* the UDP packet ... ever arrives at the destination it will be intact. ... mailbox folder and then click again on the Inbox folder. ...
    (microsoft.public.exchange.admin)