Android通过摇晃手机的频率来控制声音的频率(7)
来源:未知 责任编辑:责任编辑 发表时间:2013-11-15 19:49 点击:次
92 if (mSoundEnable) {
93 if (false == playing) {
94 play(1, loopMode, mRate);
95 } else {
96 mSoundPool.resume(mStreamID);
97 }
98 }
99 // mSoundPool.autoResume();
100 }
101
102 public void stop() {
103 if (mSoundEnable) {
104 playing = false;
105 mSoundPool.stop(mStreamID);
106 }
107 }
108
109 public void setSound(boolean soundEnable) {
110 mSoundEnable = soundEnable;
111 }
112
113 public void release() {
114 if (mSoundEnable) {
115 playing = false;
116 mSoundPool.release();
117 }
118 mSoundPool.release();
119 mSoundPool = null;
120 mSoundPoolMap.clear();
121 mSoundPoolMap = null;
122 }
123 }
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>