diff options
author | 2008-08-14 08:05:35 +0000 | |
---|---|---|
committer | 2008-08-14 08:05:35 +0000 | |
commit | 224eb1f58b937cd8b48d0e0944b778b305b23edc (patch) | |
tree | f47216f8eb2caf9479b8a58148ae165ecab00e82 /src/emu | |
parent | 2e7d262931b6840b77bda76a4b07c67b0f836b10 (diff) |
Cleanups and version bump.mame0126u5
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/cheat.c | 14 | ||||
-rw-r--r-- | src/emu/machine/laserdsc.c | 14 | ||||
-rw-r--r-- | src/emu/sound/262intf.h | 2 |
3 files changed, 15 insertions, 15 deletions
diff --git a/src/emu/cheat.c b/src/emu/cheat.c index 29652e8acab..060c3eae6b9 100644 --- a/src/emu/cheat.c +++ b/src/emu/cheat.c @@ -229,15 +229,15 @@ const char *format_int(astring *string, UINT64 value, int format) case XML_INT_FORMAT_DECIMAL: astring_printf(string, "%d", (UINT32)value); break; - + case XML_INT_FORMAT_DECIMAL_POUND: astring_printf(string, "#%d", (UINT32)value); break; - + case XML_INT_FORMAT_HEX_DOLLAR: astring_printf(string, "$%X", (UINT32)value); break; - + case XML_INT_FORMAT_HEX_C: astring_printf(string, "0x%X", (UINT32)value); break; @@ -277,7 +277,7 @@ void cheat_init(running_machine *machine) cheat_list_save("output", cheatinfo->cheatlist); /* we rely on the debugger expression callbacks; if the debugger isn't - enabled, we must jumpstart them manually */ + enabled, we must jumpstart them manually */ if ((machine->debug_flags & DEBUG_FLAG_ENABLED) == 0) debug_cpu_init(machine); } @@ -354,7 +354,7 @@ void *cheat_get_next_menu_entry(running_machine *machine, void *previous, const /* description is standard */ if (description != NULL) *description = astring_c(cheat->description); - + /* some cheat entries are just text for display */ if (cheat->parameter == NULL && cheat->script[SCRIPT_STATE_RUN] == NULL && cheat->script[SCRIPT_STATE_OFF] == NULL && cheat->script[SCRIPT_STATE_ON] == NULL) { @@ -987,7 +987,7 @@ static void cheat_entry_save(mame_file *cheatfile, const cheat_entry *cheat) { script_state state; int scriptcount; - + /* count the scripts */ scriptcount = 0; for (state = SCRIPT_STATE_OFF; state < SCRIPT_STATE_COUNT; state++) @@ -1133,7 +1133,7 @@ error: static void cheat_parameter_save(mame_file *cheatfile, const cheat_parameter *param) { astring *string = astring_alloc(); - + /* output the parameter tag */ mame_fprintf(cheatfile, "\t\t<parameter"); diff --git a/src/emu/machine/laserdsc.c b/src/emu/machine/laserdsc.c index 6c2c0e33bc0..73d4c5ff149 100644 --- a/src/emu/machine/laserdsc.c +++ b/src/emu/machine/laserdsc.c @@ -1287,7 +1287,7 @@ static void read_track_data(laserdisc_state *ld) ld->videotarget.height /= 2; ld->videotarget.rowpixels *= 2; ld->avconfig.video = &ld->videotarget; - + /* set the audio target information */ if (ld->audiobufin + ld->audiomaxsamples <= ld->audiobufsize) { @@ -1301,7 +1301,7 @@ static void read_track_data(laserdisc_state *ld) ld->avconfig.audio[0] = &ld->audiobuffer[0][0]; ld->avconfig.audio[1] = &ld->audiobuffer[1][0]; } - + /* override if we're not decoding */ ld->avconfig.maxsamples = ld->audiomaxsamples; ld->avconfig.actsamples = &ld->audiocursamples; @@ -1372,7 +1372,7 @@ static void process_track_data(const device_config *device) ld->videofields[ld->videoindex]++; ld->videoframenum[ld->videoindex] = ld->last_frame; } - + /* pass the audio to the callback */ if (ld->audiocallback != NULL) (*ld->audiocallback)(device, ld->samplerate, ld->audiocursamples, ld->avconfig.audio[0], ld->avconfig.audio[1]); @@ -1381,24 +1381,24 @@ static void process_track_data(const device_config *device) if (ld->audiocursamples != 0 && ld->audiobufin != 0) { int chnum; - + /* iterate over channels */ for (chnum = 0; chnum < 2; chnum++) if (ld->avconfig.audio[chnum] == &ld->audiobuffer[chnum][0]) { int samplesleft; - + /* move data to the end */ samplesleft = ld->audiobufsize - ld->audiobufin; samplesleft = MIN(samplesleft, ld->audiocursamples); memmove(&ld->audiobuffer[chnum][ld->audiobufin], &ld->audiobuffer[chnum][0], samplesleft * 2); - + /* shift data at the beginning */ if (samplesleft < ld->audiocursamples) memmove(&ld->audiobuffer[chnum][0], &ld->audiobuffer[chnum][samplesleft], (ld->audiocursamples - samplesleft) * 2); } } - + /* update the input buffer pointer */ ld->audiobufin = (ld->audiobufin + ld->audiocursamples) % ld->audiobufsize; } diff --git a/src/emu/sound/262intf.h b/src/emu/sound/262intf.h index bcacab3436b..479377d29a2 100644 --- a/src/emu/sound/262intf.h +++ b/src/emu/sound/262intf.h @@ -1,5 +1,5 @@ #pragma once - + #ifndef __262INTF_H__ #define __262INTF_H__ |