src/mess/audio/dai.c
| r2336 | r2337 | |
| 50 | 50 | |
| 51 | 51 | static void dai_sh_update(void *param,stream_sample_t **inputs, stream_sample_t **buffer,int length) |
| 52 | 52 | { |
| 53 | device_config *pit8253 = (device_config*)device_list_find_by_tag( Machine->config->devicelist, PIT8253, "pit8253" ); |
| 53 | 54 | INT16 channel_0_signal; |
| 54 | 55 | INT16 channel_1_signal; |
| 55 | 56 | INT16 channel_2_signal; |
| r2336 | r2337 | |
| 65 | 66 | stream_sample_t *sample_left = buffer[0]; |
| 66 | 67 | stream_sample_t *sample_right = buffer[1]; |
| 67 | 68 | |
| 68 | | channel_0_baseclock = pit8253_get_frequency(0, 0); |
| 69 | | channel_1_baseclock = pit8253_get_frequency(0, 1); |
| 70 | | channel_2_baseclock = pit8253_get_frequency(0, 2); |
| 69 | channel_0_baseclock = pit8253_get_frequency(pit8253, 0); |
| 70 | channel_1_baseclock = pit8253_get_frequency(pit8253, 1); |
| 71 | channel_2_baseclock = pit8253_get_frequency(pit8253, 2); |
| 71 | 72 | |
| 72 | | channel_0_signal = pit8253_get_output (0,0) ? dai_osc_volume_table[dai_osc_volume[0]] : -dai_osc_volume_table[dai_osc_volume[0]]; |
| 73 | | channel_1_signal = pit8253_get_output (0,1) ? dai_osc_volume_table[dai_osc_volume[1]] : -dai_osc_volume_table[dai_osc_volume[1]]; |
| 74 | | channel_2_signal = pit8253_get_output (0,2) ? dai_osc_volume_table[dai_osc_volume[2]] : -dai_osc_volume_table[dai_osc_volume[2]]; |
| 73 | channel_0_signal = pit8253_get_output (pit8253,0) ? dai_osc_volume_table[dai_osc_volume[0]] : -dai_osc_volume_table[dai_osc_volume[0]]; |
| 74 | channel_1_signal = pit8253_get_output (pit8253,1) ? dai_osc_volume_table[dai_osc_volume[1]] : -dai_osc_volume_table[dai_osc_volume[1]]; |
| 75 | channel_2_signal = pit8253_get_output (pit8253,2) ? dai_osc_volume_table[dai_osc_volume[2]] : -dai_osc_volume_table[dai_osc_volume[2]]; |
| 75 | 76 | |
| 76 | 77 | |
| 77 | 78 | while (length--) |