Classes | Functions | Variables
micview.c File Reference
#include "libfreenect.h"
#include "libfreenect_audio.h"
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <pthread.h>
#include <GL/glut.h>
Include dependency graph for micview.c:

Go to the source code of this file.

Classes

struct  capture
 

Functions

void DrawMicData ()
 
void * freenect_threadfunc (void *arg)
 
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)
 
void Keyboard (unsigned char key, int x, int y)
 
int main (int argc, char **argv)
 
void Reshape (int w, int h)
 

Variables

pthread_cond_t audiobuf_cond = PTHREAD_COND_INITIALIZER
 
pthread_mutex_t audiobuf_mutex = PTHREAD_MUTEX_INITIALIZER
 
volatile int die = 0
 
static freenect_contextf_ctx
 
static freenect_devicef_dev
 
pthread_t freenect_thread
 
int paused = 0
 
capture state
 
int win_h
 
int win_w
 

Function Documentation

void DrawMicData ( )

Definition at line 101 of file micview.c.

void* freenect_threadfunc ( void *  arg)

Definition at line 91 of file micview.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 62 of file micview.c.

void Keyboard ( unsigned char  key,
int  x,
int  y 
)

Definition at line 149 of file micview.c.

int main ( int  argc,
char **  argv 
)

Definition at line 159 of file micview.c.

void Reshape ( int  w,
int  h 
)

Definition at line 138 of file micview.c.

Variable Documentation

pthread_cond_t audiobuf_cond = PTHREAD_COND_INITIALIZER

Definition at line 58 of file micview.c.

pthread_mutex_t audiobuf_mutex = PTHREAD_MUTEX_INITIALIZER

Definition at line 57 of file micview.c.

volatile int die = 0

Definition at line 41 of file micview.c.

freenect_context* f_ctx
static

Definition at line 43 of file micview.c.

freenect_device* f_dev
static

Definition at line 44 of file micview.c.

pthread_t freenect_thread

Definition at line 40 of file micview.c.

int paused = 0

Definition at line 55 of file micview.c.

capture state

Definition at line 53 of file micview.c.

int win_h

Definition at line 60 of file micview.c.

int win_w

Definition at line 60 of file micview.c.



libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Mon Jun 10 2019 13:46:43