mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
fm/fmopl: Minor cleanups
This commit is contained in:
parent
794a177a1c
commit
bccf4ac2ca
@ -2111,12 +2111,11 @@ struct ym2203_state
|
|||||||
} // anonymous namespace
|
} // anonymous namespace
|
||||||
|
|
||||||
/* Generate samples for one of the YM2203s */
|
/* Generate samples for one of the YM2203s */
|
||||||
void ym2203_update_one(void *chip, write_stream_view &buffer)
|
void ym2203_update_one(void *chip, write_stream_view &buf)
|
||||||
{
|
{
|
||||||
ym2203_state *F2203 = (ym2203_state *)chip;
|
ym2203_state *F2203 = (ym2203_state *)chip;
|
||||||
FM_OPN *OPN = &F2203->OPN;
|
FM_OPN *OPN = &F2203->OPN;
|
||||||
int i;
|
int i;
|
||||||
auto &buf = buffer;
|
|
||||||
FM_CH *cch[3];
|
FM_CH *cch[3];
|
||||||
|
|
||||||
cch[0] = &F2203->CH[0];
|
cch[0] = &F2203->CH[0];
|
||||||
|
@ -2206,11 +2206,10 @@ void ym3812_set_update_handler(void *chip,OPL_UPDATEHANDLER UpdateHandler,device
|
|||||||
** '*buffer' is the output buffer pointer
|
** '*buffer' is the output buffer pointer
|
||||||
** 'length' is the number of samples that should be generated
|
** 'length' is the number of samples that should be generated
|
||||||
*/
|
*/
|
||||||
void ym3812_update_one(void *chip, write_stream_view &buffer)
|
void ym3812_update_one(void *chip, write_stream_view &buf)
|
||||||
{
|
{
|
||||||
FM_OPL *OPL = (FM_OPL *)chip;
|
FM_OPL *OPL = (FM_OPL *)chip;
|
||||||
uint8_t rhythm = OPL->rhythm&0x20;
|
uint8_t rhythm = OPL->rhythm&0x20;
|
||||||
auto &buf = buffer;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for( i=0; i < buf.samples(); i++ )
|
for( i=0; i < buf.samples(); i++ )
|
||||||
@ -2330,11 +2329,10 @@ void ym3526_set_update_handler(void *chip,OPL_UPDATEHANDLER UpdateHandler,device
|
|||||||
** '*buffer' is the output buffer pointer
|
** '*buffer' is the output buffer pointer
|
||||||
** 'length' is the number of samples that should be generated
|
** 'length' is the number of samples that should be generated
|
||||||
*/
|
*/
|
||||||
void ym3526_update_one(void *chip, write_stream_view &buffer)
|
void ym3526_update_one(void *chip, write_stream_view &buf)
|
||||||
{
|
{
|
||||||
FM_OPL *OPL = (FM_OPL *)chip;
|
FM_OPL *OPL = (FM_OPL *)chip;
|
||||||
uint8_t rhythm = OPL->rhythm&0x20;
|
uint8_t rhythm = OPL->rhythm&0x20;
|
||||||
auto &buf = buffer;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for( i=0; i < buf.samples() ; i++ )
|
for( i=0; i < buf.samples() ; i++ )
|
||||||
@ -2481,13 +2479,12 @@ void y8950_set_delta_t_memory(void *chip, FM_READBYTE read_byte, FM_WRITEBYTE wr
|
|||||||
** '*buffer' is the output buffer pointer
|
** '*buffer' is the output buffer pointer
|
||||||
** 'length' is the number of samples that should be generated
|
** 'length' is the number of samples that should be generated
|
||||||
*/
|
*/
|
||||||
void y8950_update_one(void *chip, write_stream_view &buffer)
|
void y8950_update_one(void *chip, write_stream_view &buf)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
FM_OPL *OPL = (FM_OPL *)chip;
|
FM_OPL *OPL = (FM_OPL *)chip;
|
||||||
uint8_t rhythm = OPL->rhythm&0x20;
|
uint8_t rhythm = OPL->rhythm&0x20;
|
||||||
YM_DELTAT &DELTAT = *OPL->deltat;
|
YM_DELTAT &DELTAT = *OPL->deltat;
|
||||||
auto &buf = buffer;
|
|
||||||
|
|
||||||
for( i=0; i < buf.samples() ; i++ )
|
for( i=0; i < buf.samples() ; i++ )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user