Macros | Functions | Variables
porcupine_demo_file.c File Reference
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <dlfcn.h>
#include "dr_wav.h"
#include "pv_porcupine.h"
Include dependency graph for porcupine_demo_file.c:

Go to the source code of this file.

Macros

#define DR_WAV_IMPLEMENTATION
 

Functions

static void close_dl (void *handle)
 
static void * load_symbol (void *handle, const char *symbol)
 
int main (int argc, char *argv[])
 
static void * open_dl (const char *dl_path)
 
static void print_dl_error (const char *message)
 
void print_usage (const char *program_name)
 

Variables

static struct option long_options []
 

Macro Definition Documentation

◆ DR_WAV_IMPLEMENTATION

#define DR_WAV_IMPLEMENTATION

Definition at line 27 of file porcupine_demo_file.c.

Function Documentation

◆ close_dl()

static void close_dl ( void *  handle)
static

Definition at line 61 of file porcupine_demo_file.c.

◆ load_symbol()

static void* load_symbol ( void *  handle,
const char *  symbol 
)
static

Definition at line 47 of file porcupine_demo_file.c.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 102 of file porcupine_demo_file.c.

◆ open_dl()

static void* open_dl ( const char *  dl_path)
static

Definition at line 33 of file porcupine_demo_file.c.

◆ print_dl_error()

static void print_dl_error ( const char *  message)
static

Definition at line 75 of file porcupine_demo_file.c.

◆ print_usage()

void print_usage ( const char *  program_name)

Definition at line 98 of file porcupine_demo_file.c.

Variable Documentation

◆ long_options

struct option long_options[]
static
Initial value:
= {
{"library_path", required_argument, NULL, 'l'},
{"model_path", required_argument, NULL, 'm'},
{"keyword_path", required_argument, NULL, 'k'},
{"sensitivity", required_argument, NULL, 't'},
{"access_key", required_argument, NULL, 'a'},
{"wav_path", required_argument, NULL, 'w'}
}

Definition at line 89 of file porcupine_demo_file.c.

NULL
#define NULL
Definition: porcupine/demo/c/dr_libs/tests/external/miniaudio/extras/speex_resampler/thirdparty/resample.c:92


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:00