×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    10

    how to make unlimited recording of audio?

    hello

    i want to make permanent recording from MIC and permanent sending of recorded samples over network.

    But i do not see way for that..
    Is it ever possible? Maybe someone meet this problem?

    I made my class based on StreamOutput and overrided all "write" functions.

    But i see that "write" functions are not called until i do RecordControl.commit()

    So i cannot get samples data until i stop recording?

    I am trying in J2ME Wireless Toolkit emulator.
    Anyway it behaves strange.

    Is any emulator which correctly executes audio recording and playback?

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: how to make unlimited recording of audio?

    You have to record the audio in pieces and send those pieces separately in another thread.

    Hartti

  3. #3
    Registered User
    Join Date
    Apr 2007
    Location
    Malaysia
    Posts
    1

    Smile Re: how to make unlimited recording of audio?

    Quote Originally Posted by hartti
    You have to record the audio in pieces and send those pieces separately in another thread.

    Hartti
    Ya.I agree what Hartti say
    www.chinachefchertsey.co.uk | www.le-beauty.com | www.sarawak-craft.com | www.golfonline2u.com

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    10

    Re: how to make unlimited recording of audio?

    hey!! it's me again with my question!!
    i cannot agree with You!!!

    i can imagine i create 2 players for recording and when 1st recorder stops i can start 2nd recorder - but between these stop and start events time elapsed and i can expect that i miss some samples - and for sure in this time noise will be hearable.

    Sound recorder in this way will be choppy.
    It is very bad solution.

    Is any other and better solutions?

    I cannot understand why API has no some cyclic buffers - it is very simple and solves all problems :-(

    Or solution could be if API could have function similar to "commit" but which does not stops recorder.
    In this case i could call "commit" by timer and get portions of ready samples.

  5. #5
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,559

    Re: how to make unlimited recording of audio?

    Quote Originally Posted by NickKovach
    hey!! it's me again with my question!!
    i cannot agree with You!!!

    i can imagine i create 2 players for recording and when 1st recorder stops i can start 2nd recorder - but between these stop and start events time elapsed and i can expect that i miss some samples - and for sure in this time noise will be hearable.

    Sound recorder in this way will be choppy.
    It is very bad solution.

    Is any other and better solutions?

    I cannot understand why API has no some cyclic buffers - it is very simple and solves all problems :-(

    Or solution could be if API could have function similar to "commit" but which does not stops recorder.
    In this case i could call "commit" by timer and get portions of ready samples.
    I believe that what hartti meant was not two recorders, but one single recorder, but the recording and buffering takes place in one thread, while another thread takes care of sending the buffered packet and clearing the buffer which is sent.

    Logically this seems fine to me. And as far as the time between threads when the second thread is running, I guess thats the overhead that you might have to live with

Similar Threads

  1. Nokia 6600 will not support audio recording with MMAPI?
    By Mito1982 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 7
    Last Post: 2011-02-21, 03:51
  2. [Pys60, 3rd Ed.] build problems
    By MHOOO in forum Symbian
    Replies: 3
    Last Post: 2007-04-09, 19:00
  3. Recording Audio in file using CMdaAudioRecordUtility in S60 V3
    By gpalvia in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2006-08-15, 10:40
  4. Half Duplex Audio Streaming
    By subhrajyotisaha in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-05-25, 04:39
  5. Audio Recording failure in CropL
    By ashalu2 in forum Symbian
    Replies: 2
    Last Post: 2004-06-30, 08:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×