Hi,<br>
<br>
I think those options are good, but i didn't create empty project.<br>
I just tick export symbols, and by this way i had DllMain(...) and some other stuff in my main cpp file,<br>
and also example of exported function and variable.<br>
<br>
after that, you have to create a .def file : (i think it's as well in Microsoft link)<br>
- add a new item, select Code under Categories, and then select Module Definition File under Templates.<br>
- Type XXXX.def as the name of the module definition file, and then click Add<br>
- Add the following two lines to the XXXX.def file after the line containing LIBRARY ."XXXX".<br>
EXPORTS<br>
your_fct<br>
<br>
- Modify the XXXX.h file by changing the following code: <br>
XXXX_API int your_fct(void);<br>
to: extern "C" XXXX_API int your_fct(void);<br>
<br>
next step is to include the folders of speex src, .....<br>
in your dll properties :<br>
- in C/C++ -> General. "additionnal include
directories" ..\speex-1.1.12\include ; ..\speex-1.1.12\libspeex<br>
- in Linker -> General. "additionnal librairy directories" ..\speex-1.1.12\win32\libspeex\debug<br>
- in Linker -> input . "additionnal dependencies" libspeex.lib<br>
<br>
<br>
i also modified i little speex folder :<br>
in the original archive, in "include" folder, there is only speex folder and 2 Makefile.XX<br>
i had need to create one file in "include" folder for one file in "speex" folder.<br>
so i created .../include/speex.h because there is .../include/speex/speex.h<br>
i this file, i just write #include "speex/speex.h"<br>
(i'm sure it's not clear enough so let me explain with a beautiful schema)<br>
<br>
here is the arborescence before :<br>
speex-1.1.12<br>
| <br>
\---include<br>
<a href="http://Makefile.in">Makefile.in</a><br>
<a href="http://Makefile.an">Makefile.an</a><br>
\---speex<br>
speex.h<br>
speex_bits.h<br>
...<br>
...<br>
<br>
here is the arborescence after :<br>
speex-1.1.12<br>
| <br>
\---include<br>
speex.h
<---- in this file : #include "speex/speex.h"<br>
speex_bits.h <---- in this file :
#include "speex/speex_bits.h"<br>
...<br>
...<br>
<a href="http://Makefile.in">Makefile.in</a><br>
<a href="http://Makefile.an">Makefile.an</a><br>
\---speex<br>
speex.h<br>
speex_bits.h<br>
...<br>
...<br>
<br>
Do you understand me ?<br>
Let me know if you still have issue with this dll.<br>
<br>
<br>
<br>
about fmod, i tried using it, and i got some sound but it was very crappy.<br>
And i prefere to use microsoft wave API, because it's more corresponding of what i need.<br>
Do you have knowledge about that to help me ?<br>
<br>
what i would like to do is to record few ms, let say 10ms, encode it with speex, send it, and do it again till i stop the call.<br>
apparently, i have some trouble with the callback (it's call when a buffer is full).<br>
so i use waveInUnprepareHeader(..), i copy the data in a big buffer and
i run waveInPrepareHeader(..) and waveInAddBuffer(..) another time for
another record.<br>
when my big buffer is full, i try to play it but there is no sound or just crrcrr..?§,!<br>
<br>
idea ?<br>
<br>
<br>
Pat.<br>
<br>
<br>
<br>
<br>
2006/6/27, JM <<a href="mailto:majemi00@students.oamk.fi">majemi00@students.oamk.fi</a>>:<br>
<br>
Hi Patrick and thanks for helping out, I was able to create libspeex.lib<br>
already.<br>
<br>
Could you help me more with creating speex.dll? I also use VS2005, but I<br>
write my application with c++.<br>
<br>
I created new project (speexDLL):<br>
Win32 Smart Device Project,<br>
Application type: DLL,<br>
Additional options: Export symbols, Empty project.<br>
<br>
Are those options ok? What should I do next? Should there be Main function<br>
in this dll project? Should I add all files to my project from<br>
speex-1.1.12 folder under include, libspeex and src folders?<br>
<br>
Did you do it exactly as it is showed by Microsoft (Managed Debugging:<br>
Debugging Interop Projects)?<br>
<br>
Did you tried using fmod allready?<br>
<br>
-Jere-<br>
<br>
<br>
<br>
<br>
patrick andrieux <<a href="mailto:patrick.andrieux@gmail.com">patrick.andrieux@gmail.com</a>> kirjoitti Fri, 23 Jun 2006<br>
12:54:24 +0300:<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<br>
> directories"<br>
><br>
<br>
<br>
<br>