AudioTrack如何检测结束 楼主现在知道怎么弄了么?求解啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 while (m_keep_running) { try { if (-1 == in.read(m_out_bytes, 0, m_out_buf_size)){ m_keep_running = false; break; } bytes_pkg = m_out_bytes.clone(); m_out_trk.write(bytes_pkg, 0, bytes_pkg.length); } catch (Exception e) { System.out.println("Read File End************************"); m_keep_running = false; e.printStackTrace(); } }如上面代码所示,将调用inputstream的另外一个read函数,在读取数据的时候,到了文件末尾的话,会返回-1,这样可以检测文件的结束 andorid-网络视频播放器 android 布局自适应各种分辨率呢 android opengl es 全屏抗钜齿 两个Service之间如何共享数据呢 Android的WebView显示带有CSS的HTML有问题 新手求教啊 百度地图SupportMapFragment与viewpager联合使用的问题 请教各位如何读取/dev下面的设备文件 求 phonegap大神解答啊!! android开发中 我使用的是百度API遇到的问题!!本人菜鸟希望大家帮助下 玩过工厂模式的大神帮帮忙 怎么处理个人信息的编辑
try {
if (-1 == in.read(m_out_bytes, 0, m_out_buf_size)){
m_keep_running = false;
break;
}
bytes_pkg = m_out_bytes.clone();
m_out_trk.write(bytes_pkg, 0, bytes_pkg.length);
} catch (Exception e) {
System.out.println("Read File End************************");
m_keep_running = false;
e.printStackTrace();
}
}如上面代码所示,将调用inputstream的另外一个read函数,在读取数据的时候,到了文件末尾的话,会返回-1,这样可以检测文件的结束