int anim abc_fade_in 0x7f040000
int anim abc_fade_out 0x7f040001
int anim abc_slide_in_bottom 0x7f040002
int anim abc_slide_in_top 0x7f040003
int anim abc_slide_out_bottom 0x7f040004
int anim abc_slide_out_top 0x7f040005
int attr actionBarDivider 0x7f01000f
int attr actionBarItemBackground 0x7f010010
int attr actionBarSize 0x7f01000e
int attr actionBarSplitStyle 0x7f01000c
int attr actionBarStyle 0x7f01000b
int attr actionBarTabBarStyle 0x7f010008
int attr actionBarTabStyle 0x7f010007
int attr actionBarTabTextStyle 0x7f010009
int attr actionBarWidgetTheme 0x7f01000d
int attr actionButtonStyle 0x7f010016
int attr actionDropDownStyle 0x7f010047
int attr actionLayout 0x7f01004e
int attr actionMenuTextAppearance 0x7f010011
int attr actionMenuTextColor 0x7f010012
int attr actionModeBackground 0x7f01003c
int attr actionModeCloseButtonStyle 0x7f01003b
int attr actionModeCloseDrawable 0x7f01003e
int attr actionModeCopyDrawable 0x7f010040
int attr actionModeCutDrawable 0x7f01003f
int attr actionModeFindDrawable 0x7f010044
int attr actionModePasteDrawable 0x7f010041
int attr actionModePopupWindowStyle 0x7f010046
int attr actionModeSelectAllDrawable 0x7f010042
int attr actionModeShareDrawable 0x7f010043
int attr actionModeSplitBackground 0x7f01003d
int attr actionModeStyle 0x7f01003a
int attr actionModeWebSearchDrawable 0x7f010045
int attr actionOverflowButtonStyle 0x7f01000a
int attr actionProviderClass 0x7f010050
int attr actionViewClass 0x7f01004f
int attr activityChooserViewStyle 0x7f01006c
int attr background 0x7f01002f
int attr backgroundSplit 0x7f010031
int attr backgroundStacked 0x7f010030
int attr buttonBarButtonStyle 0x7f010018
int attr buttonBarStyle 0x7f010017
int attr customNavigationLayout 0x7f010032
int attr disableChildrenWhenDisabled 0x7f010054
int attr displayOptions 0x7f010028
int attr divider 0x7f01002e
int attr dividerHorizontal 0x7f01001b
int attr dividerPadding 0x7f010056
int attr dividerVertical 0x7f01001a
int attr dropDownListViewStyle 0x7f010021
int attr dropdownListPreferredItemHeight 0x7f010048
int attr expandActivityOverflowButtonDrawable 0x7f01006b
int attr height 0x7f010026
int attr homeAsUpIndicator 0x7f010013
int attr homeLayout 0x7f010033
int attr icon 0x7f01002c
int attr iconifiedByDefault 0x7f01005a
int attr indeterminateProgressStyle 0x7f010035
int attr initialActivityCount 0x7f01006a
int attr isLightTheme 0x7f010059
int attr itemPadding 0x7f010037
int attr listChoiceBackgroundIndicator 0x7f01004c
int attr listPopupWindowStyle 0x7f010022
int attr listPreferredItemHeight 0x7f01001c
int attr listPreferredItemHeightLarge 0x7f01001e
int attr listPreferredItemHeightSmall 0x7f01001d
int attr listPreferredItemPaddingLeft 0x7f01001f
int attr listPreferredItemPaddingRight 0x7f010020
int attr logo 0x7f01002d
int attr navigationMode 0x7f010027
int attr paddingEnd 0x7f010039
int attr paddingStart 0x7f010038
int attr panelMenuListTheme 0x7f01004b
int attr panelMenuListWidth 0x7f01004a
int attr popupMenuStyle 0x7f010049
int attr popupPromptView 0x7f010053
int attr progressBarPadding 0x7f010036
int attr progressBarStyle 0x7f010034
int attr prompt 0x7f010051
int attr queryHint 0x7f01005b
int attr searchDropdownBackground 0x7f01005c
int attr searchResultListItemHeight 0x7f010065
int attr searchViewAutoCompleteTextView 0x7f010069
int attr searchViewCloseIcon 0x7f01005d
int attr searchViewEditQuery 0x7f010061
int attr searchViewEditQueryBackground 0x7f010062
int attr searchViewGoIcon 0x7f01005e
int attr searchViewSearchIcon 0x7f01005f
int attr searchViewTextField 0x7f010063
int attr searchViewTextFieldRight 0x7f010064
int attr searchViewVoiceIcon 0x7f010060
int attr selectableItemBackground 0x7f010019
int attr showAsAction 0x7f01004d
int attr showDividers 0x7f010055
int attr spinnerDropDownItemStyle 0x7f010058
int attr spinnerMode 0x7f010052
int attr spinnerStyle 0x7f010057
int attr subtitle 0x7f010029
int attr subtitleTextStyle 0x7f01002b
int attr textAllCaps 0x7f01006d
int attr textAppearanceLargePopupMenu 0x7f010014
int attr textAppearanceListItem 0x7f010023
int attr textAppearanceListItemSmall 0x7f010024
int attr textAppearanceSearchResultSubtitle 0x7f010067
int attr textAppearanceSearchResultTitle 0x7f010066
int attr textAppearanceSmallPopupMenu 0x7f010015
int attr textColorSearchUrl 0x7f010068
int attr title 0x7f010025
int attr titleTextStyle 0x7f01002a
int attr windowActionBar 0x7f010000
int attr windowActionBarOverlay 0x7f010001
int attr windowFixedHeightMajor 0x7f010006
int attr windowFixedHeightMinor 0x7f010004
int attr windowFixedWidthMajor 0x7f010003
int attr windowFixedWidthMinor 0x7f010005
int attr windowSplitActionBar 0x7f010002
int bool abc_action_bar_embed_tabs_pre_jb 0x7f060000
int bool abc_action_bar_expanded_action_views_exclusive 0x7f060001
int bool abc_config_actionMenuItemAllCaps 0x7f060005
int bool abc_config_allowActionMenuItemTextWithIcon 0x7f060004
int bool abc_config_showMenuShortcutsWhenKeyboardPresent 0x7f060003
int bool abc_split_action_bar_is_narrow 0x7f060002
int color abc_search_url_text_holo 0x7f070003
int color abc_search_url_text_normal 0x7f070000
int color abc_search_url_text_pressed 0x7f070002
int color abc_search_url_text_selected 0x7f070001
int dimen abc_action_bar_default_height 0x7f080002
int dimen abc_action_bar_icon_vertical_padding 0x7f080003
int dimen abc_action_bar_progress_bar_size 0x7f08000a
int dimen abc_action_bar_stacked_max_height 0x7f080009
int dimen abc_action_bar_stacked_tab_max_width 0x7f080001
int dimen abc_action_bar_subtitle_bottom_margin 0x7f080007
int dimen abc_action_bar_subtitle_text_size 0x7f080005
int dimen abc_action_bar_subtitle_top_margin 0x7f080006
int dimen abc_action_bar_title_text_size 0x7f080004
int dimen abc_action_button_min_width 0x7f080008
int dimen abc_config_prefDialogWidth 0x7f080000
int dimen abc_dropdownitem_icon_width 0x7f080010
int dimen abc_dropdownitem_text_padding_left 0x7f08000e
int dimen abc_dropdownitem_text_padding_right 0x7f08000f
int dimen abc_panel_menu_list_width 0x7f08000b
int dimen abc_search_view_preferred_width 0x7f08000d
int dimen abc_search_view_text_min_width 0x7f08000c
int dimen activity_horizontal_margin 0x7f080015
int dimen activity_vertical_margin 0x7f080016
int dimen dialog_fixed_height_major 0x7f080013
int dimen dialog_fixed_height_minor 0x7f080014
int dimen dialog_fixed_width_major 0x7f080011
int dimen dialog_fixed_width_minor 0x7f080012
int drawable abc_ab_bottom_solid_dark_holo 0x7f020000
int drawable abc_ab_bottom_solid_light_holo 0x7f020001
int drawable abc_ab_bottom_transparent_dark_holo 0x7f020002
int drawable abc_ab_bottom_transparent_light_holo 0x7f020003
int drawable abc_ab_share_pack_holo_dark 0x7f020004
int drawable abc_ab_share_pack_holo_light 0x7f020005
int drawable abc_ab_solid_dark_holo 0x7f020006
int drawable abc_ab_solid_light_holo 0x7f020007
int drawable abc_ab_stacked_solid_dark_holo 0x7f020008
int drawable abc_ab_stacked_solid_light_holo 0x7f020009
int drawable abc_ab_stacked_transparent_dark_holo 0x7f02000a
int drawable abc_ab_stacked_transparent_light_holo 0x7f02000b
int drawable abc_ab_transparent_dark_holo 0x7f02000c
int drawable abc_ab_transparent_light_holo 0x7f02000d
int drawable abc_cab_background_bottom_holo_dark 0x7f02000e
int drawable abc_cab_background_bottom_holo_light 0x7f02000f
int drawable abc_cab_background_top_holo_dark 0x7f020010
int drawable abc_cab_background_top_holo_light 0x7f020011
int drawable abc_ic_ab_back_holo_dark 0x7f020012
int drawable abc_ic_ab_back_holo_light 0x7f020013
int drawable abc_ic_cab_done_holo_dark 0x7f020014
int drawable abc_ic_cab_done_holo_light 0x7f020015
int drawable abc_ic_clear 0x7f020016
int drawable abc_ic_clear_disabled 0x7f020017
int drawable abc_ic_clear_holo_light 0x7f020018
int drawable abc_ic_clear_normal 0x7f020019
int drawable abc_ic_clear_search_api_disabled_holo_light 0x7f02001a
i
java写的音乐播放器,可实现简单的音乐播放功能,支持MP3等多种音乐格式 .rar
需积分: 0 72 浏览量
更新于2023-06-20
1
收藏 805KB RAR 举报
该音乐播放器是基于Java语言开发的,具备基础的音乐播放功能,能够处理MP3等多种常见的音频格式。在深入探讨这个项目的知识点之前,先要理解Java作为一种跨平台的编程语言,其强大的类库和面向对象特性使其非常适合进行这样的多媒体应用开发。
我们要了解Java中的音频处理框架。Java Sound API是Java提供的核心音频处理组件,它允许开发者播放、录制、处理和分析音频数据。在这个音乐播放器中,很可能就是通过Java Sound API来实现音频文件的读取和播放。API中的`javax.sound.sampled`包提供了音频输入/输出、格式转换以及混音等功能。
音乐播放器需要支持多种音乐格式,特别是MP3格式。MP3是一种有损音频压缩格式,广泛用于数字音频。在Java中,处理MP3文件通常需要依赖第三方库,如JLayer或Trillix MP3 Decoder。这些库可以解析MP3文件的比特流并将其转换为Java Sound API能处理的音频数据。
接下来,音乐播放器的基础功能包括播放、暂停、停止和快进/后退。实现这些功能需要控制音频播放的缓冲区和时间戳。例如,`Clip`类可以用来加载音频片段,并提供控制播放状态的方法。`DataLine`接口中的`start()`, `stop()`, `flush()`等方法分别用于开始、停止和清除缓冲区的内容。
此外,为了提供用户友好的界面,音乐播放器可能采用了Java Swing或JavaFX来构建图形用户界面(GUI)。Swing是Java的标准GUI库,而JavaFX则提供更现代的UI组件和特效。这些库包含各种组件,如按钮、进度条、滑块等,可以用来表示播放进度、音量控制等。
在毕业设计的场景下,这个项目可能涵盖了软件工程的基本流程,包括需求分析、设计、编码、测试和文档编写。开发者可能需要学习如何管理项目、编写代码注释以及创建用户手册。同时,这个项目也涉及到了多线程,因为音频播放通常在单独的线程中进行,以免阻塞主程序。
这个Java音乐播放器项目涵盖了Java编程、音频处理、GUI设计、多线程以及软件工程等多个方面,对于学习和提升Java开发技能非常有价值。通过阅读和理解源码,可以深入学习到Java在实际应用中的各种技巧和最佳实践。