File: liquid_linker_test.c

package info (click to toggle)
liquid-dsp 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,216 kB
  • sloc: ansic: 115,859; sh: 3,513; makefile: 1,350; python: 274; asm: 11
file content (21 lines) | stat: -rw-r--r-- 615 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// test linking to liquid after library has been installed
#include <stdio.h>
#include <stdlib.h>
#include <liquid/liquid.h>

int main()
{
    // test liquid version number
    printf("checking installed liquid version numbers...\n");
    printf("  header  : 0x%.6x\n", LIQUID_VERSION_NUMBER);
    printf("  library : 0x%.6x\n", liquid_libversion_number());
    LIQUID_VALIDATE_LIBVERSION;

    // create object, print and return
    printf("creating test object...\n");
    resamp_crcf q = resamp_crcf_create(0.12345f, 12, 0.25f, 60.0f, 256);
    resamp_crcf_print(q);
    resamp_crcf_destroy(q);
    return 0;
}