Renamed STREAM_UPDATE_FREQUENCY to STREAM_UPDATE_ATTOTIME

STREAM_UPDATE_FREQUENCY now reflects the frequency.
This commit is contained in:
Couriersud 2009-10-11 19:11:40 +00:00
parent b971b59287
commit 3fb3e9a7af
3 changed files with 4 additions and 3 deletions

View File

@ -209,7 +209,7 @@ void sound_init(running_machine *machine)
/* allocate a global timer for sound timing */
global->update_timer = timer_alloc(machine, sound_update, NULL);
timer_adjust_periodic(global->update_timer, STREAMS_UPDATE_FREQUENCY, 0, STREAMS_UPDATE_FREQUENCY);
timer_adjust_periodic(global->update_timer, STREAMS_UPDATE_ATTOTIME, 0, STREAMS_UPDATE_ATTOTIME);
/* finally, do all the routing */
VPRINTF(("route_sound\n"));

View File

@ -222,7 +222,7 @@ void streams_init(running_machine *machine)
/* reset globals */
strdata->stream_tailptr = &strdata->stream_head;
strdata->update_attoseconds = STREAMS_UPDATE_FREQUENCY.attoseconds;
strdata->update_attoseconds = STREAMS_UPDATE_ATTOTIME.attoseconds;
/* set the global pointer */
machine->streams_data = strdata;

View File

@ -19,7 +19,8 @@
CONSTANTS
***************************************************************************/
#define STREAMS_UPDATE_FREQUENCY ATTOTIME_IN_HZ(50)
#define STREAMS_UPDATE_FREQUENCY (50)
#define STREAMS_UPDATE_ATTOTIME ATTOTIME_IN_HZ(STREAMS_UPDATE_FREQUENCY)