src/mess/audio/mac.c
| r3866 | r3867 | |
| 70 | 70 | /* Sound handler start */ |
| 71 | 71 | /************************************/ |
| 72 | 72 | |
| 73 | | void *mac_sh_start(const device_config *device, int clock, const custom_sound_interface *config) |
| 73 | CUSTOM_START( mac_sh_start ) |
| 74 | 74 | { |
| 75 | 75 | snd_cache = auto_malloc(SND_CACHE_SIZE * sizeof(*snd_cache)); |
| 76 | 76 | mac_stream = stream_create(device, 0, 1, MAC_SAMPLE_RATE, 0, mac_sound_update); |
src/mess/audio/gmaster.c
| r3866 | r3867 | |
| 47 | 47 | /************************************/ |
| 48 | 48 | /* Sound handler start */ |
| 49 | 49 | /************************************/ |
| 50 | | void* gmaster_custom_start (const device_config *device, int clock, const custom_sound_interface *config) |
| 50 | |
| 51 | CUSTOM_START( gmaster_custom_start ) |
| 51 | 52 | { |
| 52 | 53 | mixer_channel = stream_create(device, 0, 1, device->machine->sample_rate, 0, gmaster_update); |
| 53 | 54 | |
| 54 | 55 | return (void*)~0; |
| 55 | 56 | } |
| 56 | | |
src/mess/audio/vc4000.c
| r3866 | r3867 | |
| 67 | 67 | /* Sound handler start */ |
| 68 | 68 | /************************************/ |
| 69 | 69 | |
| 70 | | static void *vc4000_custom_start(const device_config *device, int clock, const custom_sound_interface *config) |
| 70 | static CUSTOM_START( vc4000_custom_start ) |
| 71 | 71 | { |
| 72 | 72 | vc4000_sound.channel = stream_create(device, 0, 1, device->machine->sample_rate, 0, vc4000_update); |
| 73 | 73 | return (void *) ~0; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | |
| 77 | | |
| 78 | 77 | const custom_sound_interface vc4000_sound_interface = |
| 79 | 78 | { |
| 80 | 79 | vc4000_custom_start |
src/mess/audio/dave.c
| r3866 | r3867 | |
| 263 | 263 | |
| 264 | 264 | /* dave has 3 tone channels and 1 noise channel. |
| 265 | 265 | the volumes are mixed internally and output as left and right volume */ |
| 266 | | void *Dave_sh_start(const device_config *device, int clock, const custom_sound_interface *config) |
| 266 | CUSTOM_START(Dave_sh_start) |
| 267 | 267 | { |
| 268 | 268 | /* 3 tone channels + 1 noise channel */ |
| 269 | 269 | dave.sound_stream = stream_create(device, 0, 2, device->machine->sample_rate, NULL, dave_update_sound); |
src/mess/audio/special.c
| r3866 | r3867 | |
| 14 | 14 | #include "streams.h" |
| 15 | 15 | #include "includes/special.h" |
| 16 | 16 | |
| 17 | | static void *specimx_sh_start(const device_config *device, int clock, const custom_sound_interface *config); |
| 17 | static CUSTOM_START( specimx_sh_start ); |
| 18 | 18 | static void specimx_sh_update(void *param,stream_sample_t **inputs, stream_sample_t **_buffer,int length); |
| 19 | 19 | |
| 20 | 20 | static sound_stream *mixer_channel; |
| r3866 | r3867 | |
| 27 | 27 | NULL |
| 28 | 28 | }; |
| 29 | 29 | |
| 30 | | static void *specimx_sh_start(const device_config *device, int clock, const custom_sound_interface *config) |
| 30 | static CUSTOM_START( specimx_sh_start ) |
| 31 | 31 | { |
| 32 | 32 | specimx_input[0] = specimx_input[1] = specimx_input[2] = 0; |
| 33 | 33 | mixer_channel = stream_create(device, 0, 1, device->machine->sample_rate, 0, specimx_sh_update); |
src/mess/audio/arcadia.c
| r3866 | r3867 | |
| 69 | 69 | /* Sound handler start */ |
| 70 | 70 | /************************************/ |
| 71 | 71 | |
| 72 | | static void *arcadia_custom_start(const device_config *device, int clock, const custom_sound_interface *config) |
| 72 | static CUSTOM_START( arcadia_custom_start ) |
| 73 | 73 | { |
| 74 | 74 | arcadia_sound.channel = stream_create(device, 0, 1, device->machine->sample_rate, 0, arcadia_update); |
| 75 | 75 | return (void *) ~0; |
src/mess/audio/lynx.c
| r3866 | r3867 | |
| 361 | 361 | /* Sound handler start */ |
| 362 | 362 | /************************************/ |
| 363 | 363 | |
| 364 | | void *lynx_custom_start(const device_config *device, int clock, const custom_sound_interface *config) |
| 364 | CUSTOM_START( lynx_custom_start ) |
| 365 | 365 | { |
| 366 | 366 | mixer_channel = stream_create(device, 0, 1, device->machine->sample_rate, 0, lynx_update); |
| 367 | 367 | |
| r3866 | r3867 | |
| 372 | 372 | } |
| 373 | 373 | |
| 374 | 374 | |
| 375 | | |
| 376 | | void *lynx2_custom_start(const device_config *device, int clock, const custom_sound_interface *config) |
| 375 | CUSTOM_START( lynx2_custom_start ) |
| 377 | 376 | { |
| 378 | 377 | mixer_channel = stream_create(device, 0, 2, device->machine->sample_rate, 0, lynx2_update); |
| 379 | 378 | |
| r3866 | r3867 | |
| 382 | 381 | lynx_audio_init(); |
| 383 | 382 | return (void *) ~0; |
| 384 | 383 | } |
| 385 | | |
src/mess/audio/svision.c
| r3866 | r3867 | |
| 220 | 220 | /************************************/ |
| 221 | 221 | /* Sound handler start */ |
| 222 | 222 | /************************************/ |
| 223 | | void *svision_custom_start(const device_config *device, int clock, const custom_sound_interface *config) |
| 223 | |
| 224 | CUSTOM_START( svision_custom_start ) |
| 224 | 225 | { |
| 225 | 226 | memset(&svision_dma, 0, sizeof(svision_dma)); |
| 226 | 227 | memset(&svision_noise, 0, sizeof(svision_noise)); |
src/mess/audio/dai.c
| r3866 | r3867 | |
| 16 | 16 | #include "streams.h" |
| 17 | 17 | #include "deprecat.h" |
| 18 | 18 | |
| 19 | | static void *dai_sh_start(const device_config *device, int clock, const custom_sound_interface *config); |
| 19 | static CUSTOM_START( dai_sh_start ); |
| 20 | 20 | static void dai_sh_update(void *param,stream_sample_t **inputs, stream_sample_t **_buffer,int length); |
| 21 | 21 | |
| 22 | 22 | static sound_stream *mixer_channel; |
| r3866 | r3867 | |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | |
| 54 | | static void *dai_sh_start(const device_config *device, int clock, const custom_sound_interface *config) |
| 54 | static CUSTOM_START( dai_sh_start ) |
| 55 | 55 | { |
| 56 | 56 | dai_input[0] = dai_input[1] = dai_input[2] = 0; |
| 57 | 57 | |
src/mess/includes/lynx.h
| r3866 | r3867 | |
| 49 | 49 | void lynx_audio_write(int offset, UINT8 data); |
| 50 | 50 | UINT8 lynx_audio_read(int offset); |
| 51 | 51 | void lynx_audio_count_down(running_machine *machine, int nr); |
| 52 | | void *lynx_custom_start(const device_config *device, int clock, const custom_sound_interface *config); |
| 53 | | void *lynx2_custom_start(const device_config *device, int clock, const custom_sound_interface *config); |
| 52 | CUSTOM_START( lynx_custom_start ); |
| 53 | CUSTOM_START( lynx2_custom_start ); |
| 54 | 54 | |
| 55 | 55 | |
| 56 | 56 | #endif /* LYNX_H_ */ |