依赖库:https://github.com/waywardgeek/sonic 基础库:Sonic.java /* Sonic library Copyright 2010, 2011 Bill Cox This file is part of the Sonic Library. This file is licensed under the Apache 2.0 license. */ public class Sonic { private static final int SONIC_
Android中播放音频,除了使用MediaPlayer,还可以使用SoundPool.SoundPool使用音效池的概念来管理多个短促的音效,对于需要短促的提示音的场景特别合适. 通常调用SoundPool.load来加载某个音频文件,获得一个音效id,然后就可以用play方法来播放. SoundPool的play方法原型如下: int play(int soundID, float leftVolume, float rightVolume, int priority, int loop,
查找WebKit.NET相关文档,没有找到音量控制解决方法.换思路进行解决,尝试用Win32 API进行解决 [DllImport("winmm.dll")] public static extern int waveOutSetVolume(IntPtr h, uint dwVolume); 试了试是可以调整音量的,全部代码如下 using System; using System.Collections.Generic; using System.Text; using Syste