Hi jere, <br>
<br>
thanks for this link, i'll see if i can do something good with that.<br>
<br>
<br>
speex.dll : <br>
-----------<br>
I have a speex.dll which work, and i can encode and decode a wav file.<br>
(i used male.wav on <a href="http://speex.org">speex.org</a> for my test).<br>
But my dll is specific to my softphone. <br>
In fact i just include speex.h and i call speex functions for [en;de]coding.<br>
My code is based on speex website's sample : <br>
<a href="http://www.speex.org/manual2/node12.html">http://www.speex.org/manual2/node12.html</a><br>
<br>
Basically, In my GUI in C#, i import the functions i wrote in my dll<br>
and in my dll, i call the speex's functions.<br>
<br>
For creating C++ dll for ppc, you'll maybe need this link : <br>
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/device_debug_vs2005.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/device_debug_vs2005.asp</a><br>
<br>
in your speex.dll properties you have to add :<br>
- linker/input, add libspeex.lib in "additional dependencies"<br>
- C/C++/General, add the path to speex source in "additional include directories" <br>
<br>
<br>
<br>
libspeex.lib : <br>
--------------<br>
you can download lib for ppc on speex's website (ARMV4 release build (from 1.1.6 source)) : <br>
<a href="http://www.speex.org/olddownload.html">http://www.speex.org/olddownload.html</a><br>
but it's old version.<br>
<br>
or if you download the latest source code of speex here : <br>
<a href="http://www.speex.org/download.html">http://www.speex.org/download.html</a><br>
you could compile libspeex.lib for ppc.<br>
in directory "win32/libspeex" open the project with visual studio<br>
(i use visual studio 2005)<br>
<br>
in VS2005, choose buid/configuration manager<br>
in active solution platform, choose <new..><br>
then select smartphone (ARMV4)<br>
compile... normally you should have libspeex.lib in the debug directory.<br>
<br>
Patrick .<br><br><div><span class="gmail_quote">2006/6/23, Jere Malinen <<a href="mailto:majemi00@students.oamk.fi">majemi00@students.oamk.fi</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br><br>You should try using fmod(<a href="http://www.fmod.org">www.fmod.org</a>) for recording. You need fmodce for<br>pocketpc, and there is recording sample included. Also you should download<br>fmodex, because there is record to disk sample. I have developed
<br>application for pocket pc which records sound in a wav file.<br><br>My problem is that I have not been able to encode sound to speex in pocket<br>pc. So I have also question for you: do have working speex.dll and<br>speex.lib
for pocket pc? How did you do that? Could you send those files<br>to me?<br><br>-Jere-<br><br><br>> So i have make an GUI in C# that use the speex functions through dll<br>> write in C++.<br>> And the encoding and the decoding using speex seems to work not too
<br>> badly.(i test with a wave file)<br>><br>> My problem is that i need to get audio data from the microphone.<br>> In order to do that, i use the waveIn*** functions.<br>><br>> When i record in a big buffer in *ONE* time, i can play the sound
<br>> perfectly.<br>> (In this case, i only have one buffer and the callback function is not<br>> used)<br>><br>> But if i record in a small buffer (160 char) several times, and i copy<br>> each time this small buffer in a big buffer, it doesn't work !
<br>> I just can hear some bad sound.<br>> (in this case, i have several buffer, and when one of them is full,<br>> the callback is used to handle the data, and if i am still recording,<br>> i run another time the process using waveInAddBuffer(...) else nothing)
<br>><br>> I also tried to write these audio data in a file, but it doesn't work.<br>><br>> Thanks.<br>> Patrick<br></blockquote></div><br>