×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    56

    Smile loop recording mechanism without loss data

    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 13:29.

Similar Threads

  1. SIP calls over Packet data
    By thefamilyman in forum VoIP
    Replies: 8
    Last Post: 2010-04-27, 06:12
  2. What is the real problem to receive data calls with Nokia TDMA cel modems?
    By jackal_jr in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2002-12-09, 09:02
  3. What is the real problem to receive data calls with Nokia TDMA cell modem?
    By jackal_jr in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-12-04, 16:05
  4. Replies: 0
    Last Post: 2002-12-04, 15:46
  5. Internet Access Config via Smart Message
    By ajbrindley in forum Smart Messaging
    Replies: 1
    Last Post: 2002-08-14, 07:56

Posting Permissions

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