src/mess/audio/upd1771.c
| r7768 | r7769 | |
| 106 | 106 | UINT8 expected_bytes; |
| 107 | 107 | |
| 108 | 108 | UINT8 state;//0:silence, 1 noise, 2 tone |
| 109 | UINT8 pcm; |
| 109 | 110 | |
| 110 | 111 | //tone |
| 111 | 112 | UINT8 t_timbre; //[0; 7] |
| r7768 | r7769 | |
| 232 | 233 | } |
| 233 | 234 | |
| 234 | 235 | |
| 236 | WRITE_LINE_DEVICE_HANDLER( upd1771_pcm_w ) |
| 237 | { |
| 238 | upd1771_state *upd1771 = get_safe_token( device ); |
| 239 | |
| 240 | logerror( "upd1771_pcm_w: state = %d\n", state ); |
| 241 | upd1771->pcm = state ? 1 : 0; |
| 242 | } |
| 243 | |
| 244 | |
| 235 | 245 | static STREAM_UPDATE( upd1771c_update ) |
| 236 | 246 | { |
| 237 | 247 | upd1771_state *state = get_safe_token( device ); |
| r7768 | r7769 | |
| 331 | 341 | |
| 332 | 342 | state->index = 0; |
| 333 | 343 | state->expected_bytes = 0; |
| 344 | state->pcm = 0; |
| 334 | 345 | } |
| 335 | 346 | |
| 336 | 347 | |