Join Today
+ Reply to Thread
Results 1 to 6 of 6
  1. Default Using camera, speaker, or microphone

    Has anyone used the camera, speaker, or microphone in there c++? I just got an A780 and wrote a quick and dirty little program on the phone. My next trick is to record something from the microphone and play it out of the speakers. Anyone have any ideas on how to do this? Headers to look at?

    Thanks

  2. #2

    Default Re: Using camera, speaker, or microphone

    i haven't used the camera yet but the speakers and mic are pretty easy. Alebm was the guy who helped me out, if you are interested in some source code check out the source for the audanalyzer applet here http://www.motorolafans.com/index.ph...ewtopic&t=2478 .

    After you untar the package look through the source file labeled mls_ir_est.cpp, it contains the sound calls that deal with playing back and recording audio. (Note that for recording you can only use the monaural audio device which has Fs limited to 8 or 16 k)

  3. #3

    Default Re: Using camera, speaker, or microphone

    I managed to use microphone and speakers (using c, of course)

    The trick is the following:

    /dev/dsp can only do stereo, 8000 and 44100 Hz
    /dev/dsp16 only mono, 8000 Hz (iirc)

    both are 16-bit signed

    you can read from /dev/dsp16, you'll get raw audio
    you can write to /dev/dsp and dsp16, either in wav or raw.

    If you plug in your headphones, it will use them automatically. If you want to change output src, use ioctl:

    ioctl(/dev/mixer, SOUND_MIXER_WRITE_OUTSRC, HEADSET_OUT (mono) or LOUDERSPEAKER_OUT or EARPIECE_OUT or HEADJACK_OUT (stereo))

    the constants are defined in ezx-common.h in the e680 kernel files

    alebm posted an app that inspired me to find out those things...

    Kosta

  4. Default Re: Using camera, speaker, or microphone

    Thanks for the information! and the pointers on which headers to look in. Has anyone been able to dial a phone using c++ or answer a call? I was noticing the telephony.h in the include directory.

    Thanks

  5. #5

    Default Re: Using camera, speaker, or microphone

    no, but I havent tried either.

    You might be interested in this:
    http://handhelds.org/moin/moin.cgi/Gomunicator

    Also, I read somewhere that you can listen to the communication between the Application Processor (which runs linux) and the Baseband Processor (which makes phone calls). Unfortunately, I cannot find it atm

    Kosta

  6. Default Re: Using camera, speaker, or microphone

    "Also, I read somewhere that you can listen to the communication between the Application Processor (which runs linux) and the Baseband Processor (which makes phone calls). Unfortunately, I cannot find it atm "


    Looks like what you are talking about is ipclog see http://wiki.openezx.org/index.php/Software::AP::OpenEZX I think this has some promise


 
+ Reply to Thread

Similar Threads

  1. Replace Microphone?
    By wilkewhaq in forum A1200 General Chat
    Replies: 9
    Last Post: 07-26-2007, 10:12 PM
  2. Microphone problem
    By Rand in forum A1200 General Chat
    Replies: 2
    Last Post: 05-04-2007, 12:44 PM
  3. internal microphone problem
    By Bruceleroy in forum A1200 General Chat
    Replies: 2
    Last Post: 04-23-2007, 01:50 PM
  4. A1200 Speaker and Camera
    By lasdj in forum A1200 General Chat
    Replies: 8
    Last Post: 05-13-2006, 02:31 AM
  5. No microphone?
    By nomebug in forum A780 General Chat
    Replies: 2
    Last Post: 04-02-2006, 08:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1