Ignore:
Timestamp:
Mar 4, 2008 3:37:45 PM (14 years ago)
Author:
bennylp
Message:

More ticket #438: improve docs, added channel_count in wsola, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/test/wsola_test.c

    r1833 r1844  
    66#include <assert.h> 
    77 
    8 #define CLOCK_RATE          44100 
     8#define CLOCK_RATE          16000 
    99#define SAMPLES_PER_FRAME   (10 * CLOCK_RATE / 1000) 
    1010 
     
    8686    if (!out) return 1; 
    8787 
    88     pjmedia_wsola_create(pool, CLOCK_RATE, SAMPLES_PER_FRAME, 0, &wsola); 
     88    pjmedia_wsola_create(pool, CLOCK_RATE, SAMPLES_PER_FRAME, 1, 0, &wsola); 
    8989 
    9090    samples = 0; 
     
    201201    if (!out) return 1; 
    202202 
    203     pjmedia_wsola_create(pool, CLOCK_RATE, SAMPLES_PER_FRAME, 0, &wsola); 
     203    pjmedia_wsola_create(pool, CLOCK_RATE, SAMPLES_PER_FRAME, 1, 0, &wsola); 
    204204 
    205205    elapsed.u64 = 0; 
     
    320320    pj_caching_pool cp; 
    321321    pj_pool_t *pool; 
    322     int rc; 
     322    int i, rc; 
    323323 
    324324    //test_find_pitch(); 
     
    330330    srand(2); 
    331331 
    332     rc = expand(pool, "beet44.pcm", "output.pcm", 0, 0, 0); 
    333     //rc = compress(pool, "beet44.pcm", "output.pcm", 2); 
     332    rc = expand(pool, "galileo16.pcm", "temp1.pcm", 20, 0, 0); 
     333    rc = compress(pool, "temp1.pcm", "output.pcm", 1); 
     334 
     335    for (i=0; i<2; ++i) { 
     336        rc = expand(pool, "output.pcm", "temp1.pcm", 20, 0, 0); 
     337        rc = compress(pool, "temp1.pcm", "output.pcm", 1); 
     338    } 
    334339 
    335340    if (rc != 0) { 
Note: See TracChangeset for help on using the changeset viewer.