어떻게 알 수 있습니까? VideoView는 정상적으로 작동하지만 soundPool에서 소리가 들리지 않습니다.한 번에 soundPool이있는 VideoView
soundPool = new SoundPool(4, AudioManager.STREAM_MUSIC, 100);
soundsMap = new HashMap<Integer, Integer>();
soundsMap.put(SOUND1, soundPool.load(this, R.raw.water1, 1));
soundsMap.put(SOUND2, soundPool.load(this, R.raw.water2, 1));
AudioManager mgr = (AudioManager)getSystemService(Context.AUDIO_SERVICE);
float streamVolumeCurrent = mgr.getStreamVolume(AudioManager.STREAM_MUSIC);
float streamVolumeMax = mgr.getStreamMaxVolume(AudioManager.STREAM_MUSIC);
float volume = streamVolumeCurrent/streamVolumeMax;
soundPool.play(SOUND1, volume, volume, 1, 0, 1);
.
.
.
VideoView.start();
를 저장하기 위해지도를 사용하여이 대신 위의 코드의 시도? –
비디오를 시작하고 배경 음악을 들으려면 사운드를 재생해야합니다. 비디오 작품, 소리 - 아니요 : [ – Eves
Soundpool의 한도는 1MB이고 오디오 파일은 오디오 클립입니까? –