You Are Here:

Community: Developer Discussion Boards

#1 Old Smile loop recording mechanism without loss data - 2008-10-14, 14:00

Join Date: Jun 2008
Posts: 53
mohhassan
Offline
Regular Contributor
Hi all,
I am work to record from microphone and send over network and playback in other site but recording mechanism loss some voice becuse the time bettween stopRecord and startRecord more than 100ms (average 177ms)

Code:
public void run(){
        try{ 
           recordBot1 = Manager.createPlayer("capture://audio?encoding=amr");           
           recordBot1.start();
           rcontrol = (RecordControl)recordBot1.getControl("RecordControl");            
           outStream = new ByteArrayOutputStream();                   
           while(true){             
             rcontrol.setRecordStream(outStream);  
             rcontrol.startRecord();                 
             Thread.currentThread().sleep(2000);
             rcontrol.commit();             
             dat[index++] = outStream.toByteArray();
             outStream.reset();
           }
        }catch(Exception e){
            printMessage("error: "+e.toString());
        }
    }
I am need to Recording mechanism without loss any data.
Thanks.
Last edited by mohhassan : 2008-10-14 at 14:29.
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
SIP calls over Packet data thefamilyman VoIP 7 2008-11-10 12:42
What is the real problem to receive data calls with Nokia TDMA cel modems? jackal_jr PC Suite API and PC Connectivity SDK 1 2002-12-09 10:02
What is the real problem to receive data calls with Nokia TDMA cell modem? jackal_jr PC Suite API and PC Connectivity SDK 0 2002-12-04 17:05
What is the real problem to receive data calls with Nokia modem phones? jackal_jr General Messaging 0 2002-12-04 16:46
Internet Access Config via Smart Message ajbrindley Smart Messaging 1 2002-08-14 08:56

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