summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/disc_sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/disc_sys.c')
-rw-r--r--src/emu/sound/disc_sys.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/sound/disc_sys.c b/src/emu/sound/disc_sys.c
index e051c9f8ec7..f95c270ef60 100644
--- a/src/emu/sound/disc_sys.c
+++ b/src/emu/sound/disc_sys.c
@@ -76,7 +76,8 @@ static void task_check(discrete_task *task, discrete_task *dest_task)
if (task->numbuffered >= DISCRETE_MAX_TASK_OUTPUTS)
fatalerror("dso_task_start - Number of maximum buffered nodes exceeded");
- task->node_buf[task->numbuffered] = auto_alloc_array(task_node->info->device->machine, double, 2048);
+ task->node_buf[task->numbuffered] = auto_alloc_array(task_node->info->device->machine, double,
+ ((task_node->info->sample_rate + STREAMS_UPDATE_FREQUENCY) / STREAMS_UPDATE_FREQUENCY));
task->source[task->numbuffered] = (double *) dest_node->input[inputnum];
task->nodes[task->numbuffered] = discrete_find_node(task_node->info, inputnode);
i = task->numbuffered;