Ash McConnell
Ash McConnell

Reputation: 1337

Android MediaPlayer warnings when looping a sound

I am getting warning messages in the log file. I continuously play a looping sound during gameplay (and adjust the volume). The log message seems to be produced when the sound is being looped (every 2 secs or so). It is a normal .wav file and it plays as expected.

squishSound = MediaPlayer.create(context, R.raw.juicy);
squishSound.setVolume(0, 0);
squishSound.setLooping(true);
squishSound.start();

This produces a log message every 2 seconds: -

05-16 15:31:23.745: WARN/MediaPlayer(10356): info/warning (1, 44)

05-16 15:31:26.112: WARN/MediaPlayer(10356): info/warning (1, 44)

05-16 15:31:28.479: WARN/MediaPlayer(10356): info/warning (1, 44)

05-16 15:31:30.846: WARN/MediaPlayer(10356): info/warning (1, 44)

05-16 15:31:33.221: WARN/MediaPlayer(10356): info/warning (1, 44)

05-16 15:31:35.589: WARN/MediaPlayer(10356): info/warning (1, 44)

I have searched, but I can't find any reason why this would happen.

Any ideas?

Upvotes: 2

Views: 1577

Answers (1)

MByD
MByD

Reputation: 137382

This is OK, and probably notifies that the file is replayed.

Upvotes: 1

Related Questions