2017-12-11 23:55:31 -08:00
|
|
|
/* This source as presented is a modified version of original wiiuse for use
|
2017-08-19 08:46:04 +02:00
|
|
|
* with RetroArch, and must not be confused with the original software. */
|
|
|
|
|
|
|
|
#ifndef __SPEAKER_H__
|
|
|
|
#define __SPEAKER_H__
|
|
|
|
|
|
|
|
#include "wiiuse_internal.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct _wencstatus
|
|
|
|
{
|
|
|
|
s32 predictor;
|
|
|
|
s16 step_index;
|
|
|
|
s32 step;
|
|
|
|
s32 prev_sample;
|
|
|
|
s16 sample1;
|
|
|
|
s16 sample2;
|
|
|
|
s32 coeff1;
|
|
|
|
s32 coeff2;
|
|
|
|
s32 idelta;
|
|
|
|
} WENCStatus;
|
|
|
|
|
|
|
|
u8 wencdata(WENCStatus *info,s16 sample);
|
|
|
|
void set_speakervol(struct wiimote_t *wm,ubyte vol);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|