trunk/src/mess/audio/dave.c
r241439 | r241440 | |
96 | 96 | save_item(NAME(m_level_and)); |
97 | 97 | save_item(NAME(m_mame_volumes)); |
98 | 98 | |
99 | | for (int i = 0; i < 3; i++) |
100 | | { |
101 | | m_period[i] = (STEP * machine().sample_rate()) / 125000; |
| 99 | for (int i = 0; i < ARRAY_LENGTH(m_period); i++) |
| 100 | m_period[i] = (STEP * machine().sample_rate()) / 125000; |
| 101 | |
| 102 | for (int i = 0; i < ARRAY_LENGTH(m_count); i++) |
102 | 103 | m_count[i] = (STEP * machine().sample_rate()) / 125000; |
| 104 | |
| 105 | for (int i = 0; i < ARRAY_LENGTH(m_level); i++) |
103 | 106 | m_level[i] = 0; |
104 | | } |
105 | 107 | |
| 108 | for (int i = 0; i < ARRAY_LENGTH(m_level_or); i++) |
| 109 | m_level_or[i] = 0; |
| 110 | |
| 111 | for (int i = 0; i < ARRAY_LENGTH(m_level_and); i++) |
| 112 | m_level_and[i] = 0; |
| 113 | |
| 114 | for (int i = 0; i < ARRAY_LENGTH(m_mame_volumes); i++) |
| 115 | m_mame_volumes[i] = 0; |
| 116 | |
106 | 117 | /* dave has 3 tone channels and 1 noise channel. |
107 | 118 | the volumes are mixed internally and output as left and right volume */ |
108 | 119 | |