src/emu/audit.c
| r4136 | r4137 | |
| 136 | 136 | |
| 137 | 137 | int audit_samples(core_options *options, const game_driver *gamedrv, audit_record **audit) |
| 138 | 138 | { |
| 139 | int records = 0; |
| 140 | #if HAS_SAMPLES |
| 139 | 141 | machine_config *config = machine_config_alloc(gamedrv->machine_config); |
| 140 | 142 | audit_record *record; |
| 141 | 143 | int sndnum, sampnum; |
| 142 | | int records = 0; |
| 143 | 144 | |
| 144 | 145 | /* count the number of sample records attached to this driver */ |
| 145 | | #if HAS_SAMPLES |
| 146 | 146 | for (sndnum = 0; sndnum < ARRAY_LENGTH(config->sound); sndnum++) |
| 147 | 147 | if (config->sound[sndnum].type == SOUND_SAMPLES) |
| 148 | 148 | { |
| r4136 | r4137 | |
| 156 | 156 | records++; |
| 157 | 157 | } |
| 158 | 158 | } |
| 159 | | #endif |
| 160 | 159 | |
| 161 | 160 | /* if no records, just quit now */ |
| 162 | 161 | if (records == 0) |
| r4136 | r4137 | |
| 214 | 213 | |
| 215 | 214 | skip: |
| 216 | 215 | machine_config_free(config); |
| 216 | #endif /* HAS_SAMPLES */ |
| 217 | 217 | return records; |
| 218 | 218 | } |
| 219 | 219 | |