Exemplo n.º 1
0
void * InitSoundNull( SoundCBType cb )
{
	struct SoundDriverNull * r = malloc( sizeof( struct SoundDriverNull ) );
	r->CloseFn = CloseSoundNull;
	r->SoundStateFn = SoundStateNull;
	r->soundcb = cb;
	r->spsPlay = GetParameterI( "samplerate", 44100 );
	r->channelsPlay = GetParameterI( "channels", 2 );
	r->spsRec = r->spsPlay;
	r->channelsRec = r->channelsRec;
	return r;
}
Exemplo n.º 2
0
static void DMXParams(void * id )
{
	struct DMXOutDriver * led = (struct DMXOutDriver*)id;

	led->total_leds = GetParameterI( "leds", 10 );
	led->byte_offset = 32; RegisterValue(  "byte_offset", PAINT, &led->byte_offset, sizeof( led->byte_offset ) );
	led->last_leds = malloc( 1026 );
	led->outamp = .1; RegisterValue(  "ledoutamp", PAFLOAT, &led->outamp, sizeof( led->outamp ) );

	led->did_init = 0;
}
Exemplo n.º 3
0
static void LEDParams(void * id )
{
	struct LEDOutDriver * led = (struct LEDOutDriver*)id;

	led->total_leds = GetParameterI( "leds", 300 );
	led->last_leds = malloc( led->total_leds * 3 + 1 );
	led->outamp = .1; RegisterValue(  "ledoutamp", PAFLOAT, &led->outamp, sizeof( led->outamp ) );
	led->zigzag = 0; RegisterValue(  "zigzag", PAINT, &led->zigzag, sizeof( led->zigzag ) );
	led->xn = 16;		RegisterValue(  "lightx", PAINT, &led->xn, sizeof( led->xn ) );
	led->yn = 9;		RegisterValue(  "lighty", PAINT, &led->yn, sizeof( led->yn ) );
	led->rot90 = 0;	RegisterValue(  "rot90", PAINT, &led->rot90, sizeof( led->rot90 ) );
	led->array = 0;	RegisterValue(  "ledarray", PAINT, &led->array, sizeof( led->array ) );

	led->did_init = 0;
}