summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Couriersud <couriersud@users.noreply.github.com>2009-10-11 19:11:40 +0000
committer Couriersud <couriersud@users.noreply.github.com>2009-10-11 19:11:40 +0000
commit3fb3e9a7af7a627a15e8124487b24fc23a97d455 (patch)
tree8b3c1a66b7fec8b32889a74a54681ff02437e59a
parentb971b5928749dc8ae893047bdfba15d20d25f06f (diff)
Renamed STREAM_UPDATE_FREQUENCY to STREAM_UPDATE_ATTOTIME
STREAM_UPDATE_FREQUENCY now reflects the frequency.
-rw-r--r--src/emu/sound.c2
-rw-r--r--src/emu/streams.c2
-rw-r--r--src/emu/streams.h3
3 files changed, 4 insertions, 3 deletions
diff --git a/src/emu/sound.c b/src/emu/sound.c
index e11b07d9694..d0a22211739 100644
--- a/src/emu/sound.c
+++ b/src/emu/sound.c
@@ -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"));
diff --git a/src/emu/streams.c b/src/emu/streams.c
index fb26da3d2d9..1fb3f7220b1 100644
--- a/src/emu/streams.c
+++ b/src/emu/streams.c
@@ -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;
diff --git a/src/emu/streams.h b/src/emu/streams.h
index 0407b2974c5..06f78faec0d 100644
--- a/src/emu/streams.h
+++ b/src/emu/streams.h
@@ -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)