| 981 | return j.tag && j.tag->parse_tag == parse_tag_wait; |
| 982 | } |
| 983 | static bool layout_contains_streams() |
| 984 | { |
| 985 | tag_type* sound_tag = (tag_type*)xtextbox::find_format_tag(substr::create("sound", 5)); |
| 986 | jot* jots = (jot*)((xtextbox::layout*)&shared.lt)->jots(); |
| 987 | jot* end = jots + ((xtextbox::layout*)&shared.lt)->jots_size(); |
| 988 | |
| 989 | for (; jots != end; jots++) |
| 990 | { |
| 991 | if (jots->tag == sound_tag && jots->context_size == sizeof(sound_context)) |
| 992 | { |
| 993 | sound_context* c = (sound_context*)jots->context; |
| 994 | if (c->source == sound_context::SOURCE_STREAM) |
| 995 | { |
| 996 | return true; |
| 997 | } |
| 998 | } |
| 999 | } |
| 1000 | |
| 1001 | return false; |
| 1002 | } |
| 1003 | |
| 1004 | static void lock_stream() |
| 1005 | { |
no test coverage detected