Changeset 1909:5693a37bf8f4 in roaraudio
- Timestamp:
- 05/26/09 13:34:34 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/midi.c
r1898 r1909 323 323 unsigned char * d; 324 324 int len; 325 int send_clock; 325 326 326 327 if ( g_streams[id] == NULL ) … … 330 331 331 332 s = ROAR_STREAM(ss = g_streams[id]); 333 334 send_clock = streams_get_flag(id, ROAR_FLAG_SYNC); 332 335 333 336 while (buf != NULL) { … … 337 340 338 341 if (mes->type == MIDI_TYPE_CLOCK_TICK || mes->type == MIDI_TYPE_CLOCK_START || mes->type == MIDI_TYPE_CLOCK_STOP ) { 339 if ( stream_vio_s_write(ss, &(mes->type), 1) != 1 ) { 340 streams_delete(id); 341 return -1; 342 if ( send_clock ) 343 if ( stream_vio_s_write(ss, &(mes->type), 1) != 1 ) { 344 streams_delete(id); 345 return -1; 346 } 342 347 } 343 348
Note: See TracChangeset
for help on using the changeset viewer.