As Christian Graus says, without knowing what WaveLib is, we really can't help.
This is just a hunch, but the magic number 16384 is repeated in you code,
have you tried something like this
constint Size = 16384; // I think this might be a read or write buffer size of some sort and might be better called "BufferSize"privatevoid Start()
//I'd also consider abtracting out the bit rate(44100) and whatever the value 16, 2, 3 and -1 represent out as constants.
WaveLib.WaveFormat fmt = new WaveLib.WaveFormat(44100, 16, 2);
m_Player = new WaveLib.WaveOutPlayer(-1, fmt, Size , 3,
m_Recorder = new WaveLib.WaveInRecorder(-1, fmt, Size , 3,
r.Bind(new IPEndPoint(IPAddress.Any, int.Parse(this.textBox2.Text)));
br = new byte[Size];
m_Fifo.Write(br, 0, br.Length);
//This loop is infinite unless something throws.
Assuming this works you can then try changing the value of size to suit.
i build C# program on Windows-Mobile that connect to WebService through cradle
and work with ActiveSync.
the customer want me to change the program that the connection will be through IP cradle.
is it require me any code change ?
how to do it ?
thank's in advance
I know how to pass strings, numbers, and the like back and forth to the embedded WebBrowser in a Windows Form, using InvokeScript and ObjectForScripting, but how does one pass images back and forth into the embedded WebBrowser?
Images will be loaded in web browser whenever you mention proper path in img tag
Umm, I'm not trying to load images from the web or from the file system. I'm wanting to feed them from my desktop application into the embedded WebBrowser control. Basically, I'm trying to feed either an image object or a MemoryStream.
Using Base64 is a great suggestion. I'll try that. It should work as I believe that how images are being Marshalled through the COM interface is what is causing the problem. Strings marshal with no problems.
The embedded WebBrowser will not recognize the data scheme unless the user has IE8 installed, but sending the image as a base64 string should allow me to get the job done.
does anyone know how I can create buttons in the screen preview in C#?
With screen preview I mean the little screen you see when your pointer is on the program in the taskbar. Any idea's? Windows Media Player uses it, so it is possible.
Last Visit: 31-Dec-99 19:00 Last Update: 7-Dec-23 4:14