diff options
author | 2020-09-22 01:03:13 -0700 | |
---|---|---|
committer | 2020-09-22 01:03:13 -0700 | |
commit | bccf4ac2cac97067972e74d5b681193c7e2ec80b (patch) | |
tree | 96af00c2a69263a545718a9bbc68afff33b5c102 | |
parent | 794a177a1c5f539458f1caa573a1f11eed1fbb08 (diff) |
fm/fmopl: Minor cleanups
-rw-r--r-- | src/devices/sound/fm.cpp | 3 | ||||
-rw-r--r-- | src/devices/sound/fmopl.cpp | 9 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/devices/sound/fm.cpp b/src/devices/sound/fm.cpp index c36a95831c1..01d8ba11bf1 100644 --- a/src/devices/sound/fm.cpp +++ b/src/devices/sound/fm.cpp @@ -2111,12 +2111,11 @@ struct ym2203_state } // anonymous namespace /* 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; FM_OPN *OPN = &F2203->OPN; int i; - auto &buf = buffer; FM_CH *cch[3]; cch[0] = &F2203->CH[0]; diff --git a/src/devices/sound/fmopl.cpp b/src/devices/sound/fmopl.cpp index f843d781d42..9aa33637b71 100644 --- a/src/devices/sound/fmopl.cpp +++ b/src/devices/sound/fmopl.cpp @@ -2206,11 +2206,10 @@ void ym3812_set_update_handler(void *chip,OPL_UPDATEHANDLER UpdateHandler,device ** '*buffer' is the output buffer pointer ** '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; uint8_t rhythm = OPL->rhythm&0x20; - auto &buf = buffer; int 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 ** '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; uint8_t rhythm = OPL->rhythm&0x20; - auto &buf = buffer; int 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 ** '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; FM_OPL *OPL = (FM_OPL *)chip; uint8_t rhythm = OPL->rhythm&0x20; YM_DELTAT &DELTAT = *OPL->deltat; - auto &buf = buffer; for( i=0; i < buf.samples() ; i++ ) { |