src/emu/sound.h
| r2011 | r2012 | |
| 31 | 31 | |
| 32 | 32 | /* these functions are macros primarily due to include file ordering */ |
| 33 | 33 | /* plus, they are very simple */ |
| 34 | | #define speaker_output_count(config) device_list_items((config)->devicelist, SPEAKER_OUTPUT) |
| 35 | | #define speaker_output_first(config) device_list_first((config)->devicelist, SPEAKER_OUTPUT) |
| 34 | #define speaker_output_count(config) ((config)->devicelist ? device_list_items((config)->devicelist, SPEAKER_OUTPUT) : 0) |
| 35 | #define speaker_output_first(config) ((config)->devicelist ? device_list_first((config)->devicelist, SPEAKER_OUTPUT) : NULL) |
| 36 | 36 | #define speaker_output_next(previous) device_list_next((previous), SPEAKER_OUTPUT) |
| 37 | 37 | |
| 38 | 38 | |