Hi,
I am trying to use VAS to send/receive data. The DnLink and UpLink codec initialization is going perfect and the loopback example worked as well. I did some changes, but the problem is that EmptyBuffer is being called only once and then FillBuffer is called as long as the application is running. Code snippet:
I am using ILBC Codec and the Buffer size i get is 40. What am i doing wrong here. I previously used the DoLookBack function that is in the original example and things were working fine, but why is that it is not working this way? Also i thought that maybe iPlayBufPtr's length and maxsize are wrong or something, so i copied the structure of a "Filled" iRecBufPtr once and still it didnt work. What is the problem here?Code:void CVoIPTestEngine::EmptyBuffer(const CVoIPAudioUplinkStream& /*aSrc*/, CVoIPDataBuffer* aBuffer) { DEBPRN0(_L("CVoIPTestEngine::[0x%x]::EmptyBuffer :>")); aBuffer->GetPayloadPtr(iRecBufPtr); //GIVE DATA TO SEND iCallBack.giveDATA(iRecBufPtr); iVoIPUplink->BufferEmptied(aBuffer); } void CVoIPTestEngine::FillBuffer(const CVoIPAudioDownlinkStream& /*aSrc*/, CVoIPDataBuffer* aBuffer) { DEBPRN0(_L("CVoIPTestEngine::[0x%x]::FillBuffer")); aBuffer->GetPayloadPtr(iPlayBufPtr); //GET RECEIVED DATA iCallBack.getDATA(iPlayBufPtr); iPlayBuf->SetPayloadPtr(iPlayBufPtr); iVoIPDnlink->BufferFilled(iPlayBuf); }



