OOT: salut buat suhompongg....

by ayip s » Sat, 26 Jun 2010 14:44:08 GMT


Sponsored Links
 Waah kemarin katanya pake daster? Wkwkwk

Dipaketin Langsung dari Nexus1




-- 
"



Other Threads

1. Issues while loading native .so files from JNI

Hi Naveen,

Thanks for the reply.
I have already mentioned both abc.so and xyz.so as dependencies libs for
jni.so.
I suppose without mentioning this my jni.so itself would not get generated.
But still I get the mentioned error.
I think there something more to it than just mentioning the dependencies.

Thanks
APT


On Wed, Apr 22, 2009 at 5:45 PM, Naveen Krishna Ch <




--~--~---------~--~----~------------~-------~--~----~

2. AudioRecord can't get any notification when record/marker position updated

hello everyone,
I would like to use the new AudioRecord class to record in PCM format.
Create class and setRecordPositionUpdateListener to it, then start
recording, I can't get any notification from system forever,why?(I
didn't get any error when running)

please help me, thanks.

the next is my code.

public class Recorder {
        private static final int AUDIO_SAMPLE_FREQ = 8000;
        private static final int AUDIO_BUFFER_SIZE = 200000;

        private AudioRecord recorder;

        public Recorder()
        {
                try
                {
                        // init recorder
                        recorder = new 
AudioRecord(MediaRecorder.AudioSource.MIC,
                                        AUDIO_SAMPLE_FREQ,
                                        AudioFormat.CHANNEL_CONFIGURATION_MONO,
                                        AudioFormat.ENCODING_PCM_16BIT,
                                        AUDIO_BUFFER_SIZE);
                }
                catch (IllegalArgumentException e)
                {
                       e.printStackTrace();
                }

                recorder.setRecordPositionUpdateListener(mNotification);
                recorder.setPositionNotificationPeriod(50);
                recorder.setNotificationMarkerPosition(AUDIO_SAMPLE_FREQ);
        }

        public OnRecordPositionUpdateListener mNotification = new
                OnRecordPositionUpdateListener(){
                public void onMarkerReached(AudioRecord arg0) {
                        // read PCM buffer here
                        byte[] audioBuffer = new byte[AUDIO_SAMPLE_FREQ];
                        arg0.read(audioBuffer, 0, AUDIO_SAMPLE_FREQ);
                }

                public void onPeriodicNotification(AudioRecord arg0) {
                        // read PCM buffer here
                        byte[] audioBuffer = new byte[AUDIO_SAMPLE_FREQ];
                        arg0.read(audioBuffer, 0, AUDIO_SAMPLE_FREQ);
                }

        public void StartRecord()
        {
                recorder.startRecording();
        }

        public void StopRecord()
        {
                recorder.stop();
        }

        public void ReleaseRecord()
        {
                recorder.release();
        }

};

--~--~---------~--~----~------------~-------~--~----~

3. changing language on demand?

4. Regarding RSS Feeds

5. How to get the wedgit property

6. how to check resolution of a Image

7. Is it possible to have a view that is transformed by a matrix?