×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    116

    Question G711 codec & rtp

    I receive 20-ms G711 frame (160 byte), add 2 byte header and push it ti ASP-queue.

    There is src (yep, it is ugly):
    Code:
        TUint8 buf[162];
        buf[0]=0x01;
        buf[1]=0x00;
        for (int i=0; i<160; i++)
        {
            buf[i+2]=aPayloadData[i];
        }
        TPtr8 frame(buf,162);
    
        TAPSCommBuffer RTPbuffer;
        RTPbuffer.iBuffer.Copy(frame);
        outQueue->Send(RTPbuffer); // RMsgQueue<TAPSCommBuffer>* outQueue;
    There is no sound. And after some time application crashs.

    What's wrong?

    PS. I test it on E65 device.

  2. #2
    Registered User
    Join Date
    Jan 2006
    Posts
    5

    Arrow Re: G711 codec & rtp

    Hi,

    I was also facing the same problem, but i am using the following code snippet

    TUint8 buf[2];
    buf[0]=0x01;
    buf[1]=0x00;
    RTPbuffer.iCommand = EAPSPlayData;
    RTPbuffer.iStatus = KErrNone;
    RTPbuffer.iBuffer.Append(buf,2);
    RTPbuffer.iBuffer.Append(aPayloadData);

    Now i can hear the audio clearly at receiving end

    Use the above code snippet on adding 2-byte header to the payload, this works for me atleast.
    Last edited by adhilu; 2009-02-11 at 22:21. Reason: found a correction and fix

Similar Threads

  1. suckho, i have encontered the same problems. Could you tell me how you resolved it?
    By dicson_hu in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2005-12-09, 10:56
  2. GPRS connection problems on 6600..
    By suckho in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2005-12-02, 14:00
  3. Nokia 6600 Socket Server send delay Problem
    By dicson_hu in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-31, 07:37

Posting Permissions

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