src/mess/video/odyssey2.c
| r1852 | r1853 | |
| 558 | 558 | |
| 559 | 559 | static void *odyssey2_sh_start(int clock, const struct CustomSound_interface *config) |
| 560 | 560 | { |
| 561 | | odyssey2_sh_channel = stream_create(0, 1, Machine->sample_rate, 0, odyssey2_sh_update ); |
| 561 | odyssey2_sh_channel = stream_create(0, 1, clock/(I824X_LINE_CLOCKS*4), 0, odyssey2_sh_update ); |
| 562 | 562 | return (void *) ~0; |
| 563 | 563 | } |
| 564 | 564 | |
| r1852 | r1853 | |
| 584 | 584 | { |
| 585 | 585 | *buffer = 0; |
| 586 | 586 | *buffer = signal & 0x1; |
| 587 | | period = (o2_vdc.s.sound & 0x20) ? 11 : 44; |
| 587 | period = (o2_vdc.s.sound & 0x20) ? 1 : 4; |
| 588 | 588 | if( ++count >= period ) |
| 589 | 589 | { |
| 590 | 590 | count = 0; |