shithub: soundpipe

ref: 9e1c37442af95a9f6040b0c1bbb697d92b332408
dir: /test/t/t_clamp.c/

View raw version
#include "soundpipe.h"
#include "md5.h"
#include "tap.h"
#include "test.h"

int t_clamp(sp_test *tst, sp_data *sp, const char *hash)
{
    uint32_t n;
    int fail = 0;

    /* allocate / initialize modules here */

    for(n = 0; n < tst->size; n++) {
        /* compute samples and add to test buffer */
        sp_test_add_sample(tst, 0);
    }

    fail = sp_test_verify(tst, hash);

    /* destroy functions here */

    if(fail) return SP_NOT_OK;
    /* fail by default */
    else return SP_NOT_OK;
}