Fjernet en bunke warnings.
This commit is contained in:
parent
0cbc0cbe39
commit
e2b433e4b4
6
TIKI-100_emul-src/messaudio/Makefile
Normal file
6
TIKI-100_emul-src/messaudio/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
# basic Makefile to simplify testing of the ay8910 code
|
||||
|
||||
all: ay8910test
|
||||
|
||||
ay8910test: ay8910.c
|
||||
gcc -o ay8910test ay8910.c
|
@ -106,6 +106,9 @@ has twice the steps, happening twice as fast.
|
||||
//#include "cpuintrf.h"
|
||||
#include "ay8910.h"
|
||||
|
||||
// lazyness
|
||||
#define logerror printf
|
||||
|
||||
/*************************************
|
||||
*
|
||||
* Defines
|
||||
@ -661,7 +664,7 @@ void *ay8910_start_ym(sound_type chip_type, int sndindex, int clock, const ay891
|
||||
{
|
||||
ay8910_context *info;
|
||||
|
||||
info = auto_malloc(sizeof(*info));
|
||||
info = (ay8910_context*) auto_malloc(sizeof(*info));
|
||||
memset(info, 0, sizeof(*info));
|
||||
info->index = sndindex;
|
||||
info->intf = intf;
|
||||
@ -858,17 +861,37 @@ void ay8910_get_info(void *token, UINT32 state, sndinfo *info)
|
||||
switch (state)
|
||||
{
|
||||
/* --- the following bits of info are returned as 64-bit signed integers --- */
|
||||
case SNDINFO_INT_ALIAS: info->i = SOUND_AY8910; break;
|
||||
case SNDINFO_INT_ALIAS:
|
||||
info->i = SOUND_AY8910;
|
||||
break;
|
||||
|
||||
/* --- the following bits of info are returned as pointers to data or functions --- */
|
||||
case SNDINFO_PTR_SET_INFO: info->set_info = ay8910_set_info; break;
|
||||
case SNDINFO_PTR_START: info->start = ay8910_start; break;
|
||||
case SNDINFO_PTR_STOP: info->stop = ay8910_stop; break;
|
||||
case SNDINFO_PTR_RESET: info->reset = ay8910_reset_ym; break;
|
||||
case SNDINFO_PTR_SET_INFO:
|
||||
info->set_info = ay8910_set_info;
|
||||
break;
|
||||
|
||||
case SNDINFO_PTR_START:
|
||||
info->start = ay8910_start;
|
||||
break;
|
||||
|
||||
case SNDINFO_PTR_STOP:
|
||||
info->stop = ay8910_stop;
|
||||
break;
|
||||
|
||||
case SNDINFO_PTR_RESET:
|
||||
info->reset = ay8910_reset_ym;
|
||||
break;
|
||||
|
||||
/* --- the following bits of info are returned as
|
||||
* NULL-terminated strings --- */
|
||||
case SNDINFO_STR_NAME:
|
||||
info->s = "AY-3-8910A";
|
||||
break;
|
||||
|
||||
case SNDINFO_STR_CORE_FAMILY:
|
||||
info->s = "PSG";
|
||||
break;
|
||||
|
||||
/* --- the following bits of info are returned as NULL-terminated strings --- */
|
||||
case SNDINFO_STR_NAME: info->s = "AY-3-8910A"; break;
|
||||
case SNDINFO_STR_CORE_FAMILY: info->s = "PSG"; break;
|
||||
case SNDINFO_STR_CORE_VERSION: info->s = "1.0"; break;
|
||||
case SNDINFO_STR_CORE_FILE: info->s = __FILE__; break;
|
||||
case SNDINFO_STR_CORE_CREDITS: info->s = "Copyright Nicola Salmoria and the MAME Team"; break;
|
||||
@ -894,7 +917,7 @@ void ay8913_get_info(void *token, UINT32 state, sndinfo *info)
|
||||
default: ay8910_get_info(token, state, info); break;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
void ay8930_get_info(void *token, UINT32 state, sndinfo *info)
|
||||
{
|
||||
switch (state)
|
||||
@ -944,6 +967,13 @@ void ymz294_get_info(void *token, UINT32 state, sndinfo *info)
|
||||
default: ay8910_get_info(token, state, info); break;
|
||||
}
|
||||
}
|
||||
*/
|
||||
int
|
||||
main(int argc, char* argv[])
|
||||
{
|
||||
printf("ay8910test.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*************************************
|
||||
*
|
||||
|
@ -29,7 +29,8 @@
|
||||
*
|
||||
*************************************/
|
||||
|
||||
extern running_machine *Machine;
|
||||
//extern running_machine *Machine;
|
||||
running_machine *Machine;
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user