Changeset 1821:09e0eed94c03 in roaraudio
- Timestamp:
- 05/22/09 23:56:51 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/include/light.h
r1817 r1821 39 39 int light_reset (void); 40 40 41 int light_check_stream (int id); 42 int light_send_stream (int id); 43 41 44 #endif 42 45 -
roard/light.c
r1819 r1821 64 64 } 65 65 66 int light_check_stream (int id) { 67 return 0; 68 } 69 70 int light_send_stream (int id) { 71 return 0; 72 } 73 66 74 //ll -
roard/streams.c
r1804 r1821 840 840 return 0; 841 841 842 if ( s->dir != ROAR_DIR_PLAY && s->dir != ROAR_DIR_BIDIR )843 return 0;844 845 842 if ( streams_get_flag(id, ROAR_FLAG_PAUSE) ) 846 843 return 0; 844 845 switch (s->dir) { 846 case ROAR_DIR_LIGHT_IN: 847 return light_check_stream(id); 848 break; 849 case ROAR_DIR_PLAY: 850 case ROAR_DIR_BIDIR: 851 break; 852 default: 853 return 0; 854 break; 855 } 847 856 848 857 ROAR_DBG("streams_check(id=%i): fh = %i", id, fh); … … 932 941 */ 933 942 934 if ( s->dir != ROAR_DIR_MONITOR && s->dir != ROAR_DIR_OUTPUT && s->dir != ROAR_DIR_BIDIR )935 return 0;936 937 if ( s->dir == ROAR_DIR_OUTPUT && g_standby )938 return 0;939 943 940 944 if ( streams_get_flag(id, ROAR_FLAG_PAUSE) ) 941 945 return 0; 946 947 switch (s->dir) { 948 case ROAR_DIR_LIGHT_OUT: 949 return light_send_stream(id); 950 break; 951 case ROAR_DIR_OUTPUT: 952 if ( g_standby ) 953 return 0; 954 case ROAR_DIR_MONITOR: 955 case ROAR_DIR_BIDIR: 956 break; 957 958 default: 959 return 0; 960 break; 961 } 962 942 963 943 964 ROAR_DBG("streams_send_mon(id=%i): fh = %i", id, s->fh);
Note: See TracChangeset
for help on using the changeset viewer.