summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/ym2413.c
diff options
context:
space:
mode:
author Derrick Renaud <derrickr@mamedev.org>2008-08-11 00:32:08 +0000
committer Derrick Renaud <derrickr@mamedev.org>2008-08-11 00:32:08 +0000
commit3710253aa77562ab4ab3e5abe9714f9f5a631b33 (patch)
tree064b48fd487739f3ed747215c7fc088ff66b0227 /src/emu/sound/ym2413.c
parentfdf667cf9c4ba2d82c71eeb8ae9099151c33359a (diff)
This (mostly - see below) completes the structure, lower-casing functions and re-inclusion updates of the src\sound\emu headers.
I did not do much to the following files because I did not know the best way to name them. aicadsp.h sid.h sidenvel.h sidvoice.h ymdeltat.h I did not update structures only used in the src\emu\sound\*.c files. They are only used locally in the file so they were not worth the effort.
Diffstat (limited to 'src/emu/sound/ym2413.c')
-rw-r--r--src/emu/sound/ym2413.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/emu/sound/ym2413.c b/src/emu/sound/ym2413.c
index 0e8a296fe68..d5dcaea6fd8 100644
--- a/src/emu/sound/ym2413.c
+++ b/src/emu/sound/ym2413.c
@@ -2082,13 +2082,13 @@ static unsigned char OPLLRead(YM2413 *chip,int a)
-void * YM2413Init(int clock, int rate, int index)
+void * ym2413_init(int clock, int rate, int index)
{
/* emulator create */
return OPLLCreate(clock, rate, index);
}
-void YM2413Shutdown(void *chip)
+void ym2413_shutdown(void *chip)
{
YM2413 *OPLL = chip;
@@ -2096,25 +2096,25 @@ void YM2413Shutdown(void *chip)
OPLLDestroy(OPLL);
}
-void YM2413ResetChip(void *chip)
+void ym2413_reset_chip(void *chip)
{
YM2413 *OPLL = chip;
OPLLResetChip(OPLL);
}
-void YM2413Write(void *chip, int a, int v)
+void ym2413_write(void *chip, int a, int v)
{
YM2413 *OPLL = chip;
OPLLWrite(OPLL, a, v);
}
-unsigned char YM2413Read(void *chip, int a)
+unsigned char ym2413_read(void *chip, int a)
{
YM2413 *OPLL = chip;
return OPLLRead(OPLL, a) & 0x03 ;
}
-void YM2413SetUpdateHandler(void *chip,OPLL_UPDATEHANDLER UpdateHandler,void *param)
+void ym2413_set_update_handler(void *chip,OPLL_UPDATEHANDLER UpdateHandler,void *param)
{
YM2413 *OPLL = chip;
OPLLSetUpdateHandler(OPLL, UpdateHandler, param);
@@ -2128,7 +2128,7 @@ void YM2413SetUpdateHandler(void *chip,OPLL_UPDATEHANDLER UpdateHandler,void *pa
** '*buffer' is the output buffer pointer
** 'length' is the number of samples that should be generated
*/
-void YM2413UpdateOne(void *_chip, SAMP **buffers, int length)
+void ym2413_update_one(void *_chip, SAMP **buffers, int length)
{
YM2413 *chip = _chip;
UINT8 rhythm = chip->rhythm&0x20;