Re: WaveOutWrite and Sockets
- From: "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
- Date: Wed, 20 Apr 2005 10:17:09 -0700
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.
>
> "Black_angel" <Blackangel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:4B9F189E-3C7B-448D-9085-0A229C2CCA41@xxxxxxxxxxxxxxxx
>>I don't know what to think because this is very strange...
>> I have done the sample. because of the fact that I don't know where send
>> the
>> sample I have uploaded to a web:
>>
>> http://www.reunionparalimpica.com/microsoft.zip
>>
>> if you need something more, please, answer.
>> Thank you very much.
>> Regards.
>>
>> "Paul G. Tobey [eMVP]" wrote:
>>
>>> And you don't think that the transport of data from one thread to the
>>> other
>>> is a more likely cause of the problem than the type of socket you're
>>> using.
>>> Send a small, complete, sample that reproduces the problem, including
>>> both
>>> the receive code (and how the buffers are appended, etc.), and the code
>>> to
>>> send the data to the wave calls, and we might have a chance...
>>>
>>> Paul T.
>>>
>>> "Black_angel" <Blackangel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>>> news:FBA65F70-B8B3-4A07-8411-89442F2BCAB0@xxxxxxxxxxxxxxxx
>>> > The wave call is in other Thread witch is the manager for taking
>>> > packets
>>> > from
>>> > the queue and it sends them to playback with the waveOutWrite
>>> > function.
>>> >
>>> >
>>> > "Paul G. Tobey [eMVP]" wrote:
>>> >
>>> >> Where's the wave call? If that's generating the invalid parameter
>>> >> error,
>>> >> it
>>> >> seems like we might want to look at it!
>>> >>
>>> >> Paul T.
>>> >>
>>> >> "Black_angel" <Blackangel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>>> >> news:771B2874-571F-4697-A44E-10855CBA3AA6@xxxxxxxxxxxxxxxx
>>> >> > Hello everybody,
>>> >> >
>>> >> > I'm developing an application witch receives voice from Sockets
>>> >> > and
>>> >> > playback it with the waveOutWrite function..
>>> >> > The problem is that when I receive datas during more than 5 minuts
>>> >> > (more
>>> >> > or less) the waveOutWrite function returns a INVALPARAM error.
>>> >> > The "ReceiveData" method is this:
>>> >> >
>>> >> > private byte[] message;
>>> >> > private byte[] message2;
>>> >> > private EndPoint endPointRemote;
>>> >> >
>>> >> > public byte[] ReceiveData()
>>> >> > {
>>> >> > sock.ReceiveFrom(message, ref endPointRemote);
>>> >> > sock.ReceiveFrom(message2, ref endPointRemote);
>>> >> > ....
>>> >> > //Join message and message2
>>> >> > return messagejoin;
>>> >> > }
>>> >> >
>>> >> > if I change the method for the next to do tests, it works fine:
>>> >> > public byte[] ReceiveData()
>>> >> > {
>>> >> > if(count==0)
>>> >> > {
>>> >> > sock.ReceiveFrom(message, ref endPointRemote);
>>> >> > sock.ReceiveFrom(message2, ref endPointRemote);
>>> >> > count=1;
>>> >> > }
>>> >> > else
>>> >> > {
>>> >> > Thread.Sleep(100);
>>> >> > }
>>> >> > ....
>>> >> > //Join message and message2
>>> >> > return messagejoin;
>>> >> > }
>>> >> > with this test I receive only a packet and I playback it all the
>>> >> > time.
>>> >> >
>>> >> > It seems that there's a memory problem, but I don't understand
>>> >> > because
>>> >> > I
>>> >> > use
>>> >> > global ids.
>>> >> >
>>> >> >
>>> >> > What can I do?
>>> >> > Do you think that if I use the UDPClient I'll have the same
>>> >> > problem?
>>> >> >
>>> >> > Regards.
>>> >> >
>>> >> >
>>> >>
>>> >>
>>> >>
>>>
>>>
>>>
>
>
.
- 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]
- WaveOutWrite and Sockets
- Prev by Date: Re: pInvoke question + string arrays
- Next by Date: Re: New application: compact framework 1.1 or 2.0?
- Previous by thread: Re: WaveOutWrite and Sockets
- Next by thread: Re: WaveOutWrite and Sockets
- Index(es):
Relevant Pages
|
Loading