1317606 九、發明說明: 【發明所屬之技術領域】 - 本發明涉及一種音頻處理設備,特別是涉及一種可以 -多路獨立音頻輸出的音頻播放器。 【先前技術】1317606 IX. Description of the Invention: [Technical Field] The present invention relates to an audio processing device, and more particularly to an audio player capable of multi-channel independent audio output. [Prior Art]
近來,MP3等音頻播放器越來越受到人們的喜愛,其 數量一直在不斷的增加。但現有技術的可檇式音頻播放器 只能同時供一人使用。參閱圖工’現有技術下的音頻播放 器結構框圖。所述音頻播放器包括:一處理單元1、一通 訊接口 2、一存儲裝置3、一隨機記憶體(RAM) 4、一顯 示單元5, 一控制面板6、一編碼解碼器7、一放大器8及 一音頻輸出端口 9。用戶通過通訊接口 2實現該音頻播放 器與個人電腦等設備的互連,可以下載音頻檔到存儲裝置 3。用戶通過控制面板6向處理單元χ發出指令選定播放的 音頻檔,所述音頻檔從存儲裝置3暫存入RAM4中,處理 單元1將RAM4中的音頻檔進行格式轉換後將數位音 號傳送至編碼解碼器7。編騎碼器7將數位音頻 ^ 換為類比音難送至放大H 8對音頻錢進行^大釋 經過放大的音頻信號傳至耳機,用戶便可以通過 丄 到所述音頻設備播放的音頻檔。同時顯示單元5可^員 當前播放的音頻檔的相關資訊,如名稱等。 ^ 雖然現在出現可多人共用的耳機,例如中國 局2003年12月17日公告的⑽助94G.X號名稱 共用耳塞》的專供了-種可共科塞。但是這種可共 6 ⑧ 1317606 用耳塞只是母耳塞與多個子耳塞的並聯,沒有對播放器進 行改進,每個耳塞的輸出是相同的,彼此之間不能獨立。 •這樣仍然不能真正實現多人共用一個音頻播放器。音頻播 *放器在播放歌曲操作上仍存在不便、不足。 【發明内容】 有鑒於此,本發明提供一種多路獨立音頻輸出的音頻 播放器,實現多人共用一個音頻播放器。 一種多路獨立音頻輸出的音頻播放器,包括一處理單 元,該音頻播放器包括有多個音頻輸出端口,每一音頻輸 出端口順序連接有一放大器及一編碼解碼器,每一放大器 及編碼解碼器連接到處理單元,當多個音頻輸出端口被選 擇輸出音頻時,該處理單元建立多個播放進程,每一播放 進程對應其中一音頻輸出端口,該處理單元採用分時複用 處理方式控制所述不同播放進程進行音頻播放。 所述多路獨立音頻輸出的音頻播放器,每一音頻輸出 端口、放大器及編碼解碼器都具有一唯一標示碼,每一播 放進程的變數包括有進程號及輸出的編碼解碼器標示碼或 /及音頻輸出端口標示碼。當該處理單元控制其中一播放進 程進行音頻播放時,該播放進程變數中的編碼解碼器標示 碼對應的編碼解碼器從該播放進程被分配的記憶體空間中 獲得數位音頻信號,將數位音頻信號轉換為類比音頻信 號,該類比音頻經該編碼解碼器所連接的放大器放大後, 輸出至相應的音頻輸出端口。 所述多路獨立音頻輸出的音頻播放器,所述音頻播放 7 1317606 器還包括一控制面板,通過該控制面板產生播放控制信 號,該處理單元根據所述播放控制信號控制相應音頻輸出 '端口的音頻播放。所述控制面板包括至少一端口選擇按 •鍵,該端口選擇按鍵實現控制面板對不同音頻輸出端口的 選擇。所述音頻播放器還包括一顯示單元,該顯示單元可 迴圈顯示當前的播放資訊。 所述多路獨立音頻輸出的音頻播放器可以實現多人共 用一音頻播放器,該音頻播放器可以同時處理多個音頻 檔,各音頻輸出端口之間相互獨立輸出,每一音頻輸出端 口能夠輸出不同的聲音信號。 【實施方式】 參閱圖2所示,為本發明多路獨立音頻輸出的音頻播 放器示意圖。該音頻播放器100包括有多個音頻輸出端口 9 (圖2中的9A、9B),每一音頻輸出端口 9可連接一聲音 輸出裝置10,聲音輸出裝置10可以為耳機或是揚聲器。 該音頻播放器100同時播放多首歌曲,並通過不同的音頻 輸出端口 9同時獨立輸出不同歌曲的音頻訊號,不同使用 者通過不同的音頻輸出端口 9所連接的聲音輸出裝置10可 聽到不同的歌曲。例如,該音頻播放器100在某一時刻同 時播放歌曲A及歌曲B,並通過音頻輸出端口 9A輸出歌 曲A的音頻訊號,而通過音頻輸出端口 9B輸出歌曲B的 音頻訊號。顯示單元5可循環顯示當前的播放資訊。 該音頻播放器100還包括有一控制面板6,通過對該 控制面板6的操作產生播放控制信號,該播放控制信號可 1317606 包括選定音頻輸出端口資訊及播放參數資訊,所述播放參 數資訊包括音量的大小及/或播放歌曲等。音頻播放器100 _根據該播放控制信號選定操作的音頻輸出端口 9A或9B及 -調節選定的音頻輸出端口 9A輸出的播放參數,如音量大小 及播放的歌曲。通過該控制面板6還可以關閉該音頻播放 器 100。 參閱圖3所示,為本發明多路獨立音頻輸出的音頻播 放器結構示意圖。本發明的音頻播放器10 0與現有技術(如 圖1)所揭露的音頻播放器結構之不同在於,本發明的音 頻播放器100有多個音頻輸出端口 9,每一音頻輸出端口 9 順序連接有一編碼解碼器7及一放大器8。例如,音頻輸 出端口 9A順序連接有放大器8A及編碼解碼器7A,音頻 輸出端口 9B順序連接有放大器8B及編碼解碼器7B。每一 音頻輸出端口 9、放大器8及編碼解碼器7都標示有一唯 一標示碼。每一放大器8及編碼解碼器7連接到處理單元 1。當使用者選定其中一音頻輸出端口 9輸出音頻時,該處 理單元1建立一播放進程進行音頻播放,該播放進程的變 數包括有進程號及輸出的編碼解碼器標示碼或/及音頻輸 出端口標示碼,該編碼解碼器為被選定的音頻輸出端口 9 所連接的編碼解碼器7。當多個音頻輸出端口 9被選擇輸 出多音頻時,該處理單元1建立了多個播放進程,該處理 單元1採用分時複用方式處理所述不同播放進程。當該處 理單元1處理其中一播放進程(如播放進程A)時,該播 放進程A進行音樂播放控制,獲得存儲於存儲裝置3相應 1317606 • 歌曲的資料進行解碼(即從一定的音頻袼式解碼為一般數 • 位格式將解碼後的數位音頻信號寫入隨機記憶體(ram) -4中該播放進程A被分配的記憶體空間,該播放進程a變 -數中的編碼解碼器標示碼對應的編碼解碼器7從該播放進 程A被分配的記憶體空間中獲得數位音賴信號,將數位立 頻信號轉換為類比音頻信號’該模擬音頻經該編喝解碼= 7所連接的放大器8放大後,輸出至相應的音頻輸出端口°, 通過連接於該音頻輸出端口 9的聲音輸出裝置1〇輸出音頻 •信號。參閱圖4所示,為本發明實施方式中多路獨立音頻 輸出的音頻播放器的播放進程控制示意圖。當該音頻播放 器100開啟時,處理單元1啟動一控制進程(步驟si), 該控制進程接收對該控制面板6的操作產生播放控制資訊 (步驟S2 )’並將該播放控制資訊寫入到隨機記憶體 (RAM) 4中(步驟S3)。判斷播放控制資訊中包含的音 頻輸出端口資訊對應的播放進程是否開啟(步驟S4), ^ 鲁 *對應的播放進程未開啟’則啟動音頻輸出端口標示碼對 應的播放進程,並將播放控制資訊中包含的播放參數資訊 賦值於該播放進程,清空隨機記憶體(RAM) 4的播放控 制資訊(步驟S5)。以此類推,處理單元丄可以根據使用 者的操作啟動相應的多個播放進程,處理單元1採取分時 複用方式處理所述不同播放進程(步驟S6)。如果對應的 播放進程已開啟,該控制進程向該播放進程發送控制指令 (步驟S7),該處理單元1運行到該播放進程時,該播放 進程訪問隨機記憶體(RAM) 4獲得播放控制#訊,根據 1317606 播放控制資訊進行相應處理,例如更改當前 是調節音量等(步驟S8)。 的歌曲或 在本實施方式中,存儲褒置3中還存儲有一播 放狀態存儲檔案30存儲各音頻輸出: 口的播放牡關__放狀態,如播放歌曲、土 他設置等。在,當該控制進程啟動時’該控 取該播放狀態存儲標案30,將播放狀態資訊寫入隨機纪憶Recently, audio players such as MP3s have become more and more popular, and their number has been increasing. However, the prior art portable audio player can only be used by one person at a time. Refer to the block diagram of the audio player in the prior art. The audio player comprises: a processing unit 1, a communication interface 2, a storage device 3, a random memory (RAM) 4, a display unit 5, a control panel 6, a codec 7, an amplifier 8 And an audio output port 9. The user interconnects the audio player with a personal computer through the communication interface 2, and can download the audio file to the storage device 3. The user sends an instruction to the processing unit to issue a selected audio file through the control panel 6. The audio file is temporarily stored in the RAM 4 from the storage device 3. The processing unit 1 converts the audio file in the RAM 4 and converts the digital sound to the digital sound. Codec 7. The codec 7 converts the digital audio ^ into an analog sound and is difficult to send to the amplification H 8 to the audio money. The amplified audio signal is transmitted to the earphone, and the user can then play the audio file played by the audio device. At the same time, the display unit 5 can information about the currently played audio file, such as a name. ^ Although there are now earphones that can be shared by many people, for example, the (10) Announcement of the 94G.X name shared earplugs announced by the China Bureau on December 17, 2003. However, this type of earphones is only a parallel connection of the female earplugs and the plurality of sub-ear plugs. The player is not improved, and the output of each earplug is the same and cannot be independent of each other. • This still does not really enable multiple people to share an audio player. The audio player still has inconvenience and insufficiency in playing the song. SUMMARY OF THE INVENTION In view of this, the present invention provides an audio player with multiple independent audio outputs, which enables multiple users to share one audio player. An audio player with multiple independent audio outputs, comprising a processing unit, the audio player comprising a plurality of audio output ports, each audio output port is sequentially connected with an amplifier and a codec, each amplifier and codec Connected to the processing unit, when a plurality of audio output ports are selected to output audio, the processing unit establishes a plurality of playing processes, each playing process corresponds to one of the audio output ports, and the processing unit controls the method by using a time division multiplexing processing manner Audio playback is performed by different playback processes. The multi-channel independent audio output audio player, each audio output port, amplifier and codec has a unique identification code, and the variables of each play process include a process ID and an output codec identifier code or / And audio output port identification code. When the processing unit controls one of the playing processes to perform audio playing, the codec corresponding to the codec identifier in the playing process variable obtains the digital audio signal from the memory space allocated by the playing process, and the digital audio signal is obtained. Converted to an analog audio signal that is amplified by an amplifier connected to the codec and output to the corresponding audio output port. The multi-channel independent audio output audio player, the audio player 7 1317606 further includes a control panel, through which the playback control signal is generated, and the processing unit controls the corresponding audio output 'port according to the playback control signal Music player. The control panel includes at least one port selection button, and the port selection button implements selection of different audio output ports by the control panel. The audio player further includes a display unit that can display the current playback information in a loop. The multi-channel independent audio output audio player can realize sharing of an audio player by multiple people. The audio player can process multiple audio files at the same time, and each audio output port outputs independently, and each audio output port can output Different sound signals. [Embodiment] Referring to Figure 2, there is shown a schematic diagram of an audio player of a multi-channel independent audio output of the present invention. The audio player 100 includes a plurality of audio output ports 9 (9A, 9B in Fig. 2), each audio output port 9 can be connected to a sound output device 10, and the sound output device 10 can be an earphone or a speaker. The audio player 100 simultaneously plays a plurality of songs, and independently outputs audio signals of different songs through different audio output ports 9, and different users can hear different songs through the sound output device 10 connected by different audio output ports 9. . For example, the audio player 100 plays the song A and the song B at a certain time, and outputs the audio signal of the song A through the audio output port 9A, and outputs the audio signal of the song B through the audio output port 9B. The display unit 5 can cyclically display the current playback information. The audio player 100 further includes a control panel 6 for generating a playback control signal by operating the control panel 6. The playback control signal 1317606 includes selected audio output port information and playback parameter information, and the playback parameter information includes volume. Size and / or play songs, etc. The audio player 100 _ the audio output port 9A or 9B selected according to the playback control signal and - adjusts the playback parameters output by the selected audio output port 9A, such as the volume level and the played song. The audio player 100 can also be turned off by the control panel 6. Referring to Figure 3, there is shown a block diagram of the audio player of the multi-channel independent audio output of the present invention. The audio player 100 of the present invention differs from the audio player structure disclosed in the prior art (as shown in FIG. 1) in that the audio player 100 of the present invention has a plurality of audio output ports 9, each of which is sequentially connected. There is a codec 7 and an amplifier 8. For example, the audio output port 9A is sequentially connected with an amplifier 8A and a codec 7A, and the audio output port 9B is sequentially connected with an amplifier 8B and a codec 7B. Each of the audio output port 9, amplifier 8 and codec 7 is labeled with a unique identification code. Each amplifier 8 and codec 7 is connected to the processing unit 1. When the user selects one of the audio output ports 9 to output audio, the processing unit 1 establishes a playback process for audio playback, and the variables of the playback process include the process ID and the output codec identifier code and/or the audio output port identifier. The codec is the codec 7 to which the selected audio output port 9 is connected. When a plurality of audio output ports 9 are selected to output multi-tone, the processing unit 1 establishes a plurality of playback processes, and the processing unit 1 processes the different playback processes in a time division multiplexing manner. When the processing unit 1 processes one of the playing processes (such as the playing process A), the playing process A performs music playing control, and obtains the data stored in the corresponding device 1317606 of the storage device 3 for decoding (that is, decoding from a certain audio format). Write the decoded digital audio signal into the random memory (ram) -4 in the normal number bit format - the memory space allocated by the playback process A, and the codec identifier code corresponding to the variable number in the playback process a The codec 7 obtains a digital tone signal from the memory space allocated by the playback process A, and converts the digital up-conversion signal into an analog audio signal. The analog audio is amplified by the amplifier 8 connected to the coded decoding = 7 After that, it is output to the corresponding audio output port °, and the audio output signal is output through the sound output device 1 connected to the audio output port 9. Referring to FIG. 4, the audio playback of the multi-channel independent audio output in the embodiment of the present invention is shown. The playback process control diagram of the device. When the audio player 100 is turned on, the processing unit 1 starts a control process (step si), and the control process is connected. The playback control information (step S2)' is generated by the operation of the control panel 6 and the playback control information is written into the random access memory (RAM) 4 (step S3). It is determined that the audio output port information included in the playback control information corresponds to Whether the playing process is enabled (step S4), ^ the corresponding playing process of Lu* is not enabled, then the playing process corresponding to the audio output port identification code is started, and the playing parameter information contained in the playing control information is assigned to the playing process, and is cleared. Playback control information of the random access memory (RAM) 4 (step S5), and so on, the processing unit 启动 can start a corresponding plurality of play processes according to the user's operation, and the processing unit 1 processes the difference in a time division multiplexing manner. Playing the process (step S6). If the corresponding playing process is already on, the control process sends a control command to the playing process (step S7), and when the processing unit 1 runs to the playing process, the playing process accesses the random memory (RAM) 4) Get the playback control # message, according to the 1317606 playback control information for corresponding processing, such as changing the current adjustment volume, etc. ( In the present embodiment, the storage unit 3 also stores a playback status storage file 30 for storing the audio output: the playback status of the port, such as playing a song, setting the home, and the like. When the control process is started, the control captures the play status storage standard 30, and writes the play status information into the random record.
體(RAM)4(步驟S9)。在S5中,當啟動-播放進程時, 該播放進程訪問隨機記憶體取相同標示碼(該 標示碼可以為音頻輸出端口標示碼或者播放進程標示碼) 對應的播放狀態資訊,根據該播放狀態資訊進行該播放進 程的初始化設置及播放(步驟S10)。當關閉某一播放進程 時,控制進程獲得該播放進程關閉時的播放狀態,更新暫 存器4中該播放進程的播放狀態資訊(步驟S11)e當該音 頻播放器關閉時,即關閉該控制進程時,該控制進程根據 存儲於隨機記憶體(RAM) 4的播放狀態資訊更新播放狀 態存儲檔案30 (步驟S12)。 如圖5所示為本發明多路獨立音頻輸出的音頻播放器 的控制面板的第一實施方式示意圖。控制面板6上設置有 多個端口選擇按鍵62、一播放控制按鍵64、一電源按鍵 66及音量裯節裴置68。該端口選擇按鍵62的數量與音頻 輸出端口 9的數量相同,並且每一端口選擇按鍵62--對 應於其中〆音頻輸出端口 9。當使用者使用該音頻播放器 100時,町通過按壓相應的端口選擇按鍵62選擇音頻訊號Body (RAM) 4 (step S9). In S5, when the play-play process is started, the play process accesses the random memory to take the same identification code (the identifier code may be an audio output port identifier code or a play process identification code) corresponding to the play status information, according to the play status information. Initialization setting and playback of the playback process are performed (step S10). When a certain playback process is closed, the control process obtains the playing state when the playing process is closed, and updates the playing state information of the playing process in the temporary register 4 (step S11) e, when the audio player is turned off, the control is turned off. At the time of the process, the control process updates the play status storage file 30 based on the playback status information stored in the random access memory (RAM) 4 (step S12). FIG. 5 is a schematic diagram showing a first embodiment of a control panel of an audio player for multi-channel independent audio output according to the present invention. The control panel 6 is provided with a plurality of port selection buttons 62, a play control button 64, a power button 66, and a volume switch 68. The number of port selection buttons 62 is the same as the number of audio output ports 9, and each port selection button 62 corresponds to the audio output port 9. When the user uses the audio player 100, the town selects an audio signal by pressing the corresponding port selection button 62.
11 1317606 輸出的音頻輸出端口 9A或9B,並在一預定時間内通過播 放控制按鍵64及音量調節裝置68等控制鍵選擇播放的歌 曲、執行播放操作(如播放、暫停、上一首、下一首或停 •止播玫)及/或音量調節,音頻播放器100即可控制所選擇 的音頻輸出端口 9A的音頻播放相關作業。而通過電源按鍵 66可關閉該音頻播放器100。 如通過按壓其中一端口選擇按鍵62選擇音頻輸出端 口 9A,並在預定時間(如2秒)内通過播放控制按鍵64 選擇“下一首”功能,音頻播放器100播放該音頻輸出端 口 9A當前播放歌曲的下一首歌曲。或是,通過按壓其中一 端口選擇按鍵62選擇音頻輸出端口 9A,並在預定時間(如 2秒)内通過音量調節裝置68調節音量,則音頻播放器1〇〇 調節該音頻輸出端口 9A輸出的音量。 如圖6所示為本發明多路獨立音頻輸出的音頻播放写 的控制面板的第二實施方式示意圖。控制面板6上設置有 一個端口選擇按鍵62、一播放控制按鍵64、一電源按鍵 66及音量調節裝置68。當使用者使用該音頻播放器1〇〇 時’可通過按壓該端口選擇按鍵62選擇音頻訊號輸出的音 頻輸出端口 9A或9B,並在一預定時間内通過播放控制二 鍵64及音量調節裝置68等控制鍵選擇播放的歌曲、執行 播放操作(如播放、暫停、上一首、下一首或停止播放) 及/或音量調節,音頻播放器100即可控制所選擇的音頻· 出端口 9A的音頻播放相關作業。而通過電源按鍵66可2 閉該音頻播放器100。 1317606 當然上述的輸出選擇操作及播放控制操作可通過其他 方式來實現,例如通過顯示單元5提供一顯示單元,通過 ’控制面板6上設置的按鍵在該顯示單元選擇音頻輸出的音 -頻端口及播放參數資訊,如音量及播放的歌曲。 【圖式簡單說明】 圖1係為現有技術下的音頻播放器結構框圖。 圖2係為本發明多路獨立音頻輸出的音頻播放器示意 圖。 圖3係為本發明多路獨立音頻輸出的音頻播放器結構 示意圖。 圖4係為本發明實施方式中多路獨立音頻輸出的音頻 播放器的播放進程式控制制示意圖。 圖5係為本發明多路獨立音頻輸出的音頻播放器的控 制面板的第一實施方式示意圖。 圖6係為本發明多路獨立音頻輸出的音頻播放器的控 制面板的第二實施方式示意圖。 【主要元件符號說明】 音頻播放器 100 處理單元 1 通訊接口 2 存儲裝置 3 隨機存儲器 4 顯示單元 5 控制面板 6 13 1317606 編碼解碼器 7 放大器 8 音頻輸出端口 9 聲音輸出裝置 10 端口選擇按鍵 62 控制按鍵 64 音量調節裝置 6811 1317606 Outputs the audio output port 9A or 9B, and selects the played songs through the control buttons such as the play control button 64 and the volume adjustment device 68 for a predetermined time, and performs a playback operation (such as play, pause, previous, next). The audio player 100 can control the audio playback related operation of the selected audio output port 9A by first or stopping the broadcast and/or volume adjustment. The audio player 100 can be turned off by the power button 66. If the audio output port 9A is selected by pressing one of the port selection buttons 62, and the "next" function is selected by the playback control button 64 for a predetermined time (e.g., 2 seconds), the audio player 100 plays the audio output port 9A for current playback. The next song of the song. Alternatively, by pressing one of the port selection buttons 62 to select the audio output port 9A and adjusting the volume by the volume adjustment means 68 for a predetermined time (e.g., 2 seconds), the audio player 1 adjusts the output of the audio output port 9A. volume. FIG. 6 is a schematic diagram showing a second embodiment of a control panel for audio playback writing of multiple independent audio outputs of the present invention. The control panel 6 is provided with a port selection button 62, a playback control button 64, a power button 66 and a volume adjustment device 68. When the user uses the audio player 1', the audio output port 9A or 9B of the audio signal output can be selected by pressing the port selection button 62, and the two keys 64 and the volume adjusting device 68 can be controlled by the playback control for a predetermined time. When the control button selects the played song, performs a playback operation (such as play, pause, previous, next or stop playback) and/or volume adjustment, the audio player 100 can control the selected audio and output port 9A. Audio playback related jobs. The audio player 100 can be closed by the power button 66. 1317606 Of course, the above-mentioned output selection operation and playback control operation can be implemented by other means, for example, a display unit is provided through the display unit 5, and the audio-frequency port of the audio output is selected in the display unit by the button set on the control panel 6. Play parameter information such as volume and songs played. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing the structure of an audio player in the prior art. Figure 2 is a schematic illustration of an audio player for multiple independent audio outputs of the present invention. 3 is a schematic diagram showing the structure of an audio player of a multi-channel independent audio output according to the present invention. FIG. 4 is a schematic diagram of a playback process control system of an audio player with multiple independent audio outputs according to an embodiment of the present invention. Fig. 5 is a schematic view showing the first embodiment of the control panel of the audio player of the multi-channel independent audio output of the present invention. Fig. 6 is a schematic view showing a second embodiment of the control panel of the audio player of the multi-channel independent audio output of the present invention. [Description of main component symbols] Audio player 100 Processing unit 1 Communication interface 2 Storage device 3 Random access memory 4 Display unit 5 Control panel 6 13 1317606 Codec 7 Amplifier 8 Audio output port 9 Sound output device 10 Port selection button 62 Control button 64 volume adjustment device 68
1414