Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor valexey's Avatar
    Join Date
    Sep 2008
    Posts
    116
    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 adhilu's Avatar
    Join Date
    Jan 2006
    Posts
    5
    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. G711 codec & rtp
    By valexey in forum Russian Developer Forum - Форум Российских разработчиков
    Replies: 3
    Last Post: 2008-10-30, 09:41
  2. 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
  3. GPRS connection problems on 6600..
    By suckho in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2005-12-02, 14:00
  4. 6600 gprs 发送大量rtp延时问题
    By dicson_hu in forum Symbian
    Replies: 9
    Last Post: 2005-11-04, 02:12
  5. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved