AudioTrack: play() called on uninitialized AudioTrack

后端 未结 2 497
鱼传尺愫
鱼传尺愫 2020-12-19 03:03

I\'m experimenting with AudioTrack class. Basically, my app has to generate a sound when the user touches a specific object on screen. I\'ve used this example as a guide.

2条回答
  •  暖寄归人
    2020-12-19 03:42

    Why you have commented out your stopPlaying() method?

    You can only create 32 AudioTracks. If you want more you should call release() method.

提交回复
热议问题