Changed to create Wonx class and manage all resources with Wonx class. (See Wonx.x WonxP.h) When p is pressed to switch display / non-display of the screen, redraw the LCD panel Improvement. Added -Wall to compile option. We have summarized the processing part of the function which is duplicated processing in disp.c. Version 0.1 beta - from wonx-b01.tar.gz
90 lines
1.4 KiB
C
90 lines
1.4 KiB
C
/*****************************************************************************/
|
|
/* ここから */
|
|
/*****************************************************************************/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include <sys/sound.h>
|
|
|
|
#include "Wonx.h"
|
|
|
|
/*****************************************************************************/
|
|
/* メンバ関数の定義 */
|
|
/*****************************************************************************/
|
|
|
|
void sound_init(void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void sound_set_channel(unsigned int flags)
|
|
{
|
|
return;
|
|
}
|
|
|
|
unsigned int sound_get_channel(void)
|
|
{
|
|
return (0);
|
|
}
|
|
|
|
void sound_set_output(unsigned int flags)
|
|
{
|
|
return;
|
|
}
|
|
|
|
unsigned int sound_get_output(void)
|
|
{
|
|
return (0);
|
|
}
|
|
|
|
void sound_set_wave(int channel, unsigned char * wave)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void sound_set_pitch(int channel, unsigned int frequency)
|
|
{
|
|
return;
|
|
}
|
|
|
|
unsigned int sound_get_pitch(int channel)
|
|
{
|
|
return (0);
|
|
}
|
|
|
|
void sound_set_volume(int channel, unsigned int volume)
|
|
{
|
|
return;
|
|
}
|
|
|
|
unsigned int sound_get_volume(int channel)
|
|
{
|
|
return (0);
|
|
}
|
|
|
|
void sound_set_sweep(int sweep, int step)
|
|
{
|
|
return;
|
|
}
|
|
|
|
unsigned int sound_get_sweep(void)
|
|
{
|
|
return (0);
|
|
}
|
|
|
|
void sound_set_noise(unsigned int flags)
|
|
{
|
|
return;
|
|
}
|
|
|
|
unsigned int sound_get_noise(void)
|
|
{
|
|
return (0);
|
|
}
|
|
|
|
unsigned int sound_get_random(void)
|
|
{
|
|
return (0);
|
|
}
|