summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/ymf262.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/ymf262.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/ymf262.c')
-rw-r--r--src/emu/sound/ymf262.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/emu/sound/ymf262.c b/src/emu/sound/ymf262.c
index 6e4312900f8..1db1d03929d 100644
--- a/src/emu/sound/ymf262.c
+++ b/src/emu/sound/ymf262.c
@@ -2464,26 +2464,26 @@ static int OPL3TimerOver(OPL3 *chip,int c)
-void * YMF262Init(int clock, int rate)
+void * ymf262_init(int clock, int rate)
{
return OPL3Create(OPL3_TYPE_YMF262,clock,rate);
}
-void YMF262Shutdown(void *chip)
+void ymf262_shutdown(void *chip)
{
OPL3Destroy(chip);
}
-void YMF262ResetChip(void *chip)
+void ymf262_reset_chip(void *chip)
{
OPL3ResetChip(chip);
}
-int YMF262Write(void *chip, int a, int v)
+int ymf262_write(void *chip, int a, int v)
{
return OPL3Write(chip, a, v);
}
-unsigned char YMF262Read(void *chip, int a)
+unsigned char ymf262_read(void *chip, int a)
{
/* Note on status register: */
@@ -2496,20 +2496,20 @@ unsigned char YMF262Read(void *chip, int a)
return OPL3Read(chip, a);
}
-int YMF262TimerOver(void *chip, int c)
+int ymf262_timer_over(void *chip, int c)
{
return OPL3TimerOver(chip, c);
}
-void YMF262SetTimerHandler(void *chip, OPL3_TIMERHANDLER timer_handler, void *param)
+void ymf262_set_timer_handler(void *chip, OPL3_TIMERHANDLER timer_handler, void *param)
{
OPL3SetTimerHandler(chip, timer_handler, param);
}
-void YMF262SetIRQHandler(void *chip,OPL3_IRQHANDLER IRQHandler,void *param)
+void ymf262_set_irq_handler(void *chip,OPL3_IRQHANDLER IRQHandler,void *param)
{
OPL3SetIRQHandler(chip, IRQHandler, param);
}
-void YMF262SetUpdateHandler(void *chip,OPL3_UPDATEHANDLER UpdateHandler,void *param)
+void ymf262_set_update_handler(void *chip,OPL3_UPDATEHANDLER UpdateHandler,void *param)
{
OPL3SetUpdateHandler(chip, UpdateHandler, param);
}
@@ -2522,7 +2522,7 @@ void YMF262SetUpdateHandler(void *chip,OPL3_UPDATEHANDLER UpdateHandler,void *pa
** '**buffers' is table of 4 pointers to the buffers: CH.A, CH.B, CH.C and CH.D
** 'length' is the number of samples that should be generated
*/
-void YMF262UpdateOne(void *_chip, OPL3SAMPLE **buffers, int length)
+void ymf262_update_one(void *_chip, OPL3SAMPLE **buffers, int length)
{
OPL3 *chip = _chip;
UINT8 rhythm = chip->rhythm&0x20;