Android中播放声音的两种方法MediaPlayer 和SoundPool

上传者: ygswine | 上传时间: 2021-06-18 12:33:29 | 文件大小: 526KB | 文件类型: ZIP
介绍android如果使用两个工具类进行声音播放 详见转载博客 http://blog.csdn.net/ygswine/article/details/17297571

文件下载

资源详情

[{"title":"( 39 个子文件 526KB ) Android中播放声音的两种方法MediaPlayer 和SoundPool","children":[{"title":"SoundPoolDemo","children":[{"title":"bin","children":[{"title":"res","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"soundpooldemo","children":[{"title":"BuildConfig.class <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"SoundPoolActivity$2.class <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 429B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 510B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 428B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 482B </span>","children":null,"spread":false},{"title":"SoundPoolActivity$1.class <span style='color:#111;'> 878B </span>","children":null,"spread":false},{"title":"MusicPlayUtil.class <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"SoundPoolActivity$3.class <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 361B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 415B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 743B </span>","children":null,"spread":false},{"title":"MusicPlayUtil$StopMusic.class <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 493B </span>","children":null,"spread":false},{"title":"SoundPoolActivity.class <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 452B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 897B </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 334B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"sound_pool.xml <span style='color:#111;'> 263B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 14.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 230B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 220B </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw720dp-land","children":[{"title":"dimens.xml <span style='color:#111;'> 277B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw600dp","children":[{"title":"dimens.xml <span style='color:#111;'> 203B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"soundpool_activity.xml <span style='color:#111;'> 839B </span>","children":null,"spread":false}],"spread":true}],"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"soundpooldemo","children":[{"title":"BuildConfig.java <span style='color:#111;'> 167B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"soundpooldemo","children":[{"title":"SoundPoolActivity.java <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false},{"title":"MusicPlayUtil.java <span style='color:#111;'> 2.90KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 849B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 897B </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 543.16KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • lfs736012 :
    不错 可以学习,初级开发者
    2016-01-24
  • bin362490109 :
    不错 可以拿来参考
    2015-06-16
  • snow92 :
    还不错,还有文档说明
    2015-03-02

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明