【问题标题】:Google Glass: playSoundEffect doesn't work谷歌眼镜:playSoundEffect 不起作用
【发布时间】:2014-01-04 16:20:30
【问题描述】:

我正在尝试向我的 Glass 应用程序添加一些声音效果,以便为用户提供与正常 Glass 菜单中相同的声音反馈。 Glass 开发人员指南推荐以下代码 (https://developers.google.com/glass/develop/gdk/reference/com/google/android/glass/media/Sounds):

AudioManager audio = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
audio.playSoundEffect(Sounds.TAP);

我在不同的单击处理程序和函数中尝试了此代码,但似乎此示例不起作用。 My Glass 像往常一样在菜单中播放音效,但 playSoundEffect() 根本不发出任何声音。

感谢您的帮助!

【问题讨论】:

    标签: google-glass google-gdk


    【解决方案1】:

    我可以通过恢复出厂设置来解决这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-02
      相关资源
      最近更新 更多