comparison ALmixer.c @ 35:76a881923cfc

Bug fix for starvation problem due to for-loop using uninitialized variable.
author Eric Wing <ewing@anscamobile.com>
date Wed, 06 Apr 2011 14:54:09 -0700
parents 7709c2145435
children b65ad8b6ccf3
comparison
equal deleted inserted replaced
34:7709c2145435 35:76a881923cfc
7809 if(num_startup_buffers > max_queue_buffers) 7809 if(num_startup_buffers > max_queue_buffers)
7810 { 7810 {
7811 num_startup_buffers = max_queue_buffers; 7811 num_startup_buffers = max_queue_buffers;
7812 } 7812 }
7813 ret_data->num_startup_buffers = num_startup_buffers; 7813 ret_data->num_startup_buffers = num_startup_buffers;
7814 7814
7815 /* TODO: Expose value through public API */
7816 ret_data->num_target_buffers_per_pass = 1;
7817
7815 ret_data->buffer_map_list = NULL; 7818 ret_data->buffer_map_list = NULL;
7816 ret_data->current_buffer = 0; 7819 ret_data->current_buffer = 0;
7817 7820
7818 ret_data->circular_buffer_queue = NULL; 7821 ret_data->circular_buffer_queue = NULL;
7819 7822