RetroArch
Macros | Functions | Variables
speaker.c File Reference
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "definitions.h"
#include "wiiuse_internal.h"
#include "speaker.h"
Include dependency graph for speaker.c:

Macros

#define WENCMIN(a, b)   ((a)>(b)?(b):(a))
 
#define ABS(x)   ((s32)(x)>0?(s32)(x):-((s32)(x)))
 

Functions

static __inline__ short wenc_clip_short (int a)
 
static __inline__ int wenc_clip (int a, int amin, int amax)
 
ubyte wencdata (WENCStatus *info, short sample)
 
void wiiuse_set_speaker (struct wiimote_t *wm, int status)
 
void set_speakervol (struct wiimote_t *wm, ubyte vol)
 

Variables

static const int yamaha_indexscale []
 
static const int yamaha_difflookup []
 
static ubyte __wiiuse_speaker_vol = 0x40
 
static ubyte __wiiuse_speaker_defconf [7] = { 0x00,0x00,0xD0,0x07,0x40,0x0C,0x0E }
 

Macro Definition Documentation

◆ ABS

#define ABS (   x)    ((s32)(x)>0?(s32)(x):-((s32)(x)))

◆ WENCMIN

#define WENCMIN (   a,
  b 
)    ((a)>(b)?(b):(a))

Function Documentation

◆ set_speakervol()

void set_speakervol ( struct wiimote_t wm,
ubyte  vol 
)

◆ wenc_clip()

static __inline__ int wenc_clip ( int  a,
int  amin,
int  amax 
)
static
Here is the caller graph for this function:

◆ wenc_clip_short()

static __inline__ short wenc_clip_short ( int  a)
static
Here is the caller graph for this function:

◆ wencdata()

ubyte wencdata ( WENCStatus info,
short  sample 
)
Here is the call graph for this function:

◆ wiiuse_set_speaker()

void wiiuse_set_speaker ( struct wiimote_t wm,
int  status 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ __wiiuse_speaker_defconf

ubyte __wiiuse_speaker_defconf[7] = { 0x00,0x00,0xD0,0x07,0x40,0x0C,0x0E }
static

◆ __wiiuse_speaker_vol

ubyte __wiiuse_speaker_vol = 0x40
static

◆ yamaha_difflookup

const int yamaha_difflookup[]
static
Initial value:
= {
1, 3, 5, 7, 9, 11, 13, 15,
-1, -3, -5, -7, -9, -11, -13, -15
}

◆ yamaha_indexscale

const int yamaha_indexscale[]
static
Initial value:
= {
230, 230, 230, 230, 307, 409, 512, 614,
230, 230, 230, 230, 307, 409, 512, 614
}