You Are Here:

Community: Developer Discussion Boards

#1 Old how to make unlimited recording of audio? - 2007-04-19, 13:58

Join Date: Dec 2006
Posts: 10
NickKovach
Offline
Registered User
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?
Reply With Quote

#2 Old Re: how to make unlimited recording of audio? - 2007-04-19, 23:09

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
You have to record the audio in pieces and send those pieces separately in another thread.

Hartti
Reply With Quote

#3 Old Smile Re: how to make unlimited recording of audio? - 2007-04-20, 06:24

Join Date: Apr 2007
Posts: 1
Location: Malaysia
Keyin's Avatar
Keyin
Offline
Registered User
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
Reply With Quote

#4 Old Re: how to make unlimited recording of audio? - 2007-04-20, 07:10

Join Date: Dec 2006
Posts: 10
NickKovach
Offline
Registered User
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.
Reply With Quote

#5 Old Re: how to make unlimited recording of audio? - 2007-04-20, 10:28

Join Date: Oct 2006
Posts: 2,536
Location: Helsinki, Finland
Symbian_Neil's Avatar
Symbian_Neil
Offline
Forum Nokia Champion
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 ;)


- Neil R.Bhasme -
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
[Pys60, 3rd Ed.] build problems MHOOO Python 3 2007-04-09 20:00
Recording Audio in file using CMdaAudioRecordUtility in S60 V3 gpalvia Symbian Media (Graphics & Sounds) 6 2006-08-15 11:40
Half Duplex Audio Streaming subhrajyotisaha Symbian Media (Graphics & Sounds) 0 2006-05-25 05:39
Nokia 6600 will not support audio recording with MMAPI? Mito1982 Mobile Java Media (Graphics & Sounds) 6 2006-03-09 02:56
Audio Recording failure in CropL ashalu2 General Symbian C++ 2 2004-06-30 09:22

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ