Acoustic Touch Recognition
Classes | Typedefs | Functions
utils.h File Reference
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <pulse/pulseaudio.h>
#include <pulse/def.h>
#include <alsa/asoundlib.h>
#include <alsa/mixer.h>
#include <string>
#include <vector>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pa_devicelist
 
struct  alsa_soundCard
 

Typedefs

typedef struct pa_devicelist pa_devicelist_t
 
typedef struct alsa_soundCard alsa_soundCard_t
 

Functions

void pa_state_cb (pa_context *c, void *userdata)
 This callback gets called when our context changes state. We really only care about when it's ready or if it has failed. More...
 
void pa_sinklist_cb (pa_context *c, const pa_sink_info *l, int eol, void *userdata)
 
void pa_sourcelist_cb (pa_context *c, const pa_source_info *l, int eol, void *userdata)
 See above. This callback is pretty much identical to the previous. More...
 
int pa_get_devicelist (pa_devicelist_t *input, pa_devicelist_t *output)
 
vector< alsa_soundCard_talsa_get_cardlist ()
 

Typedef Documentation

◆ alsa_soundCard_t

◆ pa_devicelist_t

Function Documentation

◆ alsa_get_cardlist()

vector<alsa_soundCard_t> alsa_get_cardlist ( )
Returns
vector<alsa_soundCard_t>

◆ pa_get_devicelist()

int pa_get_devicelist ( pa_devicelist_t input,
pa_devicelist_t output 
)
Parameters
input
output
Returns
int

◆ pa_sinklist_cb()

void pa_sinklist_cb ( pa_context *  c,
const pa_sink_info *  l,
int  eol,
void *  userdata 
)

◆ pa_sourcelist_cb()

void pa_sourcelist_cb ( pa_context *  c,
const pa_source_info *  l,
int  eol,
void *  userdata 
)

See above. This callback is pretty much identical to the previous.

Parameters
c
l
eol
userdata

◆ pa_state_cb()

void pa_state_cb ( pa_context *  c,
void *  userdata 
)

This callback gets called when our context changes state. We really only care about when it's ready or if it has failed.

Parameters
c
userdata