Classes | Functions | Variables
wavrecord.c File Reference
#include "libfreenect.h"
#include "libfreenect_audio.h"
#include <stdio.h>
#include <signal.h>
Include dependency graph for wavrecord.c:

Go to the source code of this file.

Classes

struct  capture
 

Functions

void cleanup (int sig)
 
void in_callback (freenect_device *dev, int num_samples, int32_t *mic1, int32_t *mic2, int32_t *mic3, int32_t *mic4, int16_t *cancelled, void *unknown)
 
int main (int argc, char **argv)
 

Variables

int die = 0
 
static freenect_contextf_ctx
 
static freenect_devicef_dev
 
char wavheader []
 

Function Documentation

void cleanup ( int  sig)

Definition at line 68 of file wavrecord.c.

void in_callback ( freenect_device dev,
int  num_samples,
int32_t mic1,
int32_t mic2,
int32_t mic3,
int32_t mic4,
int16_t cancelled,
void *  unknown 
)

Definition at line 55 of file wavrecord.c.

int main ( int  argc,
char **  argv 
)

Definition at line 73 of file wavrecord.c.

Variable Documentation

int die = 0

Definition at line 34 of file wavrecord.c.

freenect_context* f_ctx
static

Definition at line 32 of file wavrecord.c.

freenect_device* f_dev
static

Definition at line 33 of file wavrecord.c.

char wavheader[]
Initial value:
= {
0x52, 0x49, 0x46, 0x46,
0x00, 0x00, 0x00, 0x00,
0x57, 0x41, 0x56, 0x45,
0x66, 0x6d, 0x74, 0x20,
0x10, 0x00, 0x00, 0x00,
0x01, 0x00, 0x01, 0x00,
0x80, 0x3e, 0x00, 0x00,
0x00, 0xfa, 0x00, 0x00,
0x04, 0x00, 0x20, 0x00,
0x64, 0x61, 0x74, 0x61,
0x00, 0x00, 0x00, 0x00,
}

Definition at line 36 of file wavrecord.c.



libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Thu Jun 6 2019 19:25:39