8182838485868788
TIClip clip = getCurrentClip(); StreamInfo[] streams = clip.getAudioStreams(); try { selectStreamNumber(selectLanguage(language, streams)); } catch (StreamNotAvailableException e) { throw new LanguageNotAvailableException(); } }
65666768697071
for (int i = 0; i < streams.length; i++) { if (streams[i].getLang().equals(language)) return i + 1; } throw new LanguageNotAvailableException(); }
8687888990919293
TIClip clip = getCurrentClip(); StreamInfo[] streams = clip.getSecAudioStreams(); try { selectStreamNumber(selectLanguage(language, streams)); } catch (StreamNotAvailableException e) { throw new LanguageNotAvailableException(); } }
8384858687888990