src/mess/audio/odyssey2.c
| r1838 | r1839 | |
| 1 | | /************************************************************************************** |
| 2 | | |
| 3 | | audio/odyssey2.c |
| 4 | | |
| 5 | | The VDC handles the audio in the Odyssey 2, so most of the code can be found |
| 6 | | in video/odyssey2.c. |
| 7 | | |
| 8 | | ***************************************************************************************/ |
| 9 | | #include "driver.h" |
| 10 | | #include "includes/odyssey2.h" |
| 11 | | #include "deprecat.h" |
| 12 | | |
| 13 | | sound_stream *odyssey2_sh_channel; |
| 14 | | |
| 15 | | const struct CustomSound_interface odyssey2_sound_interface = |
| 16 | | { |
| 17 | | odyssey2_sh_start |
| 18 | | }; |
| 19 | | |
| 20 | | void *odyssey2_sh_start(int clock, const struct CustomSound_interface *config) |
| 21 | | { |
| 22 | | odyssey2_sh_channel = stream_create(0, 1, Machine->sample_rate, 0, odyssey2_sh_update ); |
| 23 | | return (void *) ~0; |
| 24 | | } |
src/mess/includes/odyssey2.h
| r1838 | r1839 | |
| 43 | 43 | |
| 44 | 44 | void odyssey2_sh_update( void *param,stream_sample_t **inputs, stream_sample_t **_buffer,int length ); |
| 45 | 45 | |
| 46 | | |
| 47 | | /*----------- defined in audio/odyssey2.c -----------*/ |
| 48 | | |
| 49 | | extern sound_stream *odyssey2_sh_channel; |
| 50 | 46 | extern const struct CustomSound_interface odyssey2_sound_interface; |
| 51 | | void *odyssey2_sh_start(int clock, const struct CustomSound_interface *config); |
| 52 | 47 | |
| 53 | | |
| 54 | 48 | /*----------- defined in machine/odyssey2.c -----------*/ |
| 55 | 49 | |
| 56 | 50 | DRIVER_INIT( odyssey2 ); |
src/mess/video/odyssey2.c
| r1838 | r1839 | |
| 169 | 169 | static int start_vpos; |
| 170 | 170 | static int start_vblank; |
| 171 | 171 | |
| 172 | static sound_stream *odyssey2_sh_channel; |
| 172 | 173 | |
| 174 | |
| 173 | 175 | PALETTE_INIT( odyssey2 ) |
| 174 | 176 | { |
| 175 | 177 | palette_set_colors_rgb(machine, 0, odyssey2_colors, sizeof(odyssey2_colors) / 3); |
| r1838 | r1839 | |
| 554 | 556 | return 0; |
| 555 | 557 | } |
| 556 | 558 | |
| 559 | static void *odyssey2_sh_start(int clock, const struct CustomSound_interface *config) |
| 560 | { |
| 561 | odyssey2_sh_channel = stream_create(0, 1, Machine->sample_rate, 0, odyssey2_sh_update ); |
| 562 | return (void *) ~0; |
| 563 | } |
| 564 | |
| 565 | const struct CustomSound_interface odyssey2_sound_interface = |
| 566 | { |
| 567 | odyssey2_sh_start |
| 568 | }; |
| 569 | |
| 557 | 570 | void odyssey2_sh_update( void *param,stream_sample_t **inputs, stream_sample_t **_buffer,int length ) |
| 558 | 571 | { |
| 559 | 572 | static UINT32 signal; |