Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: How to get audio data from microphone on pocketPC ?: msg#00057

audio.compression.speex.devel

Subject: Re: How to get audio data from microphone on pocketPC ?

Hi,

I think those options are good, but i didn't create empty project.
I just tick export symbols, and by this way i had DllMain(...) and some other stuff in my main cpp file,
and also example of exported function and variable.

after that, you have to create a .def file : (i think it's as well in Microsoft link)
 - add a new item, select Code under Categories, and then select Module Definition File under Templates.
 - Type XXXX.def as the name of the module definition file, and then click Add
 - Add the following two lines to the XXXX.def file after the line containing LIBRARY ."XXXX".
                 EXPORTS
                  your_fct

 - Modify the XXXX.h file by changing the following code:   
                 XXXX_API int your_fct(void);
to:             extern "C" XXXX_API int your_fct(void);

next step is to include the folders of speex src, .....
in your dll properties :
   - in C/C++ -> General. "additionnal include directories"  ..\speex-1.1.12\include ; ..\speex-1.1.12\libspeex
   - in Linker -> General. "additionnal librairy directories" ..\speex-1.1.12\win32\libspeex\debug
   - in Linker -> input . "additionnal dependencies" libspeex.lib


i also modified i little speex folder :
in the original archive, in "include" folder, there is only speex folder and 2 Makefile.XX
i had need to create one file in "include" folder for one file in "speex" folder.
so i created .../include/speex.h because there is .../include/speex/speex.h
i this file, i just write #include "speex/speex.h"
(i'm sure it's not clear enough so let me explain with a beautiful schema)

here is the arborescence before :
speex-1.1.12
|  
\---include
          Makefile.in
          Makefile.an
    \---speex
            speex.h
            speex_bits.h
            ...
             ...

here is the arborescence after :
speex-1.1.12
|  
\---include
        speex.h             <---- in this file : #include "speex/speex.h"
        speex_bits.h      <---- in this file : #include "speex/speex_bits.h"
         ...
         ...
          Makefile.in
          Makefile.an
    \---speex
            speex.h
            speex_bits.h
            ...
             ...

Do you understand me ?
Let me know if you still have issue with this dll.



about fmod, i tried using it, and i got some sound but it was very crappy.
And i prefere to use microsoft wave API, because it's more corresponding of what i need.
Do you have knowledge about that to help me ?

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.
apparently, i have some trouble with the callback (it's call when a buffer is full).
so i use waveInUnprepareHeader(..), i copy the data in a big buffer and i run waveInPrepareHeader(..) and waveInAddBuffer(..) another time for another record.
when my big buffer is full, i try to play it but there is no sound or just crrcrr..?§,!

idea ?


Pat.




2006/6/27, JM <majemi00@xxxxxxxxxxxxxxxx>:

    Hi Patrick and thanks for helping out, I was able to create libspeex.lib
    already.

    Could you help me more with creating speex.dll? I also use VS2005, but I
    write my application with c++.

    I created new project (speexDLL):
    Win32 Smart Device Project,
    Application type: DLL,
    Additional options: Export symbols, Empty project.

    Are those options ok? What should I do next? Should there be Main function
    in this dll project? Should I add all files to my project from
    speex-1.1.12 folder under include, libspeex and src folders?

    Did you do it exactly as it is showed by Microsoft (Managed Debugging:
    Debugging Interop Projects)?

    Did you tried using fmod allready?

    -Jere-




    patrick andrieux <patrick.andrieux@xxxxxxxxx> kirjoitti Fri, 23 Jun 2006
    12:54:24 +0300:
    >
    > Basically, In my GUI in C#, i import the functions i wrote in my dll
    > and in my dll, i call the speex's functions.
    >
    > For creating C++ dll for ppc, you'll maybe need this link :
    > http://msdn.microsoft.com/library/default.asp?url=""
    >
    > in your speex.dll properties you have to add :
    >  - linker/input, add libspeex.lib in "additional dependencies"
    >  - C/C++/General, add the path to speex source in "additional include
    > directories"
    >



_______________________________________________
Speex-dev mailing list
Speex-dev@xxxxxxxx
http://lists.xiph.org/mailman/listinfo/speex-dev
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation