JP2010281918A - Content reproduction device and program therefor - Google Patents

Content reproduction device and program therefor Download PDF

Info

Publication number
JP2010281918A
JP2010281918A JP2009133674A JP2009133674A JP2010281918A JP 2010281918 A JP2010281918 A JP 2010281918A JP 2009133674 A JP2009133674 A JP 2009133674A JP 2009133674 A JP2009133674 A JP 2009133674A JP 2010281918 A JP2010281918 A JP 2010281918A
Authority
JP
Japan
Prior art keywords
format
wma
decoder
content
audio file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009133674A
Other languages
Japanese (ja)
Inventor
Shuntaro Kashi
俊太郎 樫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Onkyo Corp
Original Assignee
Onkyo Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Onkyo Corp filed Critical Onkyo Corp
Priority to JP2009133674A priority Critical patent/JP2010281918A/en
Publication of JP2010281918A publication Critical patent/JP2010281918A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To raise possibility of selecting a correct decoder at first, in case that it is not determined whether it is WMA STD (WMA Standard) or WMA LSL (WMA Lossless), although it is determined to be WMA (Windows Media Player), based on an extension or a MIME (Multipurpose Internet Mail Extension) type. <P>SOLUTION: A format of an audio file which is reproduced in the past is stored. If the format of the audio file to be reproduced is WMA and the format of the audio file which is most recently reproduced is WMA STD or WMA LSL, it is presumed that the format (WMA STD or WMA LSL) of the audio file which is most recently reproduced, is the format of the audio file to be reproduced. A decoder corresponding to the presumed format is selected at first. Generally speaking, as it is highly possible that the audio file of the same format is continuously reproduced, the possibility of selecting the decoder of an accurate format at first is raised. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、所定フォーマットであることを判別できるが、所定フォーマットの内の第1所定フォーマット、又は、第2所定フォーマットのいずれであるかを判別することができないコンテンツを再生するコンテンツ再生装置に関する。   The present invention relates to a content playback apparatus that plays back content that can be determined to be a predetermined format but cannot be determined to be a first predetermined format or a second predetermined format.

AVアンプ等のコンテンツ再生装置は、LAN等のネットワークを介してサーバに接続され、サーバからコンテンツ(例えばオーディオファイル)をストリーミング形式で取得し(又は、接続されたUSBメモリからオーディオファイルを取得してもよい。以下同様。)、再生する。オーディオファイルは、MP3、WMA、AAC等の複数のフォーマットのいずれかで圧縮されている。AVアンプは、これらのフォーマットのオーディオファイルをデコードするため、フォーマット毎にデコーダ(MP3デコーダ、WMA STDデコーダ、WMA LSLデコーダ、AACデコーダ等)を備えている。AVアンプは、サーバから曲リストを取得し、曲リストの中からユーザ操作によって選択されたオーディオファイルをサーバに要求し、取得する。AVアンプは、再生すべきオーディオファイルが選択されると、例えば曲リストに記述されているオーディオファイルの拡張子、又は、MIMEタイプ等を参照することにより、サーバから取得して再生するオーディオファイルのフォーマットを特定することができる。従って、特定したフォーマットのデコーダを起動させることにより、サーバから取得したオーディオファイルをデコードすることができる。   A content playback device such as an AV amplifier is connected to a server via a network such as a LAN, and acquires content (for example, an audio file) from the server in a streaming format (or acquires an audio file from a connected USB memory). The same applies to the following). The audio file is compressed in one of a plurality of formats such as MP3, WMA, and AAC. The AV amplifier includes a decoder (MP3 decoder, WMA STD decoder, WMA LSL decoder, AAC decoder, etc.) for each format in order to decode an audio file of these formats. The AV amplifier acquires a music list from the server, and requests and acquires an audio file selected by a user operation from the music list. When an audio file to be played is selected, the AV amplifier refers to the extension of the audio file described in the song list, the MIME type, etc. The format can be specified. Therefore, the audio file acquired from the server can be decoded by starting the decoder of the specified format.

ここで、WMAにはWMA STD(WMA
Standard)およびWMA LSL(WMA Lossless)の2種類のフォーマットが存在する。しかし、拡張子またはMIMEタイプ(あるいは、Profile
IDでもよい。以下同様。)を参照しても、フォーマットがWMAであることは特定できるが、WMA STDであるか、又は、WMA LSLであるかを特定することができない。従って、WMA STDおよびWMA LSLのどちらのフォーマットのデコーダを起動させる必要があるかを特定できない。従って、WMA STDおよびWMA LSLの内、最初に起動させるデコーダが予め決定されている。
Here, WMA STD (WMA
There are two types of formats: Standard) and WMA LSL (WMA Lossless). However, the extension or MIME type (or Profile
ID may be used. The same applies below. ), It can be specified that the format is WMA, but it cannot be specified whether it is WMA STD or WMA LSL. Therefore, it cannot be specified which format of the WMA STD or WMA LSL decoder needs to be activated. Therefore, a decoder to be activated first among WMA STD and WMA LSL is determined in advance.

最初に起動させるデコーダがWMA LSLデコーダの場合、WMA LSLデコーダを起動させ、サーバからオーディオファイルの一部を取得して、取得したデータを使用してWMA LSLデコーダを初期化及び/又は設定させる。初期化及び/又は設定できた場合には、オーディオファイルのフォーマットはWMA LSLであるので、WMA LSLデコーダでデコードすることができる。一方、初期化及び/又は設定できなかった場合には、オーディオファイルのフォーマットはWMA STDであるので、WMA STDデコーダを起動させ、再度、サーバからオーディオファイルの一部を取得して、取得したデータを使用してWMA STDデコーダを初期化及び/又は設定させる。   If the first activated decoder is a WMA LSL decoder, the WMA LSL decoder is activated, a part of the audio file is acquired from the server, and the WMA LSL decoder is initialized and / or set using the acquired data. If it can be initialized and / or set, the audio file format is WMA LSL and can be decoded by a WMA LSL decoder. On the other hand, if initialization and / or setting could not be performed, the audio file format is WMA STD. Therefore, the WMA STD decoder is activated, and a part of the audio file is acquired again from the server, and the acquired data To initialize and / or configure the WMA STD decoder.

以上のように、WMA LSLデコーダ又はWMA STDデコーダの内、最初に選択して起動させたデコーダが正しいデコーダでなかった場合には、もう一方のデコーダを起動させ、再びサーバから初期化及び/又は設定に必要なデータを取得して、もう一方のデコーダを初期化及び/又は設定させる必要が生じる。その結果、不要な処理及び通信が生じ、オーディオファイルを再生開始する迄に時間がかかるという問題がある。   As described above, when the decoder selected and activated first among the WMA LSL decoder or the WMA STD decoder is not the correct decoder, the other decoder is activated and is initialized from the server again. It is necessary to acquire data necessary for setting and initialize and / or set the other decoder. As a result, there is a problem that unnecessary processing and communication occur, and it takes time until the reproduction of the audio file is started.

特開2001−35083号公報JP 2001-35083 A

本発明は上記従来の課題を解決するためになされたものであり、その目的は、所定フォーマットであることを判別できるが、所定フォーマットの内の第1所定フォーマット、又は、第2所定フォーマットのいずれであるかを判別することができない場合に、第1所定フォーマットに対応するデコーダ、又は、第2所定フォーマットに対応するデコーダの内、正しいデコーダを最初に選択する可能性を高くできるコンテンツ再生装置を提供することである。   The present invention has been made in order to solve the above-described conventional problems. The object of the present invention is to determine whether the format is a predetermined format. Either the first predetermined format or the second predetermined format of the predetermined formats is used. A content playback apparatus capable of increasing the possibility of first selecting the correct decoder from among the decoders corresponding to the first predetermined format or the decoders corresponding to the second predetermined format, Is to provide.

本発明の好ましい実施形態によるコンテンツ再生装置は、所定フォーマットであることを判別できるが、前記所定フォーマットの内の第1所定フォーマット、又は、第2所定フォーマットのいずれであるかを判別することができないコンテンツを再生するコンテンツ再生装置であって、コンテンツの複数のフォーマットにそれぞれ対応する複数のデコーダと、過去に再生されたコンテンツのフォーマットを記憶するフォーマット記憶手段と、再生すべきコンテンツのフォーマットが前記所定フォーマットであるか否かを判断する手段と、再生すべきコンテンツのフォーマットが前記所定フォーマットであると判断された場合、前記フォーマット記憶手段に記憶されている直近に再生されたコンテンツのフォーマットが、第1所定フォーマット、又は、第2所定フォーマットであるか否かを判断する手段と、前記フォーマット記憶手段に記憶されている直近に再生されたコンテンツのフォーマットが、第1所定フォーマット、又は、第2所定フォーマットであると判断された場合に、前記フォーマット記憶手段に記憶されている直近に再生されたコンテンツのフォーマットに対応するデコーダを選択して起動させる選択手段とを備える。   The content playback apparatus according to the preferred embodiment of the present invention can determine whether the format is a predetermined format, but cannot determine whether the format is a first predetermined format or a second predetermined format. A content playback apparatus for playing back content, a plurality of decoders respectively corresponding to a plurality of content formats, format storage means for storing a format of content played back in the past, and a format of the content to be played back When it is determined that the format of the content to be reproduced and the format of the content to be reproduced are the predetermined format, the format of the most recently reproduced content stored in the format storage unit is 1 Predetermined format Alternatively, the means for determining whether or not it is the second predetermined format and the format of the most recently reproduced content stored in the format storage means are the first predetermined format or the second predetermined format. Selecting means for selecting and activating a decoder corresponding to the format of the most recently reproduced content stored in the format storage means when determined.

過去に再生されたコンテンツのフォーマットを記憶しておく。再生すべきコンテンツのフォーマットが所定フォーマットであり、かつ、直近に再生されたコンテンツのフォーマットが第1所定フォーマット又は第2所定フォーマットであれば、直近に再生されたコンテンツのフォーマット(第1所定フォーマット又は第2所定フォーマット)を、再生すべきコンテンツのフォーマットであると推定する。そして、推定されたフォーマットに対応するデコーダを最初に選択する。一般的に、同じフォーマットのコンテンツが連続して再生される可能性が高いので、正確なフォーマットのデコーダを最初に選択する可能性を高くできる。   The format of the content played back in the past is stored. If the format of the content to be reproduced is a predetermined format and the format of the most recently reproduced content is the first predetermined format or the second predetermined format, the format of the most recently reproduced content (the first predetermined format or The second predetermined format) is estimated to be the format of the content to be reproduced. Then, the decoder corresponding to the estimated format is first selected. In general, since there is a high possibility that content in the same format is continuously played back, it is possible to increase the possibility of selecting an accurate format decoder first.

好ましい実施形態においては、前記フォーマット記憶手段に記憶されている直近に再生されたコンテンツのフォーマットが、第1所定フォーマット、又は、第2所定フォーマットでない場合に、前記選択手段が、第1所定フォーマット、又は、第2所定フォーマットの内、前記フォーマット記憶手段に記憶されている数が多い方のフォーマットに対応するデコーダを選択して起動させる。   In a preferred embodiment, when the format of the most recently reproduced content stored in the format storage means is not the first predetermined format or the second predetermined format, the selection means includes the first predetermined format, Alternatively, a decoder corresponding to the format having the larger number stored in the format storage means among the second predetermined formats is selected and activated.

第1所定フォーマット又は第2所定フォーマットの内、過去に再生された回数が多い方が、再生すべきコンテンツのフォーマットである可能性が高いので、正確なフォーマットのデコーダを最初に選択する可能性を高くできる。   Of the first predetermined format and the second predetermined format, the one that has been played back in the past is more likely to be the format of the content to be played back, so the possibility of selecting the correct format decoder first Can be high.

好ましい実施形態においては、前記コンテンツ再生装置が、前記コンテンツ再生装置の外部に所定のインターフェース又はネットワークを介して接続される外部記録装置からコンテンツを取得して再生するものであり、前記外部記憶装置毎に対応する前記フォーマット記憶手段と、再生すべきコンテンツが記録されている前記外部記憶装置を特定する外部記憶装置特定手段と、特定された前記外部記憶装置に対応する前記フォーマット記憶手段を、前記フォーマット記憶手段として選択する手段とをさらに備える。   In a preferred embodiment, the content reproduction device acquires and reproduces content from an external recording device connected to the outside of the content reproduction device via a predetermined interface or network, and each external storage device The format storage means corresponding to the external storage device specifying means for specifying the external storage device in which the content to be reproduced is recorded, and the format storage means corresponding to the specified external storage device include the format And means for selecting as storage means.

一般的に、1つの外部記憶装置には同じフォーマットのコンテンツが記録されている可能性が高いので、外部記憶装置毎に個別に過去に再生されたコンテンツのフォーマットを記憶しておくことにより、正確なフォーマットのデコーダを最初に選択する可能性を高くできる。   Generally, there is a high possibility that content in the same format is recorded in one external storage device. Therefore, it is possible to store the format of content reproduced in the past individually for each external storage device. It is possible to increase the possibility of selecting a decoder having a proper format first.

本発明の好ましい実施形態によるコンテンツ再生装置は、所定フォーマットであることを判別できるが、前記所定フォーマットの内の第1所定フォーマット、又は、第2所定フォーマットのいずれであるかを判別することができないコンテンツを再生するコンテンツ再生装置であって、コンテンツの複数のフォーマットにそれぞれ対応する複数のデコーダと、コンテンツの品質に関する情報に対応付けて、第1所定フォーマットの基準サイズと、第2所定フォーマットの基準サイズとを記憶するフォーマットサイズ記憶手段と、再生すべきコンテンツのフォーマットが前記所定フォーマットであるか否かを判断する手段と、再生すべきコンテンツのフォーマットが前記所定フォーマットであると判断された場合、再生すべきコンテンツの基準サイズを算出し、かつ、再生すべきコンテンツの品質に対応付けて前記フォーマットサイズ記憶手段に記憶されている第1所定フォーマットの基準サイズと第2所定フォーマットの基準サイズとの内、再生すべきコンテンツの基準サイズに近い方のフォーマットを特定する手段と、特定されたフォーマットに対応するデコーダを選択して起動させる選択手段とを備える。   The content playback apparatus according to the preferred embodiment of the present invention can determine whether the format is a predetermined format, but cannot determine whether the format is a first predetermined format or a second predetermined format. A content playback apparatus for playing back content, a plurality of decoders respectively corresponding to a plurality of formats of content, a reference size of a first predetermined format and a reference of a second predetermined format in association with information on the quality of the content Format size storage means for storing the size, means for determining whether the format of the content to be reproduced is the predetermined format, and when the format of the content to be reproduced is determined to be the predetermined format, Criteria for content to be played Content to be reproduced among the reference size of the first predetermined format and the reference size of the second predetermined format stored in the format size storage means in association with the quality of the content to be reproduced Means for specifying a format closer to the reference size and selection means for selecting and starting a decoder corresponding to the specified format.

所定フォーマットであることを判別できるが、所定フォーマットの内の第1所定フォーマット、又は、第2所定フォーマットのいずれであるかを判別することができない場合に、第1所定フォーマットに対応するデコーダ、又は、第2所定フォーマットに対応するデコーダの内、正しいデコーダを最初に選択する可能性を高くできる。   A decoder corresponding to the first predetermined format when it is possible to determine that the format is a predetermined format but cannot determine whether the format is the first predetermined format or the second predetermined format. Among the decoders corresponding to the second predetermined format, the possibility of selecting the correct decoder first can be increased.

本発明の好ましい実施形態によるAVアンプ100を示すブロック図である。1 is a block diagram showing an AV amplifier 100 according to a preferred embodiment of the present invention. プレイリストを示す図である。It is a figure which shows a play list. 履歴テーブルを示す図である。It is a figure which shows a history table. ネットマイコン4の処理を示すフローチャートである。3 is a flowchart showing processing of the net microcomputer 4. USBリストを示す図である。It is a figure which shows a USB list. 各USBメモリに対する履歴テーブルを示す図である。It is a figure which shows the log | history table with respect to each USB memory. サーバリストを示す図である。It is a figure which shows a server list. ネットマイコン4の処理を示すフローチャートである。3 is a flowchart showing processing of the net microcomputer 4. フォーマットサイズテーブルを示す図である。It is a figure which shows a format size table. ネットマイコン4とサーバの処理を示すシーケンスチャートである。It is a sequence chart which shows the process of the net microcomputer 4 and a server. プレイリスト画面を示す図である。It is a figure which shows a play list screen. デコーダアプリが実行するSEEK、READの関数を示す図である。It is a figure which shows the function of SEEK and READ which a decoder application performs. デコーダアプリ、デコーダ、サーバの処理を示すフローチャートである。It is a flowchart which shows the process of a decoder application, a decoder, and a server. キューの構造を示す図である。It is a figure which shows the structure of a queue. キューの構造を示す図である。It is a figure which shows the structure of a queue.

以下、本発明の好ましい実施形態について、図面を参照して具体的に説明するが、本発明はこれらの実施形態には限定されない。   Hereinafter, preferred embodiments of the present invention will be specifically described with reference to the drawings. However, the present invention is not limited to these embodiments.

図1は、本発明の好ましい実施形態によるコンテンツ再生装置(以下、AVアンプという。)100と、サーバ200とを示すブロック図である。AVアンプ100は、LAN等の任意のネットワークを介してサーバ200に接続可能であり、サーバにコンテンツを要求し、サーバから例えばストリーミング形式でコンテンツを取得し、コンテンツを再生する。コンテンツは、映像データ、静止画データ、音楽データ(オーディオファイル)等の総称であるが、本例ではオーディオファイルである。また、AVアンプ100は、USB端子9に接続されたUSBメモリに記録されているオーディオファイルを取得して、再生する。USBメモリは、例えば、フラッシュメモリ内蔵の携帯型プレーヤ等である。   FIG. 1 is a block diagram showing a content reproduction apparatus (hereinafter referred to as AV amplifier) 100 and a server 200 according to a preferred embodiment of the present invention. The AV amplifier 100 can be connected to the server 200 via an arbitrary network such as a LAN, requests content from the server, acquires content from the server, for example, in a streaming format, and reproduces the content. The content is a generic term for video data, still image data, music data (audio file), etc., but in this example, it is an audio file. Also, the AV amplifier 100 acquires and reproduces the audio file recorded in the USB memory connected to the USB terminal 9. The USB memory is, for example, a portable player with a built-in flash memory.

AVアンプ100は、メインマイコン1、RAM2、ROM3、ネットワークマイコン(以下、ネットマイコンという。)4、ビデオマイコン5、再生部6、表示部7、操作部8及びUSB端子9を備える。これらは、バスを介して互いに接続されている。再生部6には、図示しないスピーカーが外部に接続されている。   The AV amplifier 100 includes a main microcomputer 1, a RAM 2, a ROM 3, a network microcomputer (hereinafter referred to as a network microcomputer) 4, a video microcomputer 5, a playback unit 6, a display unit 7, an operation unit 8, and a USB terminal 9. These are connected to each other via a bus. A speaker (not shown) is connected to the reproduction unit 6 outside.

メインマイコン1は、ROM3に記録されているプログラムに基づいて、AVアンプ100の各部を制御する。ネットマイコン4は、ROM3又は他のメモリに記録されているプログラムに基づいて、下記の動作を実行する。ネットマイコン4は、LANを介してサーバ200にアクセスし、サーバ200から曲リスト(以下、プレイリストという。)を取得し、メインマイコン1に供給する。メインマイコン1は、プレイリストをビデオマイコン5に供給する。ビデオマイコン5は、プレイリストを描画処理し、表示部7に表示、又は、OSD画面を図示しないTV等の外部ディスプレイに表示させる。   The main microcomputer 1 controls each part of the AV amplifier 100 based on a program recorded in the ROM 3. The net microcomputer 4 executes the following operation based on a program recorded in the ROM 3 or other memory. The network microcomputer 4 accesses the server 200 via the LAN, acquires a music list (hereinafter referred to as a play list) from the server 200, and supplies it to the main microcomputer 1. The main microcomputer 1 supplies the playlist to the video microcomputer 5. The video microcomputer 5 renders the playlist and displays it on the display unit 7 or displays the OSD screen on an external display such as a TV (not shown).

図2は、プレイリストの一例を示す図である。プレイリストは、例えば、各オーディオファイルのアーティスト名、アルバム名、曲名等に加えて、オーディオファイルのフォーマット情報を含む。オーディオファイルのフォーマット情報は、例えば、拡張子又はMIMEタイプといった形態で含まれている。   FIG. 2 is a diagram illustrating an example of a playlist. The playlist includes, for example, audio file format information in addition to the artist name, album name, song name, and the like of each audio file. The format information of the audio file is included in the form of an extension or MIME type, for example.

ユーザが操作部8を操作してプレイリストの中から、再生すべきオーディオファイルを選択すると、ネットマイコン4は、選択されたオーディオファイルをサーバ200に要求し、サーバ200からオーディオファイルを例えばストリーミング形式で取得する。なお、最初はユーザ操作によって再生すべきオーディオファイルが選択されるが、一度選択された後は、ネットマイコン4は、オーディオファイルを再生し終える毎に、プレイリストの順番にサーバ200からオーディオファイルを取得して、再生することができる。   When the user operates the operation unit 8 to select an audio file to be reproduced from the playlist, the network microcomputer 4 requests the selected audio file from the server 200 and sends the audio file from the server 200 to a streaming format, for example. Get in. At first, an audio file to be played is selected by a user operation, but once selected, the network microcomputer 4 plays audio files from the server 200 in the order of the playlist every time the audio file is played back. Can be acquired and played.

ネットマイコン4は、その内部に、オーディオファイルのフォーマット毎に、デコーダ(ソフトウェアデコーダ)を有している。例えば、オーディオファイルのフォーマットが、MP3、AAC、WMA STD、WMA LSL、Ogg Vorvis等である場合には、ネットマイコン4は、MP3デコーダ、AACデコーダ、WMA STDデコーダ、WMA LSLデコーダ、Ogg Vorvisデコーダ等を有する。   The net microcomputer 4 has a decoder (software decoder) for each audio file format. For example, when the format of the audio file is MP3, AAC, WMA STD, WMA LSL, Ogg Vorvis, etc., the net microcomputer 4 has an MP3 decoder, AAC decoder, WMA STD decoder, WMA LSL decoder, Ogg Vorvis decoder, etc. Have

ネットマイコン4は、プレイリストから再生すべきオーディオファイルが選択されると、選択されたオーディオファイルのフォーマットを、例えばプレイリストに記述された拡張子又はMIMEタイプ(あるいは、Profile IDでもよい。以下同様。)に基づいて特定する。そして、ネットマイコン4は、特定したフォーマットに対応するデコーダを起動させ、サーバ200から受信したオーディオファイルを、起動したデコーダを使用して、デコードする。デコードされたオーディオファイルは、再生部6によってデジタル−アナログ変換、増幅処理等が実行され、スピーカーに音声信号が供給される。   When the audio file to be played back is selected from the playlist, the network microcomputer 4 may use the extension or MIME type (or Profile ID described in the playlist, for example) as the format of the selected audio file. )). Then, the net microcomputer 4 activates a decoder corresponding to the specified format, and decodes the audio file received from the server 200 using the activated decoder. The decoded audio file is subjected to digital-analog conversion, amplification processing, and the like by the reproduction unit 6, and an audio signal is supplied to the speaker.

ここで、例えばプレイリストに記述されている拡張子やMIMEタイプ(又は、サーバ200から別途取得したMIMEタイプでもよい。)等から、フォーマットがWMA(所定フォーマット)であることは特定することができるが、WMA STD(第1所定フォーマット)、又は、WMA LSL(第2所定フォーマット)のいずれであるかを特定することができない(なお、図2のプレイリストでは、説明の為に便宜上、WMA STDやWMA LSLと記述しているだけである)。従って、ネットマイコン4は、オーディオファイルをデコードするために、WMA STDデコーダ又はWMA LSLデコーダのいずれを最初に起動させるとよいかを特定することができない。   Here, for example, it can be specified that the format is WMA (predetermined format) from the extension or MIME type described in the playlist (or MIME type acquired separately from the server 200). Cannot be specified as WMA STD (first predetermined format) or WMA LSL (second predetermined format) (Note that in the playlist of FIG. 2, for convenience of explanation, WMA STD Or just WMA LSL). Therefore, the net microcomputer 4 cannot specify which one of the WMA STD decoder and the WMA LSL decoder should be activated first in order to decode the audio file.

この問題を解決するために、本実施形態においては、拡張子又はMIMEタイプがWMAである場合に、ネットマイコン4は、直近に(最後に)再生したオーディオファイルのフォーマットがWMA STDであり、直近に(最後に)使用したデコーダがWMA STDデコーダであれば、今回再生するオーディオファイルのフォーマットもWMA STDであると推定し、WMA STDデコーダを最初に起動させ、オーディオファイルをデコードする。一方、拡張子又はMIMEタイプがWMAである場合に、直近に(最後に)再生したオーディオファイルのフォーマットがWMA LSLであり、直近に(最後に)使用したデコーダがWMA LSLデコーダであれば、今回再生するオーディオファイルのフォーマットもWMA LSLであると推定し、WMA LSLデコーダを最初に起動させ、オーディオファイルをデコードする。このようにフォーマットを推定するのは、一般的には、図2(a)に示すように、オーディオファイルを連続再生する場合、又は、同一のサーバ等からオーディオファイルを取得して再生する場合、同一のフォーマットが連続する確率が高いからである。   In order to solve this problem, in the present embodiment, when the extension or MIME type is WMA, the network microcomputer 4 uses the latest (last) audio file format WMA STD, and the latest If the decoder used at the end (last) is a WMA STD decoder, it is assumed that the format of the audio file to be reproduced this time is also WMA STD, and the WMA STD decoder is activated first to decode the audio file. On the other hand, if the extension or MIME type is WMA, the format of the audio file played most recently (last) is WMA LSL, and the latest (last) decoder used is the WMA LSL decoder. It is assumed that the format of the audio file to be reproduced is also WMA LSL, and the WMA LSL decoder is first activated to decode the audio file. In general, the format is estimated as shown in FIG. 2 (a) when continuously playing audio files or when obtaining and playing audio files from the same server or the like. This is because the probability that the same format continues is high.

これを実現するために、ネットマイコン4は、その内部のメモリ領域に、図3に示す履歴テーブルを格納している。履歴テーブルは、過去に再生されたオーディオファイルに使用したデコーダのフォーマット(すなわち、過去に再生したオーディオファイルのフォーマット)を時系列で記憶しておくテーブルである。図3においては、下側が再生された時刻が古く、上側が再生された時刻が新しいオーディオファイルのフォーマットを示す。つまり、直近に(最後に)再生されたオーディオファイルのフォーマットはMP3であり、その前に再生されたオーディオファイルのフォーマットがWMA LSLであることを示す。   In order to realize this, the net microcomputer 4 stores a history table shown in FIG. 3 in its internal memory area. The history table is a table in which the format of the decoder used for the audio file reproduced in the past (that is, the format of the audio file reproduced in the past) is stored in time series. In FIG. 3, the time when the lower side is played is old, and the time when the upper side is played shows the format of the new audio file. That is, it indicates that the format of the audio file that was reproduced most recently (last) is MP3, and the format of the audio file that was reproduced before is WMA LSL.

履歴テーブルには最初は何も記憶されておらず、ネットマイコン4がオーディオファイルのフォーマットを確定し、確定したフォーマットのデコーダでオーディオファイルをデコードし、再生する際に、履歴テーブルにフォーマットを記憶する。   Nothing is initially stored in the history table, and the network microcomputer 4 determines the format of the audio file, and the format is stored in the history table when the audio file is decoded and reproduced by the decoder of the determined format. .

ここで、拡張子又はMIMEタイプがWMAである場合に、直近に(最後に)再生したオーディオファイルのフォーマットがWMA STDでも、WMA LSLでもない場合、直近に再生したフォーマットという条件で最初に起動させるデコーダをWMA STD又はWMA LSLの中から特定できない。そこで、ネットマイコン4は、WMA STD又はWMA LSLの中から、履歴テーブルに記憶されている数が多い方のフォーマットを、再生するオーディオファイルのフォーマットと推定し、推定したフォーマットのデコーダを最初に起動させ、オーディオファイルをデコードする。履歴テーブルに記憶されている数が多い方が、頻繁に再生されているフォーマットであるので、今回再生するオーディオファイルのフォーマットである可能性が高いからである。   Here, when the extension or MIME type is WMA, if the format of the audio file most recently (lastly) played is neither WMA STD nor WMA LSL, the first activation is performed under the condition of the most recently played format. The decoder cannot be specified from WMA STD or WMA LSL. Therefore, the net microcomputer 4 estimates the format of the larger number stored in the history table from the WMA STD or WMA LSL as the format of the audio file to be played back, and starts the decoder of the estimated format first. And decode the audio file. This is because the larger the number stored in the history table, the more frequently played format is, so there is a high possibility that it is the format of the audio file to be played this time.

図4は、ネットマイコン4の処理を示すフローチャートである。本例では、サーバ200からオーディオファイルを取得する場合を例に説明するが、USBメモリからオーディオファイルを取得する場合も同様である。プレイリストから再生すべきオーディオファイルが選択されると、ネットマイコン4は、再生開始状態になる(S401)。ネットマイコン4は、プレイリストを参照し、選択されたオーディオファイルの拡張子又はMIMEタイプに基づいて、再生すべきオーディオファイルのフォーマットが、WMAであるか否かを判断する(S402)。   FIG. 4 is a flowchart showing processing of the net microcomputer 4. In this example, the case where an audio file is acquired from the server 200 will be described as an example, but the same applies to the case where an audio file is acquired from a USB memory. When an audio file to be reproduced is selected from the playlist, the network microcomputer 4 enters a reproduction start state (S401). The network microcomputer 4 refers to the playlist, and determines whether or not the format of the audio file to be reproduced is WMA based on the extension or MIME type of the selected audio file (S402).

再生すべきオーディオファイルのフォーマットがWMAではなく、例えば、MP3等であれば(S402でNO)、ネットマイコン4は、拡張子又はMIMEタイプに基づいたフォーマットのデコーダを選択し、選択したデコーダを起動させる(S410)。例えば、フォーマットがMP3であれば、MP3デコーダを選択し、起動させる。ネットマイコン4は、履歴テーブルに、選択して起動させたデコーダのフォーマットを新たに記憶させる(S408)。そして、ネットマイコン4は、選択されたオーディオファイルをサーバ200から取得して、起動させたデコーダにデコードさせ、再生を開始する(S409)。   If the format of the audio file to be played is not WMA, for example, MP3 or the like (NO in S402), the net microcomputer 4 selects a decoder based on the extension or MIME type, and activates the selected decoder. (S410). For example, if the format is MP3, the MP3 decoder is selected and activated. The net microcomputer 4 newly stores the format of the decoder activated by selection in the history table (S408). Then, the net microcomputer 4 acquires the selected audio file from the server 200, causes the activated decoder to decode it, and starts reproduction (S409).

S402で、拡張子又はMIMEタイプがWMAであると判断された場合(S402でYES)、ネットマイコン4は、履歴テーブルのデータ数>0であるか否か、すなわち、履歴テーブルに過去に再生されたオーディオファイルのフォーマットが1つ以上記憶されているか否かを判断する(S403)。履歴テーブルにフォーマットが記憶されていない場合(S403でNO)、つまり、電源投入後最初のオーディオファイルの再生であるために、過去に再生されたオーディオファイルのフォーマットが記憶されていない場合には、ネットマイコン4は、WMA STDデコーダ又はWMA LSLデコーダの内、デフォルトとして設定されている方のデコーダを選択し、選択したデコーダを起動させて、S406に進む。   When it is determined in S402 that the extension or MIME type is WMA (YES in S402), the network microcomputer 4 determines whether or not the number of data in the history table> 0, that is, the history table is reproduced in the past. It is determined whether one or more audio file formats are stored (S403). When the format is not stored in the history table (NO in S403), that is, when the format of the audio file played back in the past is not stored because the playback is the first audio file after power-on, The net microcomputer 4 selects one of the WMA STD decoder and the WMA LSL decoder which is set as a default, activates the selected decoder, and proceeds to S406.

S403で履歴テーブルにフォーマットが記憶されていると判断された場合(S403でYES)、ネットマイコン4は、履歴テーブルにおいて、最後尾(直近)に記憶されているフォーマットがWMA STD、又は、WMA LSLであるか否かを判断する(S404)。すなわち、直近に再生したオーディオファイルのフォーマットが、WMA STD、又は、WMA LSLであるか否かを判断する。   If it is determined in S403 that the format is stored in the history table (YES in S403), the network microcomputer 4 determines that the format stored at the end (most recent) in the history table is WMA STD or WMA LSL. It is determined whether or not (S404). That is, it is determined whether or not the format of the most recently played audio file is WMA STD or WMA LSL.

履歴テーブルの最後尾に記憶されているフォーマットがWMA STD、又は、WMA LSLである場合(S404でYES)、ネットマイコン4は、最後尾に記憶されているフォーマットと同じフォーマットに対応するデコーダを選択し、起動させ(S405)、S406に進む。つまり、履歴テーブルの直近に記憶されているフォーマットがWMA STDであれば、ネットマイコン4は、WMA STDデコーダを選択して、起動させる。一方、履歴テーブルの直近に記憶されているフォーマットがWMA LSLであれば、ネットマイコン4は、WMA LSLデコーダを選択して、起動させる。   When the format stored at the end of the history table is WMA STD or WMA LSL (YES in S404), the net microcomputer 4 selects a decoder corresponding to the same format as the format stored at the end. Then, it is activated (S405) and proceeds to S406. That is, if the format stored most recently in the history table is WMA STD, the net microcomputer 4 selects and activates the WMA STD decoder. On the other hand, if the format stored most recently in the history table is WMA LSL, the net microcomputer 4 selects and activates the WMA LSL decoder.

S404で、履歴テーブルの最後尾に記憶されているフォーマットがWMA STD、又は、WMA LSLでない場合(S404でNO)、ネットマイコン4は、履歴テーブルに記憶されているフォーマットにおいて、WMA STDとWMA LSLとの中で数が多い方のフォーマットに対応するデコーダを選択し、起動させ(S412)、S406に進む。つまり、履歴テーブルに記憶されている数が多い方のフォーマットがWMA STDであれば、ネットマイコン4は、WMA STDデコーダを選択して、起動させる。一方、履歴テーブルに記憶されている数が多い方のフォーマットがWMA LSLであれば、ネットマイコン4は、WMA LSLデコーダを選択して、起動させる。なお、履歴テーブルに記憶されている数が同数であれば、S411と同様に、デフォルトのデコーダを選択して、起動させるとよい。   If the format stored at the end of the history table is not WMA STD or WMA LSL in S404 (NO in S404), the network microcomputer 4 uses the WMA STD and WMA LSL in the format stored in the history table. The decoder corresponding to the format with the larger number is selected and activated (S412), and the process proceeds to S406. That is, if the format with the larger number stored in the history table is the WMA STD, the net microcomputer 4 selects and activates the WMA STD decoder. On the other hand, if the format with the larger number stored in the history table is the WMA LSL, the net microcomputer 4 selects and activates the WMA LSL decoder. If the number stored in the history table is the same, a default decoder may be selected and activated as in S411.

S406において、ネットマイコン4は、サーバ200のオーディオファイルから、初期化及び/又は設定用のデータをSEEK、READして取得し、起動させたデコーダに供給する。デコーダは、供給されたデータを使用して、初期化及び/又は設定を実行する。ネットマイコン4は、S406の結果、サーバから取得したデータを使用して、デコーダが初期化及び/又は設定を実行できたか否かを判断する(S407)。初期化及び/又は設定できた場合(S407でYES)、S405,S411又はS412で選択したデコーダは正しいデコーダである。従って、ネットマイコン4は、S405,S411又はS412で選択したデコーダのフォーマットを履歴テーブルの最後尾に記憶する(S408)。これにより、今回再生するオーディオファイルの正確なフォーマット(WMA STD又はWMA LSL)を履歴テーブルに記憶させることができる。その後、ネットマイコン4は、サーバ200から選択されたオーディオファイルを取得し、起動させたデコーダによってデコーダさせ、再生を開始する(S409)。   In S406, the net microcomputer 4 obtains initialization and / or setting data from the audio file of the server 200 by SEEK and READ, and supplies the data to the activated decoder. The decoder performs initialization and / or setting using the supplied data. As a result of S406, the network microcomputer 4 uses the data acquired from the server to determine whether the decoder has been able to execute initialization and / or setting (S407). If initialization and / or setting is possible (YES in S407), the decoder selected in S405, S411, or S412 is a correct decoder. Accordingly, the network microcomputer 4 stores the format of the decoder selected in S405, S411, or S412 at the end of the history table (S408). Thereby, the exact format (WMA STD or WMA LSL) of the audio file to be reproduced this time can be stored in the history table. Thereafter, the net microcomputer 4 acquires the selected audio file from the server 200, causes the activated decoder to decode the audio file, and starts reproduction (S409).

S407で初期化及び/又は設定できなかった場合(S407でNO)、S405,S411又はS412で選択したデコーダは誤ったデコーダである。従って、ネットマイコン4は、WMA STDデコーダ又はWMA LSLデコーダの内、S405,S411又はS412で選択しなかった方のフォーマットのデコーダを選択し、起動させる(S413)。つまり、S405,S411又はS412でWMA STDデコーダが選択された場合には、ネットマイコン4は、WMA LSLデコーダを選択し、起動させる。S405,S411又はS412でWMA LSLデコーダが選択された場合には、ネットマイコン4は、WMA STDデコーダを選択し、起動させる。   When initialization and / or setting cannot be performed in S407 (NO in S407), the decoder selected in S405, S411, or S412 is an incorrect decoder. Accordingly, the net microcomputer 4 selects and activates the decoder of the format not selected in S405, S411, or S412 among the WMA STD decoder or WMA LSL decoder (S413). That is, when the WMA STD decoder is selected in S405, S411, or S412, the net microcomputer 4 selects and activates the WMA LSL decoder. When the WMA LSL decoder is selected in S405, S411, or S412, the net microcomputer 4 selects and activates the WMA STD decoder.

ネットマイコン4は、再度、サーバ200のオーディオファイルから、初期化及び/又は設定用のデータをSEEK、READによって取得し、起動させたデコーダに供給する。デコーダは、供給されたデータを使用して、初期化及び/又は設定を実行する(S414)。ネットマイコン4は、S414の結果、サーバから取得したデータを使用して、デコーダが初期化及び/又は設定できたか否かを判断する(S415)。デコーダが初期化及び/又は設定できた場合(S415でYES)、S413で選択したデコーダは正しいデコーダである。従って、ネットマイコン4は、S413で選択したデコーダのフォーマットを履歴テーブルの最後尾に記憶する(S408)。これにより、今回再生するオーディオファイルの正確なフォーマット(WMA STD又はWMA LSL)を履歴テーブルに記憶させることができる。その後、ネットマイコン4は、サーバ200から選択されたオーディオファイルを取得して、起動させたデコーダにデコードさせ、再生を開始する(S409)。   The network microcomputer 4 again obtains initialization and / or setting data from the audio file of the server 200 by SEEK and READ, and supplies the data to the activated decoder. The decoder performs initialization and / or setting using the supplied data (S414). As a result of S414, the net microcomputer 4 uses the data acquired from the server to determine whether the decoder has been initialized and / or set (S415). If the decoder can be initialized and / or set (YES in S415), the decoder selected in S413 is the correct decoder. Accordingly, the net microcomputer 4 stores the format of the decoder selected in S413 at the end of the history table (S408). Thereby, the exact format (WMA STD or WMA LSL) of the audio file to be reproduced this time can be stored in the history table. Thereafter, the net microcomputer 4 acquires the selected audio file from the server 200, causes the activated decoder to decode it, and starts reproduction (S409).

S415で初期化及び/又は設定できなかった場合(S415でNO)、S413で選択したデコーダも誤ったデコーダである。従って、ネットマイコン4は、選択されたオーディオファイルをデコードして、再生することができないと判断し、エラー処理を実行し(S416)、処理を終了する。   If initialization and / or setting cannot be performed in S415 (NO in S415), the decoder selected in S413 is also an erroneous decoder. Accordingly, the network microcomputer 4 determines that the selected audio file cannot be decoded and reproduced, executes error processing (S416), and ends the processing.

以上のように、拡張子又はMIMEタイプに基づいてオーディオファイルのフォーマットがWMAであると判断された場合には、履歴テーブルに直近に記憶されている(直近に再生されたオーディオファイルの)フォーマットに対応するデコーダを最初に起動させることにより、正確なデコーダを最初に起動できる可能性を高くすることができる。   As described above, when the format of the audio file is determined to be WMA based on the extension or MIME type, the format most recently stored in the history table (the most recently played audio file) is used. By starting the corresponding decoder first, the possibility of starting the correct decoder first can be increased.

次に、本発明の別の好ましい実施形態を説明する。本例では、USB端子9に接続されるUSBメモリ毎に上記の履歴テーブルを管理し、再生するオーディオファイルが格納されているUSB端子に対応する履歴テーブルを使用して、上記実施形態と同様に、オーディオファイルのフォーマットを推定する。また、サーバ毎に上記の履歴テーブルを管理し、再生するオーディオファイルが格納されているサーバに対応する履歴テーブルを使用して、上記実施形態と同様に、オーディオファイルのフォーマットを推定する。ここで、USBメモリやサーバを、総称して外部記憶装置という。   Next, another preferred embodiment of the present invention will be described. In this example, the above history table is managed for each USB memory connected to the USB terminal 9, and the history table corresponding to the USB terminal storing the audio file to be played back is used in the same manner as in the above embodiment. Estimate audio file format. Further, the history table is managed for each server, and the format of the audio file is estimated using the history table corresponding to the server in which the audio file to be reproduced is stored, as in the above embodiment. Here, the USB memory and the server are collectively referred to as an external storage device.

ネットマイコン4は、その内部のメモリ領域に、図5に示すUSBリストを格納している。USBリストは、USB端子9に接続されたUSBメモリ毎に、番号NO.に対応付けて、モデル名、ベンダーID、シリアル番号及び履歴テーブルを記憶するリストである。ベンダーIDとシリアル番号とは、USBメモリを一意に特定するための識別情報である。履歴テーブルは、上記の通り、各USBメモリ毎に、過去に再生されたオーディオファイルのフォーマットを時系列で記憶するテーブルである。各USBメモリに対する履歴テーブルの例を図6に示す。例えば、NO.1のUSBメモリについては、履歴テーブルUSB−Tb1を参照すると、直近に再生されたオーディオファイルのフォーマットはMP3であり、その1つ前に再生されたオーディオファイルのフォーマットもMP3であることが分かる。   The net microcomputer 4 stores the USB list shown in FIG. 5 in its internal memory area. The USB list includes a number NO. For each USB memory connected to the USB terminal 9. Is a list that stores a model name, a vendor ID, a serial number, and a history table in association with each other. The vendor ID and serial number are identification information for uniquely specifying the USB memory. As described above, the history table is a table that stores the format of audio files reproduced in the past for each USB memory in chronological order. An example of a history table for each USB memory is shown in FIG. For example, NO. For the USB memory 1, referring to the history table USB-Tb 1, it can be seen that the format of the audio file reproduced most recently is MP3, and the format of the audio file reproduced immediately before is MP3.

ネットマイコン4は、その内部のメモリ領域に、図7に示すサーバリストを格納している。サーバリストは、過去に接続されたサーバ200毎に、番号NO.に対応付けて、サーバ名、UUID(又はMACアドレス)、及び履歴テーブルを記憶するリストである。UUID(又はMACアドレス)は、サーバ200を一意に特定するための識別情報である。履歴テーブルは、上記の通り、各サーバ毎に、過去に再生されたオーディオファイルのフォーマットを時系列で記憶するテーブルである。   The net microcomputer 4 stores the server list shown in FIG. 7 in its internal memory area. The server list includes a number NO. For each server 200 connected in the past. Is a list that stores a server name, a UUID (or MAC address), and a history table in association with each other. The UUID (or MAC address) is identification information for uniquely specifying the server 200. As described above, the history table is a table that stores the format of audio files reproduced in the past for each server in time series.

図8は、本例におけるネットマイコン4の処理の要部を説明する図である。なお、ネットマイコン4のオーディオファイルのフォーマットを推定する基本的な処理は図4と同じであり、ここでは、使用する履歴テーブルの選択処理のみを説明する。ネットマイコン4は、拡張子又はMIMEタイプに基づいて選択されたオーディオファイルのフォーマットがWMAであると判断する(図4のS402でYES)と、図8のS601に進む。ネットマイコン4は、再生すべきオーディオファイルがUSBメモリに記録されているか否かを判断する(S602)。   FIG. 8 is a diagram for explaining a main part of processing of the net microcomputer 4 in this example. The basic process for estimating the audio file format of the network microcomputer 4 is the same as that shown in FIG. 4, and only the process of selecting the history table to be used will be described here. If the network microcomputer 4 determines that the format of the audio file selected based on the extension or MIME type is WMA (YES in S402 of FIG. 4), the process proceeds to S601 of FIG. The network microcomputer 4 determines whether an audio file to be reproduced is recorded in the USB memory (S602).

USBメモリに記録されている場合には(S602でYES)、ネットマイコン4は、再生すべきオーディファイルが記録されているUSBメモリのベンダーIDとシリアル番号とをUSBメモリから読み出して取得する(S603)。ネットマイコン4は、図5のUSBリストに、S603で取得したベンダーIDとシリアル番号との組合せが存在するか否かを判断する(S604)。すなわち、再生すべきオーディオファイルが記録されたUSBメモリの履歴テーブルがUSBリストに記憶されているか否かを判断する。   If it is recorded in the USB memory (YES in S602), the network microcomputer 4 reads out and acquires from the USB memory the vendor ID and serial number of the USB memory in which the audio file to be reproduced is recorded (S603). ). The network microcomputer 4 determines whether or not the combination of the vendor ID and the serial number acquired in S603 exists in the USB list in FIG. 5 (S604). That is, it is determined whether or not the USB memory history table in which the audio file to be reproduced is recorded is stored in the USB list.

図5のUSBリストに、S603で取得したベンダーIDとシリアル番号との組合せが存在すると判断された場合(S604でYES)、ネットマイコン4は、USBリストからベンダーIDとシリアル番号との組合せに対応する履歴テーブルを取得し、オーディオファイルのフォーマットがWMA STDであるか、WMA LSLであるかを推定するための履歴テーブルとして使用する。例えば、ベンダーIDが0x7A8B,シリアル番号が0xCK2349cksであれば、NO.1のUSBメモリであることが特定され、履歴テーブルUSB−Tb1が取得される。その後、S612に進み、図4のS403以降の処理を実行する。   If it is determined that the combination of the vendor ID and serial number acquired in S603 exists in the USB list of FIG. 5 (YES in S604), the net microcomputer 4 supports the combination of the vendor ID and serial number from the USB list. Is used as a history table for estimating whether the format of the audio file is WMA STD or WMA LSL. For example, if the vendor ID is 0x7A8B and the serial number is 0xCK2349cks, NO. 1 is specified, and the history table USB-Tb1 is acquired. Thereafter, the process proceeds to S612, and the processes after S403 in FIG. 4 are executed.

S604で図5のUSBリストに、S603で取得したベンダーIDとシリアル番号との組合せが存在しないと判断された場合(S604でNO)、初めて当該USBメモリに記録されたオーディオファイルを再生するので、未だ履歴テーブルが生成されていない。従って、ネットマイコン4は新たに履歴テーブルを生成し、USBリストに、モデル名、ベンダーID、シリアル番号と関連付けて登録すると共に、オーディオファイルのフォーマットがWMA STDであるか、WMA LSLであるかを推定するための履歴テーブルとして使用する。(S605)。その後、S612に進み、図4のS403以降の処理を実行する。   If it is determined in S604 that the combination of the vendor ID and serial number acquired in S603 does not exist in the USB list of FIG. 5 (NO in S604), the audio file recorded in the USB memory is played for the first time. The history table has not been generated yet. Therefore, the network microcomputer 4 newly generates a history table, registers it in the USB list in association with the model name, vendor ID, and serial number, and determines whether the audio file format is WMA STD or WMA LSL. Used as a history table for estimation. (S605). Thereafter, the process proceeds to S612, and the processes after S403 in FIG. 4 are executed.

以上の処理により、再生すべきオーディオファイルが記録されているUSBメモリ毎に履歴テーブルが生成され、オーディオファイルのフォーマットがWMA STDであるか、WMA LSLであるかを推定するために、各USBメモリの履歴テーブルが使用される。一般的に、1つのUSBメモリには同一のフォーマットのオーディオファイルを記録することが多いので、図4の処理において、WMA STD又はWMA LSLのうち、履歴テーブルの直近に記憶されているフォーマット、あるいは、履歴テーブルに記憶されている数が多い方のフォーマットを選択することによって、正しいフォーマットのデコーダを最初に起動できる可能性をより高くすることができる。従って、複数のUSBメモリの中からUSBメモリを適宜切り換えながらオーディオファイルを再生する場合でも、正しいフォーマットのデコーダを最初に起動できる可能性をより高くすることができる。   Through the above processing, a history table is generated for each USB memory in which an audio file to be reproduced is recorded, and each USB memory is estimated in order to estimate whether the format of the audio file is WMA STD or WMA LSL. The history table is used. In general, an audio file having the same format is often recorded in one USB memory. Therefore, in the process of FIG. 4, either the format stored immediately in the history table in WMA STD or WMA LSL, or By selecting the format with the larger number stored in the history table, it is possible to increase the possibility that the correct format decoder can be activated first. Therefore, even when an audio file is reproduced while appropriately switching the USB memory from a plurality of USB memories, it is possible to increase the possibility that the correct format decoder can be activated first.

S602でNOと判断された場合、ネットマイコン4は、再生すべきオーディオファイルがサーバ200に記録されているか否かを判断する(S607)。   If NO is determined in S602, the network microcomputer 4 determines whether or not the audio file to be reproduced is recorded in the server 200 (S607).

サーバ200に記録されている場合には(S607でYES)、ネットマイコン4は、再生すべきオーディファイルが記録されているサーバ200のUUID(又はMACアドレス)をサーバ200から取得する(S608)。ネットマイコン4は、図7のサーバリストに、S608で取得したUUID(又はMACアドレス)が存在するか否かを判断する(S609)。すなわち、再生すべきオーディオファイルが記録されたサーバの履歴テーブルがサーバリストに記憶されているか否かを判断する。   If it is recorded in the server 200 (YES in S607), the net microcomputer 4 acquires the UUID (or MAC address) of the server 200 in which the audio file to be reproduced is recorded from the server 200 (S608). The network microcomputer 4 determines whether the UUID (or MAC address) acquired in S608 is present in the server list of FIG. 7 (S609). That is, it is determined whether or not the server history table in which the audio file to be reproduced is recorded is stored in the server list.

図7のサーバリストに、S608で取得したUUID(又はMACアドレス)が存在すると判断された場合(S609でYES)、ネットマイコン4は、サーバリストからUUID(又はMACアドレス)に対応する履歴テーブルを取得し、オーディオファイルのフォーマットがWMA STDであるか、WMA LSLであるかを推定するための履歴テーブルとして使用する。その後、S612に進み、図4のS403以降の処理を実行する。   If it is determined that the UUID (or MAC address) acquired in S608 is present in the server list of FIG. 7 (YES in S609), the net microcomputer 4 displays a history table corresponding to the UUID (or MAC address) from the server list. It is obtained and used as a history table for estimating whether the format of the audio file is WMA STD or WMA LSL. Thereafter, the process proceeds to S612, and the processes after S403 in FIG. 4 are executed.

S609で図7のサーバリストに、S608で取得したUUID(又はMACアドレス)が存在しないと判断された場合(S609でNO)、初めて当該サーバ200に記録されたオーディオファイルを再生するので、未だ履歴テーブルが生成されていない。従って、ネットマイコン4は新たに履歴テーブルを生成し、オーディオファイルのフォーマットがWMA STDであるか、WMA LSLであるかを推定するための履歴テーブルとして使用すると共に、サーバリストに、サーバ名、UUID(又はMACアドレス)と関連付けて登録する(S611)。その後、S612に進み、図4のS403以降の処理を実行する。   If it is determined in S609 that the UUID (or MAC address) acquired in S608 does not exist in the server list of FIG. 7 (NO in S609), the audio file recorded in the server 200 is played for the first time, so the history is still The table has not been generated. Therefore, the net microcomputer 4 newly generates a history table, uses it as a history table for estimating whether the format of the audio file is WMA STD or WMA LSL, and also displays the server name, UUID in the server list. (Or MAC address) is registered in association (S611). Thereafter, the process proceeds to S612, and the processes after S403 in FIG. 4 are executed.

以上の処理により、再生すべきオーディオファイルが記録されているサーバ毎に履歴テーブルが生成され、オーディオファイルのフォーマットがWMA STDであるか、WMA LSLであるかを推定するために、各サーバの履歴テーブルが使用される。一般的に、1つのサーバには同一のフォーマットのオーディオファイルが記録されていることが多いので、図4の処理において、WMA STD又はWMA LSLのうち、履歴テーブルの直近に記憶されているフォーマット、あるいは、履歴テーブルに記憶されている数が多い方のフォーマットを選択することによって、正しいフォーマットのデコーダを最初に起動できる可能性をより高くすることができる。従って、複数のサーバの中からサーバを適宜切り換えながらオーディオファイルを再生する場合でも、正しいフォーマットのデコーダを最初に起動できる可能性をより高くすることができる。   Through the above processing, a history table is generated for each server on which an audio file to be reproduced is recorded, and the history of each server is estimated in order to estimate whether the format of the audio file is WMA STD or WMA LSL. A table is used. In general, an audio file of the same format is often recorded in one server, so in the process of FIG. 4, the format stored most recently in the history table in WMA STD or WMA LSL, Alternatively, by selecting the format with the larger number stored in the history table, it is possible to increase the possibility that the correct format decoder can be activated first. Therefore, even when an audio file is reproduced while appropriately switching among a plurality of servers, it is possible to increase the possibility that the correct format decoder can be activated first.

次に、本発明のさらに別の実施形態を説明する。本例では、ネットマイコン4は、その内部のメモリ領域に、図9のフォーマットサイズテーブルを予め格納している。フォーマットサイズテーブルには、オーディオファイルのビットレート、サンプリング周波数、サンプルサイズ等(これらを総称してオーディオファイルの品質に関する情報という。)に関連付けて、WMA STDの単位チャンネル、かつ、単位時間(1秒)あたりのサイズ(基準サイズという。)と、WMA LSLの単位チャンネル、かつ、単位時間(1秒)あたりのサイズ(基準サイズという。)とが予め登録されている。   Next, still another embodiment of the present invention will be described. In this example, the net microcomputer 4 stores the format size table of FIG. 9 in advance in its internal memory area. In the format size table, a unit channel of WMA STD and a unit time (1 second) are associated with the bit rate, sampling frequency, sample size, etc. of the audio file (collectively referred to as information relating to the quality of the audio file). ) (Referred to as a reference size) and a WMA LSL unit channel and a size per unit time (one second) (referred to as a reference size) are registered in advance.

図10は本例の処理を示す図であり、UI層、コンテンツ管理層、ネットワーク通信層は、それぞれネットマイコン4のソフトウェア、サーバ側通信層はサーバ200のソフトウェアである。   FIG. 10 is a diagram showing the processing of this example. The UI layer, the content management layer, and the network communication layer are the software of the network microcomputer 4, and the server-side communication layer is the software of the server 200.

図11は、UI層が表示部7又は外部ディスプレイに表示させるプレイリスト画面を示す図である。21番目〜30番目のオーディオファイルが表示されている。ここで、UI層にユーザ操作によってプレイリストのページ移動指示が入力される(S301)。UI層は、ネットワーク通信層に、プレイリストの次ページ情報を取得するように要求する(S302)。例えば、UI層は、GetContentList関数を実行し、start及びendの引数で情報の取得範囲をネットワーク通信層に供給する(ここでは、start=31,end=40)。ネットワーク通信層は、サーバ側通信層に対し、Browseリクエストを送信し、サーバから次ページ情報を取得し、infoに取得した次ページ情報を格納する。この時点で、引数で渡したinfoには、No.31から40までのオーディオファイルのコンテンツ情報(アーティスト名、トラック名、サンプリング周波数、ビットレート等)がすべて含まれている。コンテンツ管理層は、No.31-No.40のページから外れない限り、このinfoを保持しておく(S304)。   FIG. 11 is a diagram showing a playlist screen that the UI layer displays on the display unit 7 or an external display. The 21st to 30th audio files are displayed. Here, an instruction to move the playlist page is input to the UI layer by a user operation (S301). The UI layer requests the network communication layer to acquire the next page information of the playlist (S302). For example, the UI layer executes the GetContentList function, and supplies the information acquisition range to the network communication layer using start and end arguments (here, start = 31, end = 40). The network communication layer transmits a Browse request to the server-side communication layer, acquires next page information from the server, and stores the acquired next page information in info. At this time, the info passed as an argument includes all the contents information (artist name, track name, sampling frequency, bit rate, etc.) of audio files No. 31 to No. 40. The content management layer holds this info unless it falls off the pages No. 31 to No. 40 (S304).

続いて、UI層にユーザ操作によってオーディオファイルを選択して再生する指示が入力される(S305)。UI層は、コンテンツ管理層に、選択されたオーディオファイルを再生する指示であるPlay(index)を送信する(なお、indexはプレイリストにおける選択されたオーディオファイルの番号を示す)(S306)。   Subsequently, an instruction to select and play an audio file by a user operation is input to the UI layer (S305). The UI layer transmits Play (index), which is an instruction to play the selected audio file, to the content management layer (note that index indicates the number of the selected audio file in the playlist) (S306).

コンテンツ管理層は、indexを元にinfoに格納されている各オーディオファイルのプロパティの中から、選択されたオーディオファイルのプロパティを引き出す(S307)。次に、コンテンツ管理層は、選択されたオーディオファイルのフォーマットが、拡張子又はMIMEタイプに基づいて、WMAであるか否かを判断する(S308)。フォーマットがWMAでなければ、以下の処理を実行せずに、フォーマットに対応するデコーダを選択し、起動させる(図示せず)。一方、フォーマットがWMAであれば、S309に進み、S307で取得したオーディオファイルのプロパティに、フォーマットサイズテーブルにおいて行を一意に特定できる情報(例えば、ビットレート、サンプリング周波数、サンプルサイズであるが、これに限定されない。)が含まれているか否かを判断する。仮に、S307で取得したオーディオファイルのプロパティに、フォーマットサイズテーブルにおいて行を一意に特定できる情報が含まれていない場合には、以下の処理を実行せずに、デフォルトのフォーマット(WMA STD又はWMA LSL)のデコーダを選択し、起動する(図示せず)。   The content management layer extracts the property of the selected audio file from the properties of each audio file stored in info based on the index (S307). Next, the content management layer determines whether the format of the selected audio file is WMA based on the extension or MIME type (S308). If the format is not WMA, a decoder corresponding to the format is selected and activated without executing the following processing (not shown). On the other hand, if the format is WMA, the process proceeds to S309, and information (eg, bit rate, sampling frequency, sample size, etc.) that can uniquely identify a row in the format size table in the audio file property acquired in S307. It is not limited to.) Is determined. If the property of the audio file acquired in S307 does not include information that can uniquely identify a row in the format size table, the default format (WMA STD or WMA LSL is not executed). ) Decoder is selected and activated (not shown).

フォーマットサイズテーブルにおいて行を一意に特定できる情報が含まれている場合には、S310に進み、ネットマイコン4は、フォーマットサイズテーブルの該当する行を特定する。つまり、ネットマイコン4は、S307で取得したオーディオファイルのプロパティを参照し、ビットレート、サンプリング周波数、サンプルサイズ等の情報を読み出して、フォーマットサイズテーブルの行を特定する。   If the format size table includes information that can uniquely identify a row, the process proceeds to S310, and the network microcomputer 4 identifies the corresponding row in the format size table. That is, the net microcomputer 4 refers to the properties of the audio file acquired in S307, reads information such as the bit rate, sampling frequency, and sample size, and identifies the row of the format size table.

さらに、ネットマイコン4は、再生すべきオーディオファイルの単位チャンネル、単位時間(1秒)当たりのサイズ(基準サイズという。)を算出する(S311)。オーディオファイルのサイズ、チャンネル数、再生時間は上記のプロパティに含まれているので、これらの情報に基づいて基準サイズを算出する。ネットマイコン4は、フォーマットサイズテーブルのS310で特定した行において、WMA STDの基準サイズと、WMA LSLの基準サイズとの中から、S311で算出した再生すべきオーディオファイルの基準サイズに近い方のフォーマットを特定する。そして、ネットマイコン4は、特定した方のフォーマットのデコーダを選択し、最初に起動させる。   Further, the net microcomputer 4 calculates a size (referred to as a reference size) per unit channel and unit time (1 second) of the audio file to be reproduced (S311). Since the size, the number of channels, and the playback time of the audio file are included in the above properties, the reference size is calculated based on these pieces of information. In the line specified in S310 of the format size table, the net microcomputer 4 selects the format closer to the reference size of the audio file to be reproduced calculated in S311 from the WMA STD reference size and the WMA LSL reference size. Is identified. Then, the net microcomputer 4 selects the specified format decoder and activates it first.

以上の処理によって、フォーマットサイズテーブルと、再生すべきオーディオファイルのプロパティとに基づいて、WMA STDデコーダとWMA LSLデコーダとの中から、最初に正確なフォーマットのデコーダを選択できる可能性を高くすることができる。   By the above processing, the possibility that the correct format decoder can be first selected from the WMA STD decoder and the WMA LSL decoder based on the format size table and the properties of the audio file to be reproduced is increased. Can do.

次に、本発明のさらに別の実施形態を説明する。本例では、WMA STDデコーダ又はWMA LSLデコーダの内、最初に選択したデコーダにおいて、デコーダを初期化及び/又は設定するためにサーバ又はUSBメモリから取得したデータ(オーディオファイルの一部)を一時的にキュー(メモリであり、スタックでもよい。)に保存する。そして、最初に選択したデコーダが誤っており、初期化及び/又は設定ができなかった場合に、もう一方のデコーダを選択して起動するのであるが、この時、デコーダを初期化及び/又は設定するためのデータをサーバ又はUSBメモリから再取得するのではなく、キューに保存しているデータを読み出して、デコーダに供給する。これにより、デコーダを初期化及び/又は設定するためのデータをサーバ又はUSBメモリから再取得する必要がないので、無駄な処理及び通信が不要になり、オーディオファイルを再生開始するまでに要する時間を短縮できる。   Next, still another embodiment of the present invention will be described. In this example, in the WMA STD decoder or WMA LSL decoder, the data (part of the audio file) acquired from the server or the USB memory is temporarily stored in the decoder selected first to initialize and / or set the decoder. To the queue (memory, may be a stack). If the first selected decoder is wrong and initialization and / or setting cannot be performed, the other decoder is selected and activated. At this time, the decoder is initialized and / or set. The data stored in the queue is read out and supplied to the decoder, instead of re-acquiring data to be performed from the server or USB memory. As a result, it is not necessary to re-acquire data for initializing and / or setting the decoder from the server or the USB memory, so that unnecessary processing and communication are not required, and the time required to start playback of the audio file is reduced. Can be shortened.

図12は、WMA LSLデコーダ又はWMA STDデコーダに初期化及び/又は設定を実行させるためのデータをUSBメモリから取得する際のデコーダアプリケーションプログラム(以下、デコーダアプリという。)が実行する関数の一例である。デコーダアプリは、ネットマイコン4が実行するプリケーションプログラムであり、各フォーマットのデコーダを制御する機能を有する。WMA LSLデコーダを初期化及び/又は設定するためには、図12上側に示すような関数が実行され、WMA STDデコーダを初期化及び/又は設定するためには、図12下側に示すような関数が実行される。FSEEK(又はfseek)は、オーディオファイルをシークする(読み出し開始位置(ポインタ)を移動させる)関数であり、0、1220、4900,5396等の数字は、オーディオファイルにおけるポインタの移動先の相対アドレス(バイト)を示す。つまり、オーディオファイルの先頭のアドレスが0とされている。freadは、オーディオファイルをシークされた位置から読み出す関数であり、256、248、252等は、シークされた位置から読み出すデータサイズ(バイト)を示す。   FIG. 12 is an example of a function executed by a decoder application program (hereinafter referred to as a decoder application) when acquiring data from the USB memory for causing the WMA LSL decoder or the WMA STD decoder to execute initialization and / or setting. is there. The decoder application is an application program executed by the network microcomputer 4 and has a function of controlling the decoder of each format. To initialize and / or set up the WMA LSL decoder, the functions as shown in the upper part of FIG. 12 are executed, and to initialize and / or set up the WMA STD decoder, as shown in the lower part of FIG. The function is executed. FSEEK (or fseek) is a function for seeking an audio file (moving a reading start position (pointer)), and numbers such as 0, 1220, 4900, and 5396 are relative addresses (to which the pointer is moved in the audio file). Byte). That is, the head address of the audio file is set to 0. “read” is a function for reading an audio file from the seek position, and 256, 248, 252 and the like indicate data sizes (bytes) to be read from the seek position.

従来では、オーディオファイルのフォーマットがWMAであると判断され、最初にWMA LSLデコーダが選択され、起動された場合には、デコーダアプリは、図12の上側に示すようなSEEK及びREADの関数を実行し、USBメモリ又はサーバからオーディオファイルの該当する部分を取得し、WMA LSLデコーダに供給する。WMA LSLデコーダは、供給されたデータを用いて初期化及び/又は設定を実行する。ここで、正しいデコーダではないために初期化及び/又は設定に失敗した場合に、次に、WMA STDデコーダが選択され、起動される。デコーダアプリは、図12の下側に示すようなSEEK及びREADの関数を再度実行し、USBメモリ又はサーバからオーディオファイルの該当する部分を取得し、WMA STDデコーダに供給する。WMA STDデコーダは、供給されたデータを用いて、初期化及び/又は設定を実行する。このように、デコーダアプリは、略同一のSEEK及びREAD関数を2回実行し、同一のデータをUSBメモリ又はサーバから2回取得している。   Conventionally, when it is determined that the format of the audio file is WMA and the WMA LSL decoder is first selected and activated, the decoder application executes SEEK and READ functions as shown in the upper side of FIG. Then, the corresponding part of the audio file is acquired from the USB memory or the server and supplied to the WMA LSL decoder. The WMA LSL decoder performs initialization and / or setting using the supplied data. Here, if initialization and / or configuration fails because it is not the correct decoder, then the WMA STD decoder is selected and activated. The decoder application again executes the SEEK and READ functions as shown in the lower part of FIG. 12, acquires the corresponding part of the audio file from the USB memory or the server, and supplies it to the WMA STD decoder. The WMA STD decoder performs initialization and / or setting using the supplied data. As described above, the decoder application executes substantially the same SEEK and READ functions twice, and acquires the same data twice from the USB memory or the server.

そこで、本例では、上記のように、最初にWMA LSLデコーダが選択された場合に、デコーダアプリは、図12の上側に示すようなSEEK及びREADの関数を実行し、USBメモリ又はサーバからオーディオファイルの該当する部分を取得して、キューに保存する。次に、WMA STDデコーダが選択された場合に、デコーダアプリは、キューに保存してあるデータをWMA STDデコーダに供給し、WMA STDデコーダは当該データを用いて初期化及び/又は設定を実行する。   Therefore, in this example, when the WMA LSL decoder is first selected as described above, the decoder application executes the SEEK and READ functions as shown in the upper side of FIG. Get the relevant part of the file and save it in the queue. Next, when the WMA STD decoder is selected, the decoder application supplies the data stored in the queue to the WMA STD decoder, and the WMA STD decoder performs initialization and / or setting using the data. .

図13は本例の処理を示す図である。ユーザ操作によって再生すべきオーディオファイルが選択されると(S201)、デコーダアプリは、選択されたオーディオファイルの拡張子又はMIMEタイプに基づいて、オーディオファイルのフォーマットがWMAであるか否かを判断する(S202)。フォーマットがWMAでなければ、判別したフォーマットのデコーダを起動して、オーディオファイルを再生する(図示せず)。一方、フォーマットがWMAである場合には、デコーダアプリは、WMA LSLデコーダ又はWMA STDデコーダの内、デフォルトに設定されている方のデコーダ(ここでは、WMA LSLデコーダ)を選択して、起動させる(S203)。なお、S203でデフォルトのデコーダを選択するのではなく、WMA LSLデコーダ又はWMA STDデコーダの内、前の実施形態における図4、図8、図10のいずれかの処理によって、オーディオファイルのフォーマットであると推定され、最初に起動すべきと判断されたフォーマットのデコーダを起動させてよい。つまり、本例は、前の実施形態と適宜組合せて実行されることによって、より顕著な効果が得られるものである。   FIG. 13 is a diagram showing processing of this example. When an audio file to be played is selected by a user operation (S201), the decoder application determines whether the format of the audio file is WMA based on the extension or MIME type of the selected audio file. (S202). If the format is not WMA, the decoder of the determined format is activated and an audio file is reproduced (not shown). On the other hand, when the format is WMA, the decoder application selects and activates the default decoder (in this case, the WMA LSL decoder) of the WMA LSL decoder or the WMA STD decoder (in this case, the WMA LSL decoder). S203). Note that, instead of selecting the default decoder in S203, the format of the audio file is determined by the process of any of FIGS. 4, 8, and 10 in the previous embodiment, of the WMA LSL decoder or the WMA STD decoder. The decoder of the format that is presumed to be activated first may be activated. In other words, the present embodiment can obtain a more remarkable effect by being executed in combination with the previous embodiment as appropriate.

起動したWMA LSLデコーダは、自身の初期化及び/又は設定のために必要なデータ(オーディオファイルの一部であり、例えば、サンプリング周波数、ビットレート、バージョン等)をデコーダアプリに要求する(S204)。つまり、WMA LSLデコーダは、デコーダアプリにSEEK及びREADの関数を実行するように要求すると共に、SEEK先のオーディオファイルのデータ位置や、READすべきオーディオファイルのデータサイズをデコーダアプリに通知する。これらのデータ位置やデータサイズ等の値は、WMA LSLデコーダに予め設定されている。   The activated WMA LSL decoder requests the decoder application for data necessary for its initialization and / or setting (part of the audio file, for example, sampling frequency, bit rate, version, etc.) (S204). . That is, the WMA LSL decoder requests the decoder application to execute the SEEK and READ functions, and notifies the decoder application of the data position of the SEEK destination audio file and the data size of the audio file to be read. Values such as the data position and data size are preset in the WMA LSL decoder.

デコーダアプリは、WMA LSLデコーダからSEEK及びREADの要求を受信すると、選択されたオーディオファイルのデータをサーバ200から取得するか、又は、USBメモリ等のローカルストレージから取得するかを、プレイリストの記述に基づいて判断する(S205)。データをサーバ200から取得する場合には、S206に示すように、図12の上側に示す関数とほぼ同様の関数を実行し、サーバ200に対してSEEK及びREADを含むHTTP GETコマンドを送信する。サーバ200は、これに応答して、選択されたオーディオファイルを指定された位置にポインタをシークすると共に、シークした位置から指定されたデータサイズ分のデータを読み出して、デコーダアプリ(及びWMA LSLデコーダ)に返信する。   When the decoder application receives the SEEK and READ request from the WMA LSL decoder, the decoder application describes whether to acquire the data of the selected audio file from the server 200 or from a local storage such as a USB memory. (S205). When acquiring data from the server 200, as shown in S206, a function substantially similar to the function shown on the upper side of FIG. 12 is executed, and an HTTP GET command including SEEK and READ is transmitted to the server 200. In response to this, the server 200 seeks the pointer to the designated position of the selected audio file, and reads out the data of the designated data size from the seek position, and the decoder application (and the WMA LSL decoder). )

一方、データをUSBメモリから取得する場合には、S207に示すように、デコーダアプリは、図12の上側に示す関数を実行し、USBメモリに記録され、選択されたオーディオファイルにおいて、指定された位置にポインタをシークすると共に、シークした位置から指定されたデータサイズ分のデータを読み出して、WMA LSLデコーダに供給する。   On the other hand, when acquiring data from the USB memory, as shown in S207, the decoder application executes the function shown in the upper side of FIG. 12, and is recorded in the USB memory and specified in the selected audio file. The pointer is sought to the position, and data corresponding to the designated data size is read from the sought position and supplied to the WMA LSL decoder.

併せて、デコーダアプリは、サーバから取得、又は、USBメモリから読み出したデータをキューに一時的に保存する(S208)。図14はキューのデータ構造の例を示す図である。WMA LSLデコーダ及びWMA STDデコーダが指定する、SEEKする位置及びREADするデータサイズが常に同じである場合には、図14に示すように、キューにはSEEKする位置及びREADするデータサイズを管理することなく、取得したデータを順番にキューに保存しておくだけでよい。しかし、WMA LSLデコーダ及びWMA STDデコーダが指定する、SEEKする位置及びREADするデータサイズが随時変更される場合には、図15に示すように、SEEKする位置及びREADするデータサイズに対応付けて、データを保存するとよい。   In addition, the decoder application temporarily saves the data acquired from the server or read from the USB memory in the queue (S208). FIG. 14 is a diagram illustrating an example of a queue data structure. When the SEEK position and the READ data size specified by the WMA LSL decoder and the WMA STD decoder are always the same, as shown in FIG. 14, the SEEK position and the READ data size should be managed in the queue. Instead, it is only necessary to save the acquired data in the queue in order. However, when the SEEK position and the READ data size specified by the WMA LSL decoder and the WMA STD decoder are changed as needed, as shown in FIG. 15, the SEEK position and the READ data size are associated with each other. Save the data.

WMA LSLデコーダは、サーバ200から受信したデータ又はUSBメモリから読み出されたデータを使用して、自身の初期化及び/又は設定を実行する。そして、WMA LSLデコーダは、選択されたオーディオファイルのフォーマットがWMA LSLであれば、初期化及び/又は設定に成功し、選択されたオーディオファイルのフォーマットがWMA STDであれば、初期化及び/又は設定に失敗する。WMA LSLデコーダは、初期化及び/又は設定の結果(成功又は失敗)をデコーダアプリに通知する。   The WMA LSL decoder performs initialization and / or setting of itself using data received from the server 200 or data read from the USB memory. If the format of the selected audio file is WMA LSL, the WMA LSL decoder succeeds in initialization and / or setting, and if the format of the selected audio file is WMA STD, initialization and / or Setting fails. The WMA LSL decoder notifies the decoder application of the result of initialization and / or setting (success or failure).

デコーダアプリは、WMA LSLデコーダからの初期化及び/又は設定の結果の通知に基づいて、選択されたオーディオファイルのフォーマットがWMA LSLであり、WMA LSLデコーダが初期化及び/又は設定に成功したか否かを判断する(S209)。WMA LSLデコーダが初期化及び/又は設定に成功した場合には(S209でYES)、デコーダアプリは、キューに保存されている初期化及び/又は設定のためのデータを消去して(S215)、WMA LSLデコーダは、オーディオファイルを再生(デコード)を開始する(S215)。   Based on the notification of the initialization and / or setting result from the WMA LSL decoder, the decoder application determines whether the format of the selected audio file is WMA LSL and the WMA LSL decoder has been successfully initialized and / or set. It is determined whether or not (S209). If the WMA LSL decoder is successfully initialized and / or set (YES in S209), the decoder application deletes the initialization and / or setting data stored in the queue (S215), The WMA LSL decoder starts reproducing (decoding) the audio file (S215).

一方、WMA LSLデコーダが初期化及び/又は設定に失敗した場合には(S209でNO)、デコーダアプリは、WMA LSLデコーダ及びWMA STDデコーダの内、S203で選択されなかった方のデコーダであるWMA STDデコーダを起動させる(S210)。起動したWMA STDデコーダは、自身の初期化及び/又は設定のために必要なデータ(オーディオファイルの一部であり、例えば、サンプリング周波数、ビットレート、バージョン等)をデコーダアプリに要求する(S211)。つまり、WMA STDデコーダは、デコーダアプリにSEEK及びREADの関数を実行するように要求すると共に、SEEK先のオーディオファイルのデータ位置や、READすべきオーディオファイルのデータサイズをデコーダアプリに通知する。これらのデータ位置やデータサイズ等の値は、WMA STDデコーダに予め設定されている。   On the other hand, if the WMA LSL decoder fails to initialize and / or set (NO in S209), the decoder application is the WMA which is the decoder not selected in S203 among the WMA LSL decoder and the WMA STD decoder. The STD decoder is activated (S210). The activated WMA STD decoder requests the decoder application for data (part of the audio file, for example, sampling frequency, bit rate, version, etc.) necessary for its initialization and / or setting (S211). . That is, the WMA STD decoder requests the decoder application to execute the SEEK and READ functions, and notifies the decoder application of the data position of the SEEK destination audio file and the data size of the audio file to be read. Values such as the data position and data size are preset in the WMA STD decoder.

デコーダアプリは、WMA STDデコーダからSEEK及びREADの要求を受信すると、要求されたデータをキューから読み出し、WMA STDデコーダに供給する(S212)。上記の通り、SEEKする位置及びREADするデータサイズが常に同じである場合には、図14に示すようなキューが使用され、最初に保存したデータ(例えばデータ1)から順番に読み出して、WMA STDデコーダに供給する。一方、SEEKする位置及びREADするデータサイズが随時変更される場合には、図15のようなキューが使用されており、WMA STDデコーダから受信したSEEKする位置及びREADするデータサイズに対応するデータを特定してキューから読み出し、WMA STDデコーダに供給する。   When receiving the SEEK and READ requests from the WMA STD decoder, the decoder application reads the requested data from the queue and supplies the data to the WMA STD decoder (S212). As described above, when the SEEK position and the data size to be read are always the same, a queue as shown in FIG. 14 is used, and the first saved data (for example, data 1) is read in order, and the WMA STD is read. Supply to the decoder. On the other hand, when the SEEK position and the READ data size are changed at any time, a queue as shown in FIG. 15 is used, and the data corresponding to the SEEK position and the READ data size received from the WMA STD decoder are used. It is identified and read from the queue and supplied to the WMA STD decoder.

WMA STDデコーダは、キューから読み出されたデータを使用して、自身の初期化及び/又は設定を実行する。そして、WMA STDデコーダは、選択されたオーディオファイルのフォーマットがWMA STDであれば、初期化及び/又は設定に成功し、選択されたオーディオファイルのフォーマットがWMA STDでなければ、初期化及び/又は設定に失敗する。WMA STDデコーダは、初期化及び/又は設定の結果(成功又は失敗)をデコーダアプリに通知する。   The WMA STD decoder uses its data read from the queue to perform its initialization and / or configuration. If the format of the selected audio file is WMA STD, the WMA STD decoder succeeds in initialization and / or setting, and if the format of the selected audio file is not WMA STD, initialization and / or Setting fails. The WMA STD decoder notifies the decoder application of the initialization and / or setting result (success or failure).

デコーダアプリは、WMA STDデコーダからの初期化及び/又は設定の結果の通知に基づいて、選択されたオーディオファイルのフォーマットがWMA STDであり、WMA STDデコーダが初期化及び/又は設定に成功したか否かを判断する(S213)。WMA STDデコーダが初期化及び/又は設定に成功した場合には(S213でYES)、デコーダアプリは、オーディオファイルの再生開始する位置(最初に読み出されるデータ位置)を、S211でWMA STDデコーダから受信したSEEKする位置及びREADするデータサイズに基づいて特定し、サーバ200に通知し、オーディオファイルの読み出し位置としてシークさせる、又は、USBメモリのオーディオファイルの読み出し位置としてシークする(S214)。これは、WMA STDデコーダを初期化及び/又は設定するためのデータをオーディオファイルから取得するのではなく、キューに保存されているデータを使用したために、オーディオファイルのポインタがシークされておらず0のままであり、再生開始するための位置に予めシークしておく必要があるからである。つまり、仮にキューからデータを読み出すのではなく、オーディオファイルからSEEK、READを実行して、初期化及び/又は設定に必要なデータを取得した場合に、オーディオファイルのポインタが位置する位置まで再生開始位置を進めておく。例えば、図12に示すようにSEEK及びREADが実行される場合、最後のSEEK位置である5396に、最後のREADデータサイズ256+252を加算した5904が、再生開始位置であるので、この値にポインタが移動される。   Based on the notification of the initialization and / or setting result from the WMA STD decoder, the decoder application determines whether the format of the selected audio file is WMA STD and the WMA STD decoder has been successfully initialized and / or set. It is determined whether or not (S213). If the WMA STD decoder has been successfully initialized and / or set (YES in S213), the decoder application receives from the WMA STD decoder in S211 the position at which the audio file starts to be played (data position to be read first). Based on the SEEK position and the data size to be read, the server 200 is notified, and seek is performed as the audio file read position, or seek is performed as the audio file read position of the USB memory (S214). This is because the data stored in the queue is used instead of obtaining the data for initializing and / or setting the WMA STD decoder from the audio file, and the pointer of the audio file is not sought. This is because it is necessary to seek in advance to a position for starting reproduction. In other words, instead of reading data from the queue, when SEEK and READ are executed from the audio file and data necessary for initialization and / or setting is acquired, playback starts to the position where the pointer of the audio file is located. Advance the position. For example, when SEEK and READ are executed as shown in FIG. 12, 5904 obtained by adding the last READ data size 256 + 252 to 5396 which is the last SEEK position is the reproduction start position. Moved.

その後、デコーダアプリは、キューに保存した初期化及び/又は設定用のデータを消去し(S215)、サーバ又はUSBメモリからオーディオファイルを取得する。WMA STDデコーダは、オーディオファイルを再生(デコード)開始する(S216)。一方、S213で、WMA STDデコーダが初期化及び/又は設定に失敗したと判断した場合には(S213でNO)、デコーダアプリは、エラー処理を実行して処理を終了する。   Thereafter, the decoder application deletes the initialization and / or setting data stored in the queue (S215), and acquires an audio file from the server or USB memory. The WMA STD decoder starts reproducing (decoding) the audio file (S216). On the other hand, when it is determined in S213 that the WMA STD decoder has failed in initialization and / or setting (NO in S213), the decoder application executes error processing and ends the processing.

以上の処理によって、2回目に起動されたデコーダを初期化及び/又は設定するためのデータは、サーバ又はUSBメモリから再取得されず、1回目に起動されたデコーダのために取得してキューに保存しておいたデータが使用される。その結果、不要な処理および通信を実行する必要が無く、再生開始までの時間を短縮できる。   With the above processing, the data for initializing and / or setting the decoder activated second time is not re-acquired from the server or the USB memory, but is obtained for the first activated decoder and queued. The saved data is used. As a result, unnecessary processing and communication need not be executed, and the time until the start of reproduction can be shortened.

以上、本発明の好ましい実施形態を説明したが、本発明はこれらの実施形態には限定されない。サーバやUSBメモリからオーディオファイルを取得して再生する代わりに、DVDやHDD等の記憶媒体から取得して再生してもよい。本発明は、上記のコンテンツ再生装置を動作させるためのコンピュータプログラムまたはそのコンピュータプログラムを記録した記録媒体という形態で提供されてもよい。   As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to these embodiment. Instead of acquiring and playing back an audio file from a server or USB memory, it may be acquired from a storage medium such as a DVD or HDD and played back. The present invention may be provided in the form of a computer program for operating the content reproduction apparatus or a recording medium on which the computer program is recorded.

本発明はコンテンツを再生するコンテンツ再生装置(例えば、AVアンプ、ネットワークオーディオクライアント等)に好適に適用され得る。   The present invention can be suitably applied to a content reproduction apparatus (for example, an AV amplifier, a network audio client, etc.) that reproduces content.

100 AVアンプ(コンテンツ再生装置)
200 サーバ
1 メインマイコン
2 RAM
3 ROM
4 ネットワークマイコン
5 ビデオマイコン
6 再生部
7 表示部
8 操作部
9 USB端子
100 AV amplifier (content playback device)
200 server 1 main microcomputer 2 RAM
3 ROM
4 Network microcomputer 5 Video microcomputer 6 Playback section 7 Display section 8 Operation section 9 USB terminal

Claims (5)

所定フォーマットであることを判別できるが、前記所定フォーマットの内の第1所定フォーマット、又は、第2所定フォーマットのいずれであるかを判別することができないコンテンツを再生するコンテンツ再生装置であって、
コンテンツの複数のフォーマットにそれぞれ対応する複数のデコーダと、
過去に再生されたコンテンツのフォーマットを記憶するフォーマット記憶手段と、
再生すべきコンテンツのフォーマットが前記所定フォーマットであるか否かを判断する手段と、
再生すべきコンテンツのフォーマットが前記所定フォーマットであると判断された場合、前記フォーマット記憶手段に記憶されている直近に再生されたコンテンツのフォーマットが、第1所定フォーマット、又は、第2所定フォーマットであるか否かを判断する手段と、
前記フォーマット記憶手段に記憶されている直近に再生されたコンテンツのフォーマットが、第1所定フォーマット、又は、第2所定フォーマットであると判断された場合に、前記フォーマット記憶手段に記憶されている直近に再生されたコンテンツのフォーマットに対応するデコーダを選択して起動させる選択手段とを備える、コンテンツ再生装置。
A content playback apparatus that plays back content that can be determined to be a predetermined format but cannot be determined to be a first predetermined format or a second predetermined format of the predetermined formats,
A plurality of decoders respectively corresponding to a plurality of formats of content;
Format storage means for storing the format of content reproduced in the past;
Means for determining whether the format of the content to be reproduced is the predetermined format;
When it is determined that the format of the content to be reproduced is the predetermined format, the format of the most recently reproduced content stored in the format storage means is the first predetermined format or the second predetermined format. Means for determining whether or not,
When it is determined that the format of the most recently reproduced content stored in the format storage unit is the first predetermined format or the second predetermined format, the latest stored in the format storage unit A content reproduction apparatus comprising: selection means for selecting and starting a decoder corresponding to the format of the reproduced content.
前記フォーマット記憶手段に記憶されている直近に再生されたコンテンツのフォーマットが、第1所定フォーマット、又は、第2所定フォーマットでない場合に、前記選択手段が、第1所定フォーマット、又は、第2所定フォーマットの内、前記フォーマット記憶手段に記憶されている数が多い方のフォーマットに対応するデコーダを選択して起動させる、請求項1に記載のコンテンツ再生装置。   When the format of the most recently reproduced content stored in the format storage unit is not the first predetermined format or the second predetermined format, the selection unit selects the first predetermined format or the second predetermined format. The content reproduction apparatus according to claim 1, wherein a decoder corresponding to a format having a larger number stored in said format storage means is selected and activated. 前記コンテンツ再生装置が、前記コンテンツ再生装置の外部に所定のインターフェース又はネットワークを介して接続される外部記録装置からコンテンツを取得して再生するものであり、
前記外部記憶装置毎に対応する前記フォーマット記憶手段と、
再生すべきコンテンツが記録されている前記外部記憶装置を特定する外部記憶装置特定手段と、
特定された前記外部記憶装置に対応する前記フォーマット記憶手段を、前記フォーマット記憶手段として選択する手段とをさらに備える、請求項1または2に記載のコンテンツ再生装置。
The content reproduction device acquires and reproduces content from an external recording device connected to the outside of the content reproduction device via a predetermined interface or network;
The format storage means corresponding to each external storage device;
External storage device specifying means for specifying the external storage device in which the content to be reproduced is recorded;
The content reproduction device according to claim 1, further comprising: a unit that selects the format storage unit corresponding to the specified external storage device as the format storage unit.
所定フォーマットであることを判別できるが、前記所定フォーマットの内の第1所定フォーマット、又は、第2所定フォーマットのいずれであるかを判別することができないコンテンツを再生するコンテンツ再生装置であって、
コンテンツの複数のフォーマットにそれぞれ対応する複数のデコーダと、
コンテンツの品質に関する情報に対応付けて、第1所定フォーマットの基準サイズと、第2所定フォーマットの基準サイズとを記憶するフォーマットサイズ記憶手段と、
再生すべきコンテンツのフォーマットが前記所定フォーマットであるか否かを判断する手段と、
再生すべきコンテンツのフォーマットが前記所定フォーマットであると判断された場合、再生すべきコンテンツの基準サイズを算出し、かつ、再生すべきコンテンツの品質に対応付けて前記フォーマットサイズ記憶手段に記憶されている第1所定フォーマットの基準サイズと第2所定フォーマットの基準サイズとの内、再生すべきコンテンツの基準サイズに近い方のフォーマットを特定する手段と、
特定されたフォーマットに対応するデコーダを選択して起動させる選択手段とを備える、コンテンツ再生装置。
A content playback apparatus that plays back content that can be determined to be a predetermined format but cannot be determined to be a first predetermined format or a second predetermined format of the predetermined formats,
A plurality of decoders respectively corresponding to a plurality of formats of content;
A format size storage means for storing a reference size of the first predetermined format and a reference size of the second predetermined format in association with information relating to the quality of the content;
Means for determining whether the format of the content to be reproduced is the predetermined format;
When it is determined that the format of the content to be reproduced is the predetermined format, a reference size of the content to be reproduced is calculated and stored in the format size storage means in association with the quality of the content to be reproduced. Means for specifying a format closer to the reference size of the content to be reproduced among the reference size of the first predetermined format and the reference size of the second predetermined format;
A content reproduction apparatus comprising: selection means for selecting and starting a decoder corresponding to the specified format.
請求項1〜4のいずれかに記載のコンテンツ再生装置の各手段をコンピュータに実行させる、コンテンツ再生プログラム。   A content reproduction program for causing a computer to execute each means of the content reproduction device according to claim 1.
JP2009133674A 2009-06-03 2009-06-03 Content reproduction device and program therefor Pending JP2010281918A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009133674A JP2010281918A (en) 2009-06-03 2009-06-03 Content reproduction device and program therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009133674A JP2010281918A (en) 2009-06-03 2009-06-03 Content reproduction device and program therefor

Publications (1)

Publication Number Publication Date
JP2010281918A true JP2010281918A (en) 2010-12-16

Family

ID=43538717

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009133674A Pending JP2010281918A (en) 2009-06-03 2009-06-03 Content reproduction device and program therefor

Country Status (1)

Country Link
JP (1) JP2010281918A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105139859A (en) * 2015-08-18 2015-12-09 杭州士兰微电子股份有限公司 Audio data decoding method, audio data decoding device and SOC using audio data decoding method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105139859A (en) * 2015-08-18 2015-12-09 杭州士兰微电子股份有限公司 Audio data decoding method, audio data decoding device and SOC using audio data decoding method

Similar Documents

Publication Publication Date Title
US8977107B2 (en) Storage device and method for resuming playback of content
JP5161342B2 (en) Mechanism and method for managing a data storage device
JP2012169005A (en) Audio apparatus, video apparatus and computer program
WO2008068940A1 (en) Video and audio reproducing device
JP5901843B2 (en) Playback apparatus, control method, and program
JP2010281918A (en) Content reproduction device and program therefor
US20070274691A1 (en) Data reproducing apparatus, data presentation method and data presentation system
JP2009017407A (en) Content display apparatus
JP4191221B2 (en) Recording / reproducing apparatus, simultaneous recording / reproducing control method, and simultaneous recording / reproducing control program
JP2010281919A (en) Content reproduction device and program therefor
JP2007066370A (en) Play-back apparatus and play-back method
JP2007067949A (en) Image reproducing system image reproducing apparatus, imaging device and information processor
US20090046997A1 (en) Apparatus and method of recording content
JP4562544B2 (en) Storage device and storage method
JP4100307B2 (en) Program, recording medium and playback apparatus
JP2006195632A (en) Record reproduction device, management information control method thereof, and program
US20140123201A1 (en) Apparatus for receiving broadcast and method of managing file used for time shift
JP5976024B2 (en) Playback apparatus, control method, and control program
JP2006174065A (en) Signal output device and signal output method
JP4557088B2 (en) Program, recording medium, playback apparatus, and playback method
JP5028705B2 (en) Content recording system, content recording apparatus and program thereof
WO2018229846A1 (en) Video/audio playback device and video/audio playback method
JP2005092473A (en) Program, recording medium and reproduction apparatus
JP4379519B2 (en) Program, recording medium, playback apparatus, and playback method
JP5274220B2 (en) Information processing apparatus, reproduction control method, and reproduction control program

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20101227