English 中文(简体)
为什么要压缩我的话?
原标题:Why is my mp3 being compressed?
  • 时间:2011-11-01 18:20:31
  •  标签:
  • android

试图通过装满负荷的id子在声音池中开标,还试图通过档案记录员这样做。

我总是有同样的例外:

This file can not be opened as a file descriptor; it is probably compressed

为什么要压缩我的话?

这里是健全的集合代码:

mySoundPool = new SoundPool(10, AudioManager.STREAM_MUSIC, 0);
try { mySoundPool.load(this, R.raw.drum, 1);
   } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
        Log.e(TAG, "", e);
    }
最佳回答

MP3是一种压缩的文档格式,因此你的MP3文件已经压缩。 http://en.wikipedia.org/wiki/MP3”rel=“nofollow noreferer” 说:

MP3, is a patented digital audio encoding format using a form of lossy data compression

https://stackoverflow.com/questions/5045267/ Soundpond-Ga-with-mp3-questions> 这一问题表明,你应使用西非经货联盟或欧佩集团对安乐施的支持,并提供另一种玩弄MP3的方法。

rel=“nofollow noreferer”>SoundPool docs 这确实意味着MP3的支持,因此我不敢肯定这里的错误。 我建议你尝试用其他的MP3文档进行测试,并测试将现有的MP3改为WAV/OGG格式,以测试结果。

You ll need to rename it as Android resources don t include the file extension. Make sure you check if you have another file in res aw with the same name but a different file extension, as that could cause problems.

问题回答

暂无回答




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签