Changeset 1846:8bb3ab33869b in roaraudio
- Timestamp:
- 05/23/09 06:12:38 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/midi.c
r1845 r1846 48 48 49 49 int midi_check_stream (int id) { 50 return -1; 51 } 50 struct roar_stream * s; 51 struct roar_stream_server * ss; 52 53 if ( g_streams[id] == NULL ) 54 return -1; 55 56 ROAR_DBG("midi_check_stream(id=%i) = ?", id); 57 58 s = ROAR_STREAM(ss = g_streams[id]); 59 60 switch (s->info.codec) { 61 default: 62 streams_delete(id); 63 return -1; 64 } 65 66 return 0; 67 } 68 52 69 int midi_send_stream (int id) { 53 return -1; 70 struct roar_stream * s; 71 struct roar_stream_server * ss; 72 73 if ( g_streams[id] == NULL ) 74 return -1; 75 76 ROAR_DBG("midi_send_stream(id=%i) = ?", id); 77 78 s = ROAR_STREAM(ss = g_streams[id]); 79 80 switch (s->info.codec) { 81 default: 82 streams_delete(id); 83 return -1; 84 } 85 86 return 0; 54 87 } 55 88
Note: See TracChangeset
for help on using the changeset viewer.