Just do below:
2) You can update current.xml by executing the following commands:
p4 edit frameworks/base/api/current.xml
make update-api
when you 'vi frameworks/base/api/current.xml', you'll find the existing AMR
options, simulating them, adding qcelp field according to that you did in
MediaRecorder.java.
david
2009/5/4 chuan <[email protected]>
>
> Thanks David!
> I'm following what you suggest to do, but when I modify app code,
> error happened:
>
> I modify following files:
> ContentType.java (add AUDIO_QCP string)
> MessageUtils.java (modify ContentType.AUDIO_QCP)
> mediarecorder.h (add OutputFormat/AudioEncoder type)
> MediaRecorder.java (add OutputFormat/AudioEncoder type)
>
>
> when compile:
> (unknown): error 5: Added public field
> android.media.MediaRecorder.AudioEncoder.QCELP
> (unknown): error 5: Added public field
> android.media.MediaRecorder.OutputFormat.QCP
> ******************************
> You have tried to change the API from what has been previously
> approved.
>
> To make these errors go away, you have two choices:
> 1) You can add "@hide" javadoc comments to the methods, etc. listed
> in the
> errors above.
>
> 2) You can update current.xml by executing the following commands:
>
> p4 edit frameworks/base/api/current.xml
> make update-api
>
> To check in the revised current.xml, you will need OWNERS
> approval.
> ******************************
>
> target thumb C++: libpvgendatastruct <= external/opencore/baselibs/
> gen_data_structures/src/rtsp_range_utils.cpp
> make: *** [out/target/common/obj/PACKAGING/checkapi-current-timestamp]
> Error 38
>
> Have you met the issue? Is there any other file need modifed or these
> file cannot be modified like this?( I think these file need
> modifcation)
> I use opencore 2.02, and i think there is little change between 2.00
> and 2.02
>
>
>
> On May 4, 2:28 pm, david 1 <[email protected]> wrote:
> > So far, I've not made "test_pvauthorengine -test" work correctly, either.
> I
> > tested recording amr & encoding qcelp all based on the OpenCore-2.00.
> They
> > all work well.
> >
> > 'Record Audio' is just an App written in Java. You can find its source
> under
> > packages/apps/SoundRecorder. And as it's well known, the App just
> supports
> > encoding ARM default. You should modify it to meet your requirements by
> > SIMULATING the case of AMR. Additionally, there's a switcher to control
> the
> > current ContentType to record in
> > packages/apps/Mms/src/com/android/mms/ui/MessageUtils.java. Just modify
> the
> > func 'recordSound' to support qcelp also. In the file --
> > frameworks/base/media/java/android/media/MediaRecorder.java, there're
> > AudioOutput & AudioEncoder enums, please adding Qcelp respectively to
> them.
> > Above is the base & key work needing to do. The left is just to debug
> it
> > step by step till the end.
> >
> > If you want to try AMR only, do not modify anything. It should already
> > work well default.
> >
> > Maybe there's difference between 2.00 and 2.02. Just play it by ear.
> >
> > Finally, with 'logcat', you can find all info when testing your case,
> what
> > you need to do is just trace it & find the error & resolve it step by
> step.
> > You'll be sure to success.
> >
> > david
> >
> > 2009/5/4 chuan <[email protected]>
> >
> >
> >
> >
> >
> > > Hi David,
> > > Thank you for your quick reply.
> >
> > > 1. Now, omx encoder component is ready, and the encoder is sucessful
> > > registed into opencore(similar as other decoder component).
> > > If i want record into .qcp file, except pvmf_fileoutput
> > > related .cpp , what other code need to be modify?
> > > 2. I have try some test methods to record file, no one can work. as
> > > you mention the Record Audio in MMS seems doesn't work, i also try
> > > "test_pvauthorengine -test"
> > > command to test. Would you kindly provide me a useful way to test
> > > (first record .amr file,then record .qcp file) ?
> >
> > > i read your other post that you met "test_pvauthorengine -test"
> > > problem before , how did you get through?
> >
> > > On May 4, 11:21 am, david 1 <[email protected]> wrote:
> > > > Basically, what you need to do is create a OMX node for QCELP
> encoder
> > > and
> > > > make it be registered in OpenCore, at this moment, many files are
> > > referred,
> > > > e.g. pv_omxcore.cpp, pv_omxregistry.cpp and so on. And as outputting
> is
> > > > concerned, pvmf_fileoutput_inport.cpp, pvmf_fileoutput_node.cpp
> should
> > > also
> > > > be modified to support qcelp. All in one word, you can do it by
> > > simulating
> > > > AMR. And by tracing the log, try, try and try... While, no composer
> is
> > > > needed at this moment.
> >
> > > > To test video encoding, one selection is to use the existing App
> which is
> > > > one of the attachments of Mms.
> >
> > > > david
> >
> > > > 2009/5/4 chuan <[email protected]>
> >
> > > > > Hi David,
> > > > > I'm trying to test audio encoder in opencore 2.02, and i think
> you
> > > > > may help me out with this.
> > > > > Similar to you, I need to test qcelp encoder in opencore 2.02, by
> > > > > you experience, what need to be done with this?
> > > > > Need i implement a composer if i only want it recorded in qcp
> file?
> > > > > or i only need to modify some codes in the opencore framework ?(omx
> > > > > qcelp encoder is already done )
> >
> > > > > And, how did you do video recording work ? using which app?
> >
> > > > > On Apr 26, 4:31 pm, david <[email protected]> wrote:
> > > > > > hi all,
> >
> > > > > > I just experienced the video recording on G1 based on the
> system.img
> > > > > > of android-1.0. The process just lasts about 3 seconds, then
> blocks.
> > > > > > And the generated file is empty. What's the matter? Doesn't this
> > > > > > version support video recording, yet? If not, will the
> OpenCore-2.01
> > > > > > or 2.02 in Android-1.5 support it? Thanks a lot.
> >
> > > > > > (I've post this message at android-developers, and I'm advised to
> > > move
> > > > > > it here.)
> >
> > > > > > david- Hide quoted text -
> >
> > > > - Show quoted text -- Hide quoted text -
> >
> > - Show quoted text -
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---