This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

User buffer is NOT contiguous



 

Hello,

           When i tried to run the application i am getting the error shown below.

@0x000a1954:[T:0x4001ebb0] ZZ - main> Welcome to app's main().
@0x000a1a86:[T:0x4001ebb0] ZZ - App-> Application started.
Successfully opened the engine = amrservercom
Successfully created the codec = amrenc
in the function Run Test
CMEM Error: getPhys: Failed to get physical address of 0x4002905f
@0x000af916:[T:0x4001ebb0] OM - Memory_getBufferPhysicalAddress> ERROR: user buffer at addr=0x4001ebb0, size=42160 is NOT contiguous
calling the process function
Error calling RANDGEN module:-1
sucessfully closed the engine
sucessfully deleted the codec

 

In my application i have allocated the memory using the  "Memory_contigAlloc" as shown below

static XDAS_Int8 *inbuf;
static XDAS_Int8 *outbuf;

        inbuf= (XDAS_Int8 *)Memory_contigAlloc(10*2, Memory_DEFAULTALIGNMENT);
        outbuf= (XDAS_Int8 *)Memory_contigAlloc(10*1, Memory_DEFAULTALIGNMENT);

        XDM1_SingleBufDesc speechinBuf;
        speechinBuf.bufSize = 10*sizeof(XDAS_Int8);
        speechinBuf.buf = (XDAS_Int8 *)inbuf;

        XDM1_SingleBufDesc speechoutBuf;
        speechoutBuf.bufSize = 10*sizeof(XDAS_Int8);
        speechoutBuf.buf = (XDAS_Int8 *)outbuf;

        int status;
        status = SPHENC1_process(enc,&speechinBuf,&speechoutBuf,(ISPHENC1_InArgs *)&inArgs, (ISPHENC1_OutArgs *) &outArgs);

Thank you,

raju.