1个回答
展开全部
Cursor mCursor = null;
String[] mAudiocols = new String[] {
MediaStore.Audio.Media.TITLE,
MediaStore.Audio.Media.DURATION,
MediaStore.Audio.Media.ARTIST,
MediaStore.Audio.Media._ID,
MediaStore.Audio.Media.SIZE,
MediaStore.Audio.Media.DATA,
MediaStore.Audio.Media.DISPLAY_NAME,
MediaStore.Audio.Media.BOOKMARK,
MediaStore.Audio.Media.ALBUM
};
mCursor =getContentResolver().query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,mAudiocols,"is_music=1",null,MediaStore.Audio.Media.TITLE);
mTotalFiles = mCursor.getCount();
while(mCurrentPos < mTotalFiles){
mCurrentPos++;
mCursor.moveToPosition(mCurrentPos);
mCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.TITLE));
}
具体没看过,大概流程:
client端的AudioSystem中调用getParameters,调用到IAudioFlinger,然后调用到libs下的AudioFlinger::getParameters,再下去就是要看每个系统了,我们是自己的硬件系统,所以无法给你更多的提示。
String[] mAudiocols = new String[] {
MediaStore.Audio.Media.TITLE,
MediaStore.Audio.Media.DURATION,
MediaStore.Audio.Media.ARTIST,
MediaStore.Audio.Media._ID,
MediaStore.Audio.Media.SIZE,
MediaStore.Audio.Media.DATA,
MediaStore.Audio.Media.DISPLAY_NAME,
MediaStore.Audio.Media.BOOKMARK,
MediaStore.Audio.Media.ALBUM
};
mCursor =getContentResolver().query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,mAudiocols,"is_music=1",null,MediaStore.Audio.Media.TITLE);
mTotalFiles = mCursor.getCount();
while(mCurrentPos < mTotalFiles){
mCurrentPos++;
mCursor.moveToPosition(mCurrentPos);
mCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.TITLE));
}
具体没看过,大概流程:
client端的AudioSystem中调用getParameters,调用到IAudioFlinger,然后调用到libs下的AudioFlinger::getParameters,再下去就是要看每个系统了,我们是自己的硬件系统,所以无法给你更多的提示。
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询