在smarteyeglasses上播放声音会引发警告

时间:2015-03-31 09:19:42

标签: sony-smarteyeglass

我在这里关注指南https://developer.sony.com/develop/wearables/smarteyeglass-sdk/guides/use-bluetooth-for-audio-io/

当我使用代码

在Smarteyeglasses上播放原始mp3时
SoundPool mSoundPool  = new SoundPool(5, AudioManager.MODE_IN_CALL, 0);
// Use the play() method to request for playback of an audio file.
int soundId = mSoundPool.load(mContext, R.raw.cannotregisterreceiver, 1);
mSoundPool.setOnLoadCompleteListener(new OnLoadCompleteListener() {

        @Override
        public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {
            Log.d(TAG, "Playing sound");
            int returnValue = soundPool.play(sampleId, 1, 1, 0, 0, 1);              
            Log.d(TAG, "Playing sound " + returnValue);
        }
});

我收到警告说AUDIO_OUTPUT_FLAG_FAST denied by client并且音频未播放

任何想法为什么?

0 个答案:

没有答案