Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6629805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:18:46+00:00 2026-05-25T22:18:46+00:00

I am developing a game and playing audio sounds using SoundPool and MediaPlayer .

  • 0

I am developing a game and playing audio sounds using SoundPool and MediaPlayer. Every time when any audio sound plays, it shows error in LogCat.

public class MusicSoundResources {

    private static final String CLASS_TAG = "SoundResources";

    private static MusicSoundResources _instance;
    public static HashMap<String, MediaPlayer> mSoundPoolMap;
    private static AudioManager  mAudioManager;
    private static Context mContext;

    public MusicSoundResources() {

    }

    public static void initSounds(Context theContext) {
         mContext = theContext;
         mSoundPoolMap = new HashMap<String, MediaPlayer>();
         mAudioManager = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE);

         loadSounds();
    }

    private static void loadSounds()    {
        mSoundPoolMap.put("swallowed", MediaPlayer.create(mContext, R.raw.swallowed));
    }

    public static void playSound(String soundTrackIndex, boolean loop) {
        MediaPlayer mediaPlayer = mSoundPoolMap.get(soundTrackIndex);
        float streamVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);
        streamVolume = streamVolume / mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);

        mediaPlayer.setVolume(streamVolume, streamVolume);
        mediaPlayer.setLooping(loop);
        mediaPlayer.start();
    }
}

These are two logs which display:

05-31 15:02:56.400: ERROR/AudioTrack(2384): getAudioMode[0]
05-31 15:02:56.400: ERROR/AudioR2VS(2384): The 11025 sample rate is not supported by R2VS solution.

Same problem occurs when I use SoundPool.

Tell me what is the supported sample rate.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:18:47+00:00Added an answer on May 25, 2026 at 10:18 pm

    Finally I got the answer for this. This error comes when we play sounds of bit rate higher than 11025 Hz. This is an an internal error of android media player.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I developing simple game application in which i playing sound with UIView animation. theAudioPlayer
I'm developing an iPhone game and currently using AVAudioPlayer for playing background music and
Hi i am developing game level editor.Currently I am using win32 with directX.But with
I'm developing a game using XNA and C# and was attempting to avoid calling
I'm developing a game for my dissertation, and I'm using the spiral method approach.
I am developing game editor in c++.I have implemented reflection mechanism using DiaSDK.Now I
Im developing a game for Android using AndEngine. As of now, I want to
I am developing a game in which I am using Landscape mode I have
I am developing a game using LibGdx, when i tried to run the game
I have been developing a game using Flex, and used the Timer class to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.