Re: WaveOutWrite and Sockets
- From: "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
- Date: Thu, 21 Apr 2005 08:34:48 -0700
You can't use datagrams and the emulator reliably in my experience. UDP
support in the interface layer between the emulator and the host system is
spotty. You must use a real device for this sort of code. I think that
you'll probably find that, other than the lack of reliable delivery and lack
of serialization in UDP, running on the device will probably work fine. You
*have* considered the fact that a UDP packet can be sent but not ever
arrived, right? And you *have* considered the fact that two UDP packets
sent in order, 1 then 2, may arrive at the client in the reverse order, 2
then 1, right?
Paul T.
"Black_angel" <Blackangel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:50082AED-667F-41DA-A216-48C2A1ABACB0@xxxxxxxxxxxxxxxx
> 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: Black_angel
- 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]
- Re: WaveOutWrite and Sockets
- From: Black_angel
- WaveOutWrite and Sockets
- Prev by Date: Re: Check if any app is running in VB .NET
- Next by Date: Device Emulator Error
- Previous by thread: Re: WaveOutWrite and Sockets
- Next by thread: Re: WaveOutWrite and Sockets
- Index(es):
Relevant Pages
|