10-22 17:54:42.795: V/SoundPool(22400): close(292)
10-22 17:54:42.795: V/SoundPool(22400): pointer = 0x7d6c5000, size = 32768, sampleRate = 44100, numChannels = 2
10-22 17:54:42.795: V/SoundPool-JNI(22400): callback: (1, 1, 0, 0x6faee278, 0x1d20062a)
10-22 17:54:42.795: V/SoundPool-JNI(22400): android_media_SoundPool_SoundPoolImpl_play
10-22 17:54:42.795: V/SoundPool(22400): play sampleID=1, leftVolume=5.000000, rightVolume=5.000000, priority=0, loop=0, rate=1.000000
10-22 17:54:42.795: V/SoundPool(22400): mState = 0 mChannelID=0, mNumChannels=1, mPos = 0, mPriority=-1, mLoop=0
10-22 17:54:42.795: V/SoundPool(22400): Allocated active channel
10-22 17:54:42.795: V/SoundPool(22400): play channel 0x6faee2f0 state = 0
10-22 17:54:42.795: V/SoundPool(22400): SoundChannel::play 0x6faee2f0: sampleID=1, channelID=1, leftVolume=5.000000, rightVolume=5.000000, priority=0, loop=0, rate=1.000000
10-22 17:54:42.796: V/AudioTrack(22400): sharedBuffer: 0x7d6c5000, size: 32768
10-22 17:54:42.796: V/AudioTrack(22400): set() streamType 3 frameCount 0 flags 0004
10-22 17:54:42.796: D/AudioTrack(22400): audiotrack 0x73612d08 set Type 3, rate 44100, fmt 1, chn 3, fcnt 0, flags 0004
10-22 17:54:42.797: V/AudioTrack(22400): createTrack_l() output 2 afLatency 92
10-22 17:54:42.797: D/AudioTrack(22400): pid [22400] sched_setscheduler to default: 1
10-22 17:54:42.798: E/AudioTrack(22400): AudioFlinger could not create track, status: -12
10-22 17:54:42.799: E/SoundPool(22400): Error creating AudioTrack
10-22 17:54:42.799: V/SoundPool(22400): delete oldTrack 0x0
10-22 17:54:42.799: D/AudioTrack(22400): ~audioTrack 0x73612d08
10-22 17:54:42.799: D/AudioTrackCenter(22400): removeTrack, trackPtr:0x73612d08
버튼을 누르면 소리가나는건데 처음에는 잘나다가 어느순간부터 소리가안나게됩니다 위와같은 에러를 뱉으면서요 그래서 status -12 에러가 메모리 누수로 나는거라고 들어서 soundpool release 로 메모리를 비워주고 다시해봐소 잠깐 다시들리고 그래서 거기서 좀더 응용을해봐서
++count_music;
System.out.println("반복 재생횟수 :"+count_music);
if(count_music>13){
sndpl12.release(); // 메모리 비우기
sndpl12.stop(sndID12);
sndID12 = 0;
System.out.println("반복 재생횟수 초기화");
Log.e("여기로 넘어오나", "ㅇㅇ..");
count_music = 0; //반복재생횟수 초기화
음성이 13번이상 출력되면 release 를시켜서 테스트를해보았는데 잠깐잘되는거같더니 근본적인 문제가 해결이안되고있습니다 혹시 해당 에러를 해결하신 선배님들 조언 부탁드립니다.