199200201202203204205206207208209
} } out.write(bytes, start, i); synchronized (out) { out.notify(); } synchronized (out) { out.wait(); out.reset();
226227228229230231232233234235236
{ } finished[0] = true; synchronized (out) { out.notify(); } } } }; exs.submit(r);
242243244245246247248249250251252
out.wait(); if (out.size() > 0) { play = out.toByteArray(); } out.notify(); } if (play != null && play.length > 0) { System.out.println("Playing: " + new String(play)); seq.readFrom(new FeatureInputStream(new ByteArrayInputStream(play)));