【正文】
南開大學(xué)濱海學(xué)院 本 科 生 畢 業(yè) 論 文(設(shè) 計(jì)) 中文題目: 音頻播放器軟件的設(shè)計(jì)與實(shí)現(xiàn) 外文題目 : The Design and Implementation of Audio Player System 系 別: 計(jì) 算機(jī)科學(xué)系 專 業(yè): 計(jì) 算機(jī)科學(xué)與技術(shù) ( 數(shù)字影視動(dòng)畫 技術(shù)與應(yīng)用方向 ) 完成日期: 2020 年 4月 30日 2 南開大學(xué)濱海學(xué)院本科畢業(yè)論文(設(shè) 計(jì))誠信聲明 本人鄭重聲明:所呈交的畢業(yè)論文(設(shè)計(jì)),題目《 基于智能卡的遠(yuǎn)程身份 認(rèn) 證 系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn) 》 是本人在指導(dǎo)教師的指導(dǎo)下,獨(dú)立進(jìn)行研究工作所取得的成果。對(duì)本文的研究做出重要貢獻(xiàn)的個(gè)人和集體,均已在文中以明確方式注明。除此之外,本論文不包含任何其他個(gè)人或集體已經(jīng)發(fā)表或撰寫過的作品成果。本人完全意識(shí)到本聲明的法律結(jié)果。 畢業(yè)論文(設(shè)計(jì))作者簽名: 郭培贊 日期: 2020 年 4 月 5 日 摘要 I 音頻播放器軟件的設(shè)計(jì)與實(shí)現(xiàn) 摘 要 隨著計(jì)算機(jī)和多媒體技術(shù)的不斷發(fā)展以及個(gè)人計(jì)算機(jī)的普及,各種各樣的媒體文件、媒體播放器層出不窮,而 MP3( MPEG Audio Layer3)格式以其體積小、音質(zhì)也有保證的特點(diǎn)成為使用最為廣泛的音頻格式,得到了絕大多數(shù)軟件和硬件媒體播放器的支持 ,同時(shí) WAV格式作為無損的音頻格式也獨(dú)樹一幟 。如今 , 軟件市場上的媒體播放器 百花齊放 ,如: MediaPlayer,酷我音樂盒 和 千千靜聽等。高音質(zhì)播放和 低內(nèi)存 消耗是各種媒體播放器所追求的目標(biāo)。 本文探索性地設(shè)計(jì)實(shí)現(xiàn) 了一個(gè) 支持播放列表和 LRC歌詞實(shí)時(shí)顯示的 音頻 播放 器的軟件。 本軟件用 , java語言 及其相應(yīng)的音頻支持插件 JMF開發(fā)而成 ,設(shè)計(jì)思想為 MVC,即 ModelViewControl模式 。該播放器實(shí)現(xiàn)了 在 播放MP3的同時(shí)實(shí)時(shí) 地 顯示 LRC歌詞,并且支持 WAV等。利用 java開發(fā)的應(yīng)用程序具有平臺(tái)可移植性,可以做到 Once write,run everywhere, 同時(shí)有著比較完善的功能。 論文 首先 介紹了 java語言, MVC及 JMF的基本概念 , 內(nèi)容及章節(jié)安排 。然后,論文 介紹了系統(tǒng)的設(shè)計(jì)目標(biāo) ,劃分并設(shè)計(jì)了系統(tǒng) 功能模塊 ,包括:播放窗口模塊、播放 列表管理模塊、歌詞實(shí)時(shí)顯示模塊、播放控制模塊和播放信息 模塊等,設(shè)計(jì)了 媒體文件 和歌詞文件 的處理流程 。接著,論文 介紹了本播放器的開發(fā)平臺(tái) , 闡述了系統(tǒng)各功能的 詳細(xì)設(shè)計(jì)與 實(shí)現(xiàn) 。最后,論文 介紹了系統(tǒng)的運(yùn)行環(huán)境及運(yùn)行效果,并對(duì)各個(gè)部分進(jìn)行了圖示說明。 關(guān)鍵詞 : 音頻播放器 平臺(tái)無關(guān) java MVC JMF Eclipse Abstract II The design and implementation of the Audio Player System Abstract With the evolvement and popularization of puter science and multimedia technology , a variety of media files, media player software e into appearence one after another. MP3 (MPEG Audio Layer3) format also bees the most widely used features audio format, for its small size and sound quality .It’s supported by the vast majority of software and the hardware media player . WAV audio formats is alseo famous for its nodamaging sound , media player software on the market rises one after another, such as: MediaPlayer, cool boxes and TTPlayer and so on. The pursuit of high quality and low memory consumption is carried on by every media player . This article explores to design and implement a LRC supported audio player software with playlists and realtime display. The software used , java language and its corresponding audio support plugins developed with JMF as the develop main designing idea of the software is the MVC(the ModelViewControl )pattern. The player achieved in real time LRC display while playing MP3, and supports WAV and so on. Programmes developed with java is platform portability, you can do “Once write, run everywhere”, also has a fairly plete functionality. The paper firstly introduces basic concepts, contents and chapter arrangement of the java language, MVC and JMF. Then, the paper describes the design goal, and the system function modules, including: Mainframe module, listController module, LRCController module, the Mp3Controller module and Mp3State next is the introduction of the media files and lyrics files treatment process. After that, the paper introduces the development platform to explain the various features of the system detailed design and implementation. Finally, the paper describes the system operation environment and operating part has a illustration. Keywords: Audio Player platform portability Java MVC Eclipse JMF 目 錄 III 目 錄 摘 要 ......................................................................................................I ABSTRACT ........................................................................................... II 第 1 章 緒論 ......................................................................................... 1 研究背景 ........................................................................................................ 1 JAVA 語言的特性 ............................................................................................ 1 第 2 章 關(guān)于 JMF 技術(shù) ........................................................................ 3 關(guān)于 JMF 技術(shù) ............................................................................................... 3 JMF 常用類 .................................................................................................... 4 數(shù)據(jù)源( DataSource) ............................................................................... 4 媒體定位器( MediaLocator) ..................................................................... 4 播放器( Player) ...................................................................................... 4 處理器( Processor) .................................................................................. 6 數(shù)據(jù)池( DataSink) .................................................................................. 7 數(shù)據(jù)格式( Format) .................................................................................. 7 管理器( Manager) ................................................................................... 8 事件模型 ........................................................................................................ 8 第 3 章 系統(tǒng)架構(gòu)和功能模塊設(shè)計(jì) .................................................... 11 MVC 模式概述 ............................................................................................ 11 系統(tǒng)目標(biāo) ...................................................................................................... 11 系統(tǒng)功能模塊概要設(shè)計(jì) .............................................................................. 12 用戶界面模塊 ........................................................................................ 13 播放控制模塊 ........................................................................................ 14 播放信息模塊 ........................................................................................ 15 播放列表控制模塊 ................................................................................