Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6119783B2 - Music playback device and music playback program - Google Patents
[go: Go Back, main page]

JP6119783B2 - Music playback device and music playback program - Google Patents

Music playback device and music playback program Download PDF

Info

Publication number
JP6119783B2
JP6119783B2 JP2015053242A JP2015053242A JP6119783B2 JP 6119783 B2 JP6119783 B2 JP 6119783B2 JP 2015053242 A JP2015053242 A JP 2015053242A JP 2015053242 A JP2015053242 A JP 2015053242A JP 6119783 B2 JP6119783 B2 JP 6119783B2
Authority
JP
Japan
Prior art keywords
volume
volume value
value
converter
control unit
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.)
Expired - Fee Related
Application number
JP2015053242A
Other languages
Japanese (ja)
Other versions
JP2016174276A (en
Inventor
大亮 篠原
大亮 篠原
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 JP2015053242A priority Critical patent/JP6119783B2/en
Publication of JP2016174276A publication Critical patent/JP2016174276A/en
Application granted granted Critical
Publication of JP6119783B2 publication Critical patent/JP6119783B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Description

本発明は、音楽再生装置、及び、音楽再生プログラムに関する。   The present invention relates to a music playback device and a music playback program.

スマートフォンやタブレットPC等を音楽再生装置として機能させる音楽再生プログラムがある。音楽再生プログラムは、スマートフォンのスピーカーから音楽を再生させる他、スマートフォンから外部のUSB DAC(D/A変換装置)にデジタルオーディオデータを出力させる。スマートフォンとUSB DACとは、例えば、USBオーディオクラスに従った通信を行う(例えば、特許文献1参照。)。   There is a music playback program that allows a smartphone, tablet PC, or the like to function as a music playback device. The music reproduction program reproduces music from the speaker of the smartphone and outputs digital audio data from the smartphone to an external USB DAC (D / A converter). For example, the smartphone and the USB DAC perform communication according to the USB audio class (see, for example, Patent Document 1).

ボリュームキーを有しないUSB DACをスマートフォンに接続した場合、スマートフォンからボリューム調整を行う必要がある。一般的には、音楽再生プログラムにより、デジタルオーディオデータのゲインを調整することで、ボリューム調整を行う。しかしながら、この場合、スマートフォンからUSB DACにビットパーフェクトでデジタルオーディオデータを出力することができない。他には、USBオーディオクラスに従い、スマートフォンが、USB DACのボリュームを調整する。図9は、従来のスマートフォンの表示部に表示される再生画面を示す図である。図9においては、再生画面の下部に、スライドバーによりUSB DACのボリューム(以下、「UIボリューム」という。)が表示されている。スマートフォンは、UIボリュームの操作を受け付けて、USB DACのボリュームを調整する。   When a USB DAC that does not have a volume key is connected to a smartphone, it is necessary to adjust the volume from the smartphone. Generally, volume adjustment is performed by adjusting the gain of digital audio data using a music playback program. However, in this case, digital audio data cannot be output from the smartphone to the USB DAC in a bit perfect manner. Otherwise, the smartphone adjusts the volume of the USB DAC according to the USB audio class. FIG. 9 is a diagram showing a playback screen displayed on the display unit of a conventional smartphone. In FIG. 9, a USB DAC volume (hereinafter referred to as “UI volume”) is displayed at the bottom of the playback screen by a slide bar. The smartphone accepts the UI volume operation and adjusts the USB DAC volume.

特開2008−140434号公報JP 2008-140434 A

スマートフォンには、スマートフォンのシステムボリュームを調整するためのボリュームキーが設けられている。このボリュームキーをUSB DACのボリューム調整に用いることが考えられる。しかしながら、システムボリュームはステップ数が限られているため、ボリュームキーをUSB DACのボリューム調整に用いると、USB DACのボリューム変化が粗くなるという問題がある。また、UIボリュームによれば、ユーザーは、ステップ数を細かく設定することができるが、再生画面上でしか設定できないという問題がある。   The smartphone is provided with a volume key for adjusting the system volume of the smartphone. It is conceivable to use this volume key for USB DAC volume adjustment. However, since the system volume has a limited number of steps, there is a problem that when the volume key is used for USB DAC volume adjustment, the volume change of the USB DAC becomes rough. Also, according to the UI volume, the user can set the number of steps finely, but there is a problem that it can only be set on the playback screen.

本発明の目的は、音楽再生装置からD/A変換装置のボリュームを容易に調整可能とすることである。   An object of the present invention is to make it possible to easily adjust the volume of a D / A converter from a music playback device.

第1の発明の音楽再生装置は、自装置のボリュームを調整するための第1操作キーと、制御部と、を備え、前記制御部は、デジタルオーディオデータをD/A変換装置に出力し、前記デジタルオーディオデータを前記D/A変換装置に出力しているときに、前記第1操作キーの操作があった場合、変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値と、現在の前記D/A変換装置のボリューム値と、を比較し、変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値と、現在の前記D/A変換装置のボリューム値と、の差の絶対値が、所定の閾値よりも大きい場合、現在の前記D/A変換装置のボリューム値近傍の値に対応する自装置のボリューム値から変更後の自装置のボリューム値を算出し、算出した変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値に、前記D/A変換装置のボリュームを設定することを特徴とする。   A music playback device according to a first aspect of the present invention includes a first operation key for adjusting the volume of the device itself, and a control unit, and the control unit outputs digital audio data to a D / A conversion device, When the first operation key is operated while the digital audio data is being output to the D / A converter, the volume of the D / A converter corresponding to the volume value of the own device after the change And the current volume value of the D / A converter, the volume value of the D / A converter corresponding to the changed volume value of the own apparatus, and the current D / A converter If the absolute value of the difference between the current volume value and the current volume value is greater than a predetermined threshold value, the current volume value of the local apparatus corresponding to the value in the vicinity of the current volume value of the D / A conversion apparatus is changed. Calculate value , The volume value of the D / A converter corresponding to the volume value of the self apparatus after the calculated change, and sets the volume of the D / A converter.

例えば、音楽再生装置のボリュームのステップ数が0〜10であり、D/A変換装置のボリュームのステップ数が0〜100であったとする。また、現在の音楽再生装置のボリューム値が8であり、D/A変換装置のボリューム値が50であったとする。従来の音楽再生装置は、音楽再生装置の操作キーにより、音楽再生装置のボリューム値が8から9に変化した場合、D/A変換装置のボリュームを50から90に変更してしまう。これは、音楽再生装置のボリュームと、D/A変換装置のボリュームと、が同期していないからである。   For example, it is assumed that the number of steps of the volume of the music playback device is 0 to 10, and the number of steps of the volume of the D / A converter is 0 to 100. Also assume that the volume value of the current music playback device is 8, and the volume value of the D / A conversion device is 50. When the volume value of the music playback device is changed from 8 to 9 by the operation key of the music playback device, the conventional music playback device changes the volume of the D / A conversion device from 50 to 90. This is because the volume of the music playback device and the volume of the D / A conversion device are not synchronized.

本発明では、制御部は、変更後の自装置のボリューム値に対応するD/A変換装置のボリューム値と、現在のD/A変換装置のボリューム値と、の差の絶対値が、所定の閾値(例えば、20)よりも大きい場合、現在のD/A変換装置のボリューム値近傍の値に対応する自装置のボリューム値から変更後の自装置のボリューム値を算出する。上記のように、音楽再生装置のボリュームのステップ数が0〜10であり、D/A変換装置のステップ数が0〜100であったとする。この場合、自装置のボリューム値に対応するD/A変換装置のボリューム値は、自装置のボリューム値の10倍の値である。例えば、自装置のボリューム値が9であれば、対応するD/A変換装置のボリューム値は、90である。ここで、変更後の自装置のボリューム値9に対応するD/A変換装置のボリューム値が90であり、現在のD/A変換装置のボリューム値が52である場合、差の絶対値が38であるため、制御部は、現在のD/A変換装置のボリューム値52近傍の値50に対応する自装置のボリューム値5から変更後の自装置のボリューム値として、6(=5+1)を算出する。   In the present invention, the control unit determines whether the absolute value of the difference between the volume value of the D / A conversion device corresponding to the volume value of the own device after the change and the volume value of the current D / A conversion device is a predetermined value. When the value is larger than a threshold value (for example, 20), the volume value of the own device after the change is calculated from the volume value of the own device corresponding to the value near the volume value of the current D / A conversion device. As described above, it is assumed that the number of steps of the volume of the music playback device is 0 to 10, and the number of steps of the D / A converter is 0 to 100. In this case, the volume value of the D / A conversion device corresponding to the volume value of the own device is 10 times the volume value of the own device. For example, if the volume value of the own device is 9, the volume value of the corresponding D / A conversion device is 90. Here, when the volume value of the D / A conversion apparatus corresponding to the volume value 9 of the own apparatus after the change is 90 and the volume value of the current D / A conversion apparatus is 52, the absolute value of the difference is 38. Therefore, the control unit calculates 6 (= 5 + 1) as the volume value of the own device after the change from the volume value 5 of the own device corresponding to the value 50 in the vicinity of the volume value 52 of the current D / A conversion device. To do.

そして、制御部は、算出した変更後の自装置のボリューム値6に対応するD/A変換装置のボリューム値60に、D/A変換装置のボリュームを設定する。このように、本発明では、音楽再生装置のボリュームとD/A変換装置のボリュームとの同期がとれているため、第1操作キーの操作により、D/A変換装置のボリュームが急激に変化するということがない。従って、本発明によれば、ユーザーは、第1操作キーを用いて、音楽再生装置からD/A変換装置のボリュームを容易に調整することができる。   Then, the control unit sets the volume of the D / A conversion device to the volume value 60 of the D / A conversion device corresponding to the calculated volume value 6 of the own device. As described above, in the present invention, since the volume of the music playback device and the volume of the D / A converter are synchronized, the volume of the D / A converter changes rapidly by the operation of the first operation key. There is no such thing. Therefore, according to the present invention, the user can easily adjust the volume of the D / A conversion device from the music playback device using the first operation key.

第2の発明の音楽再生装置は、第1の発明の音楽再生装置において、前記制御部は、変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値と、現在の前記D/A変換装置のボリューム値と、の差の絶対値が、前記所定の閾値以下である場合、変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値に、前記D/A変換装置のボリュームを設定することを特徴とする。   The music playback device of the second invention is the music playback device of the first invention, wherein the control unit is configured to change the volume value of the D / A conversion device corresponding to the volume value of the own device after the change, When the absolute value of the difference between the volume value of the D / A conversion device is equal to or smaller than the predetermined threshold value, the D / A conversion device volume value corresponding to the changed volume value of the own device is changed to the D value. The volume of the / A converter is set.

本発明では、制御部は、変更後の自装置のボリューム値に対応するD/A変換装置のボリューム値と、現在の前記D/A変換装置のボリューム値と、の差の絶対値が、所定の閾値以下である場合、変更後の自装置のボリューム値に対応するD/A変換装置のボリューム値に、D/A変換装置のボリュームを設定する。ここで、変更後の自装置のボリューム値6に対応するD/A変換装置のボリューム値が60であり、D/A変換装置の現在のボリューム52である場合、差の絶対値が8であるため、制御部は、変更後の自装置のボリューム値6に対応するD/A変換装置のボリューム値60に、D/A変換装置のボリュームを設定する。   In the present invention, the control unit determines that the absolute value of the difference between the volume value of the D / A converter corresponding to the volume value of the own apparatus after the change and the current volume value of the D / A converter is predetermined. If the value is equal to or less than the threshold value, the volume of the D / A converter is set to the volume value of the D / A converter corresponding to the volume value of the own apparatus after the change. Here, when the volume value of the D / A conversion device corresponding to the volume value 6 of the own device after the change is 60 and the current volume 52 of the D / A conversion device is, the absolute value of the difference is 8. Therefore, the control unit sets the volume of the D / A conversion device to the volume value 60 of the D / A conversion device corresponding to the volume value 6 of the own device after the change.

第3の発明の音楽再生装置は、第1又は第2の発明の音楽再生装置において、前記制御部は、前記デジタルオーディオデータを前記D/A変換装置に出力していないときに、前記第1操作キーの操作があった場合、自装置のボリューム調整を受け付け、受け付けたボリューム値に自装置のボリュームを設定することを特徴とする。   A music playback device of a third invention is the music playback device of the first or second invention, wherein the control unit does not output the digital audio data to the D / A converter when the first When the operation key is operated, the volume adjustment of the own apparatus is accepted, and the volume of the own apparatus is set to the received volume value.

第4の発明の音楽再生装置は、第1〜第3の発明のいずれかの音楽再生装置において、前記D/A変換装置の音量を調整するための第2操作キーを表示するための表示部をさらに備え、前記制御部は、前記デジタルオーディオデータを前記D/A変換装置に出力しているときに、前記第2操作キーを前記表示部に表示し、前記第2操作キーの操作があった場合、前記D/A変換装置のボリューム調整を受け付け、受け付けたボリューム値に前記D/A変換装置のボリュームを設定することを特徴とする。   A music playback device according to a fourth aspect of the present invention is the music playback device according to any one of the first to third aspects of the invention, wherein the display unit displays a second operation key for adjusting the volume of the D / A converter. The control unit displays the second operation key on the display unit when the digital audio data is being output to the D / A conversion device, and the second operation key is operated. In this case, volume adjustment of the D / A conversion device is received, and the volume of the D / A conversion device is set to the received volume value.

第5の発明の音楽再生装置は、第1〜第4の発明のいずれかの音楽再生装置において、現在の前記D/A変換装置のボリューム値近傍の値は、現在の前記D/A変換装置のボリューム値を四捨五入した値であることを特徴とする。   A music playback device according to a fifth aspect of the present invention is the music playback device according to any one of the first to fourth inventions, wherein a value in the vicinity of the current volume value of the D / A conversion device is the current D / A conversion device. The volume value is rounded off.

第6の発明の音楽再生プログラムは、自装置のボリュームを調整するための第1操作キーと、制御部と、を備えるコンピュータの制御部に、デジタルオーディオデータのD/A変換装置への出力、前記デジタルオーディオデータを前記D/A変換装置に出力しているときに、前記第1操作キーの操作があった場合、変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値と、現在の前記D/A変換装置のボリューム値と、の比較、変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値と、現在の前記D/A変換装置のボリューム値と、の差の絶対値が、所定の閾値よりも大きい場合、現在の前記D/A変換装置のボリューム値近傍の値に対応する自装置のボリューム値から変更後の自装置のボリューム値の算出、算出した変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値に、前記D/A変換装置のボリュームの設定、を実行させる。   According to a sixth aspect of the present invention, there is provided a music playback program for outputting a digital audio data to a D / A conversion device to a control unit of a computer including a first operation key for adjusting the volume of the own device and a control unit. When the first operation key is operated while the digital audio data is being output to the D / A converter, the volume of the D / A converter corresponding to the volume value of the own device after the change And the current volume value of the D / A conversion apparatus, the volume value of the D / A conversion apparatus corresponding to the volume value of the own apparatus after the change, and the current D / A conversion apparatus When the absolute value of the difference from the volume value is larger than a predetermined threshold value, the volume value of the own device after the change from the volume value of the own device corresponding to the current value in the vicinity of the volume value of the D / A conversion device is changed. Calculation of the over-time value, the volume value of the D / A converter corresponding to the volume value of the self apparatus after the calculated modified to execute the setting, the volume of the D / A converter.

本発明によれば、ユーザーは、第1操作キーを用いて、音楽再生装置からD/A変換装置のボリュームを容易に調整することができる。   According to the present invention, the user can easily adjust the volume of the D / A conversion device from the music playback device using the first operation key.

本発明の実施形態に係るスマートフォン等の構成を示すブロック図である。It is a block diagram showing composition of a smart phone etc. concerning an embodiment of the present invention. スマートフォンに表示される再生画面等を示す図である。It is a figure which shows the reproduction | regeneration screen etc. which are displayed on a smart phone. スマートフォンに表示される再生画面等を示す図である。It is a figure which shows the reproduction | regeneration screen etc. which are displayed on a smart phone. スマートフォンに表示される再生画面等を示す図である。It is a figure which shows the reproduction | regeneration screen etc. which are displayed on a smart phone. スマートフォンに表示される再生画面等を示す図である。It is a figure which shows the reproduction | regeneration screen etc. which are displayed on a smart phone. システムボリュームが変更される例を示す図である。It is a figure which shows the example by which a system volume is changed. ボリュームキーがボリュームアップ操作された場合にスマートフォンで実行される処理動作を示すフローチャートである。It is a flowchart which shows the processing operation performed with a smart phone when volume up operation is performed for a volume key. ボリュームキーがボリュームダウン操作された場合にスマートフォンで実行される処理動作を示すフローチャートである。It is a flowchart which shows the processing operation performed with a smart phone when volume down operation is performed for a volume key. 従来のスマートフォンの表示部に表示される再生画面を示す図である。It is a figure which shows the reproduction | regeneration screen displayed on the display part of the conventional smart phone.

以下、本発明の実施形態について説明する。図1は、本発明の実施形態に係るスマートフォン等の構成を示すブロック図である。スマートフォン1は、USB DAC2(D/A変換装置)に接続されている。スマートフォン1は、記憶部12に記憶されている音楽再生プログラムPが実行されることにより、デジタルオーディオデータをUSB DAC2に出力する音楽再生装置として機能する。USB DAC2は、スマートフォン1から出力されたデジタルオーディオデータをアナログオーディオデータにD/A変換する。そして、USB DAC2は、D/A変換したアナログオーディオデータを増幅し、ヘッドホン3に出力する。ヘッドホン3は、USB DAC2から出力されたアナログオーディオデータに基づいて、音楽を含む音声を外部に出力する。   Hereinafter, embodiments of the present invention will be described. FIG. 1 is a block diagram illustrating a configuration of a smartphone or the like according to an embodiment of the present invention. The smartphone 1 is connected to a USB DAC 2 (D / A conversion device). The smartphone 1 functions as a music playback device that outputs digital audio data to the USB DAC 2 by executing the music playback program P stored in the storage unit 12. The USB DAC 2 D / A converts the digital audio data output from the smartphone 1 into analog audio data. The USB DAC 2 amplifies the D / A converted analog audio data and outputs the amplified analog audio data to the headphones 3. The headphones 3 output sound including music to the outside based on the analog audio data output from the USB DAC 2.

(スマートフォン1)
スマートフォン1は、制御部11、記憶部12、表示部13、操作部14、スピーカー15、ネットワーク通信部(以下、「NW通信部」という。)16、ブルートゥース(登録商標)通信部(以下、「BT通信部」という。)17、コネクタ18、USBホストコントローラ19等を備えている。スマートフォン1は、例えば、OS(Operating System)プログラムとして、Andoroid(登録商標)を搭載したスマートフォンである。
(Smartphone 1)
The smartphone 1 includes a control unit 11, a storage unit 12, a display unit 13, an operation unit 14, a speaker 15, a network communication unit (hereinafter referred to as “NW communication unit”) 16, a Bluetooth (registered trademark) communication unit (hereinafter referred to as “ BT communication section) 17, connector 18, USB host controller 19, and the like. The smartphone 1 is, for example, a smartphone equipped with Android (registered trademark) as an OS (Operating System) program.

制御部11は、制御プログラム、OSプログラム、音楽再生プログラムPを含むアプリケーションプログラムに従って、スマートフォン1を構成する各部を制御する。また、制御部11は、音楽再生プログラムPに従って、デジタルオーディオデータをUSB DAC2に出力する。制御部11が音楽再生プログラムPに従って実行する処理については、後述する。   The control part 11 controls each part which comprises the smart phone 1 according to the application program containing a control program, OS program, and the music reproduction program P. FIG. In addition, the control unit 11 outputs digital audio data to the USB DAC 2 in accordance with the music playback program P. Processing executed by the control unit 11 in accordance with the music playback program P will be described later.

記憶部12は、制御部11の主メモリとして機能するRAM(Random Access Memory)、制御プログラムを記憶するROM(Read Only Memory)、OSプログラムや音楽再生プログラムPを含むアプリケーションプログラム等のプログラム、デジタルオーディオデータ等の各種データを記憶するフラッシュメモリから構成されている。なお、記憶部12は、例示する構成に限られず、HDD(Hard Disk Drive)等を含んでいてもよい。また、音楽再生プログラムPは、工場出荷時に記憶部12に記憶されていてもよいし、後述するNW通信部16を介して、図示しないサーバーからダウンロードされ、記憶部12に記憶されていてもよい。   The storage unit 12 includes a RAM (Random Access Memory) that functions as a main memory of the control unit 11, a ROM (Read Only Memory) that stores a control program, a program such as an application program including an OS program and a music playback program P, digital audio It consists of a flash memory that stores various data such as data. The storage unit 12 is not limited to the configuration illustrated, and may include an HDD (Hard Disk Drive) or the like. The music playback program P may be stored in the storage unit 12 at the time of shipment from the factory, or may be downloaded from a server (not shown) via the NW communication unit 16 described later and stored in the storage unit 12. .

表示部13は、種々の画像(静止画像、動画像を含む)を表示するものであり、液晶パネルにより構成されている。操作部14は、各種設定を行うための操作キー、及び、表示部13と連動したタッチパネルを備えている。ユーザーは、操作部14を介して、電話番号やメールアドレス等の各種の文字入力、通信設定などを行うことが可能である。また、操作部14は、スマートフォン1のボリュームを調整するためのボリュームキー141(第1操作キー)を有する。スピーカー15は、制御部11から出力されるオーディオデータに基づいて、音楽等の種々の音声を出力する。NW通信部16は、図示しない携帯電話網および携帯基地局を介してインターネットに接続可能なように構成されている。スマートフォン1は、NW通信部16を介して、他の端末との通話、通信等を行うことが可能である。BT通信部17は、ブルートゥース規格に基づいて、ブルートゥース規格に対応した図示しない周辺装置と無線通信を行う。   The display unit 13 displays various images (including still images and moving images), and is configured by a liquid crystal panel. The operation unit 14 includes operation keys for performing various settings and a touch panel linked to the display unit 13. The user can input various characters such as a telephone number and an e-mail address, set communication, and the like via the operation unit 14. The operation unit 14 has a volume key 141 (first operation key) for adjusting the volume of the smartphone 1. The speaker 15 outputs various sounds such as music based on the audio data output from the control unit 11. The NW communication unit 16 is configured to be connected to the Internet via a mobile phone network and a mobile base station (not shown). The smartphone 1 can perform calls, communications, and the like with other terminals via the NW communication unit 16. The BT communication unit 17 performs wireless communication with a peripheral device (not shown) corresponding to the Bluetooth standard based on the Bluetooth standard.

コネクタ18は、スマートフォン1を外部の機器と接続するためのものである。コネクタ18は、例えば、USBのマイクロBタイプのメス型コネクタある。本実施形態では、スマートフォン1とUSB DAC2とは、コネクタ18を介して、USBケーブル4により接続される。USBホストコントローラ19は、USB規格に対応した通信をUSBデバイス(本実施形態では、USB DAC2)と行うためのコントローラである。USBホストコントローラ19により、スマートフォン1は、USBホストとして機能する。   The connector 18 is for connecting the smartphone 1 to an external device. The connector 18 is, for example, a USB micro B type female connector. In the present embodiment, the smartphone 1 and the USB DAC 2 are connected by the USB cable 4 via the connector 18. The USB host controller 19 is a controller for performing communication corresponding to the USB standard with a USB device (USB DAC 2 in this embodiment). The smartphone 1 functions as a USB host by the USB host controller 19.

(USB DAC2)
USB DAC2は、制御部21、記憶部22、表示部23、操作部24、D/Aコンバータ25、増幅部26、コネクタ27、USBデバイスコントローラ28、ヘッドホン端子29等を備えている。制御部21は、制御プログラムに従って、USB DAC2を構成する各部を制御する。
(USB DAC2)
The USB DAC 2 includes a control unit 21, a storage unit 22, a display unit 23, an operation unit 24, a D / A converter 25, an amplification unit 26, a connector 27, a USB device controller 28, a headphone terminal 29, and the like. The control part 21 controls each part which comprises USB DAC2 according to a control program.

記憶部22は、制御部21の主メモリとして機能するRAM、制御プログラムを記憶するROMから構成されている。なお、記憶部22は、例示する構成に限られず、フラッシュメモリ等を備えていてもよい。表示部23は、電源のオンオフを表示するLEDランプ等である。操作部24は、ユーザー操作を受け付けるためのものであり、USB DAC2の筐体に設けられた操作ボタン等である。D/Aコンバータ25は、スマートフォン1から出力されるデジタルオーディオデータをアナログオーディオデータにD/A変換する。増幅部26は、D/Aコンバータ25がD/A変換したアナログオーディオデータを増幅し、ヘッドホン端子29に出力する。   The storage unit 22 includes a RAM that functions as a main memory of the control unit 21 and a ROM that stores a control program. The storage unit 22 is not limited to the configuration illustrated, and may include a flash memory or the like. The display unit 23 is an LED lamp or the like that displays power on / off. The operation unit 24 is for accepting a user operation, and is an operation button or the like provided on the housing of the USB DAC 2. The D / A converter 25 D / A converts digital audio data output from the smartphone 1 into analog audio data. The amplifying unit 26 amplifies the analog audio data D / A converted by the D / A converter 25 and outputs the amplified analog audio data to the headphone terminal 29.

コネクタ27は、USB DAC2を外部の機器と接続するためのものである。コネクタ27は、例えば、USBのAタイプのメス型コネクタである。スマートフォン1のコネクタ18と、USB DAC2のコネクタ27と、がUSBケーブル4で接続されることにより、スマートフォン1とUSB DAC2とが接続される。USBデバイスコントローラ28は、USB規格に対応した通信をUSBホスト(本実施形態では、スマートフォン1)と行うためのコントローラである。USBデバイスコントローラ28により、USB DAC2は、USBデバイスとして機能する。本実施形態では、スマートフォン1とUSB DAC2とは、USBオーディオクラスに対応した通信を行う。ヘッドホン端子29には、ヘッドホン3が接続され、ヘッドホン3から、アナログオーディオデータに基づいた、音楽等の音声が出力される。   The connector 27 is for connecting the USB DAC 2 to an external device. The connector 27 is, for example, a USB A type female connector. By connecting the connector 18 of the smartphone 1 and the connector 27 of the USB DAC 2 with the USB cable 4, the smartphone 1 and the USB DAC 2 are connected. The USB device controller 28 is a controller for performing communication corresponding to the USB standard with a USB host (the smartphone 1 in this embodiment). With the USB device controller 28, the USB DAC 2 functions as a USB device. In the present embodiment, the smartphone 1 and the USB DAC 2 perform communication corresponding to the USB audio class. A headphone 3 is connected to the headphone terminal 29, and sound such as music is output from the headphone 3 based on analog audio data.

スマートフォン1からUSB DAC2へは、音楽再生プログラムPが起動され、ユーザーの操作部14の操作により選択されたデジタルオーディオデータが出力される。以下、制御部11が音楽再生プログラムPに従って実行する、ボリューム調整処理について説明する。図2は、スマートフォン1に表示される再生画面等を示す図である。スマートフォン1のシステムボリュームのステップ数は、0〜10である。また、USB DAC2のボリュームのステップ数は、0〜100である。従って、スマートフォン1には、ユーザーインターフェースボリューム(以下、「UIボリューム」という。)131として、USB DAC2のボリューム0〜100の値が表示される。図2においては、再生画面の下部に、スライドバーによりUIボリューム131(第2操作キー)が表示されている。   The music playback program P is activated from the smartphone 1 to the USB DAC 2, and digital audio data selected by the operation of the operation unit 14 by the user is output. Hereinafter, a volume adjustment process executed by the control unit 11 according to the music playback program P will be described. FIG. 2 is a diagram illustrating a playback screen displayed on the smartphone 1. The number of steps of the system volume of the smartphone 1 is 0-10. The number of steps of the USB DAC2 volume is 0-100. Accordingly, the value of the volume 0 to 100 of the USB DAC 2 is displayed on the smartphone 1 as the user interface volume (hereinafter referred to as “UI volume”) 131. In FIG. 2, a UI volume 131 (second operation key) is displayed at the bottom of the playback screen by a slide bar.

(ボリューム調整処理)
制御部11は、デジタルオーディオデータをUSB DAC2に出力しているとき、すなわち、音楽再生プログラムPを起動しているときに、ボリュームキー141の操作があった場合、変更後のスマートフォン1のシステムボリューム値に対応するUSB DAC2のボリューム値(以下、「USB DAC2のボリューム値」を「UIボリューム値」ともいう。)と、現在のUIボリューム値と、を比較する。上述のように、スマートフォン1のシステムボリュームのステップ数が0〜10であり、USB DAC2のボリュームのステップ数が0〜100である場合、スマートフォン1のシステムボリューム値に対応するUIボリューム値は、スマートフォン1のシステムボリューム値の10倍の値である。例えば、スマートフォン1のシステムボリューム値が9であれば、対応するUIボリューム値は、90である。
(Volume adjustment processing)
When the digital audio data is output to the USB DAC 2, that is, when the music playback program P is activated, the control unit 11 operates the volume key 141 and changes the system volume of the smartphone 1 after the change. The USB DAC2 volume value corresponding to the value (hereinafter, “USB DAC2 volume value” is also referred to as “UI volume value”) is compared with the current UI volume value. As described above, when the number of steps of the system volume of the smartphone 1 is 0 to 10 and the number of steps of the volume of the USB DAC 2 is 0 to 100, the UI volume value corresponding to the system volume value of the smartphone 1 is the smartphone. The value is 10 times the system volume value of 1. For example, if the system volume value of the smartphone 1 is 9, the corresponding UI volume value is 90.

制御部11は、変更後のスマートフォン1のシステムボリューム値に対応するUIボリューム値と、現在のUIボリューム値と、の差の絶対値が、所定の閾値(例えば、20)よりも大きい場合、現在のUIボリューム値近傍の値に対応するスマートフォン1のシステムボリューム値から変更後のスマートフォン1のシステムボリューム値を算出する。ここで、変更後のスマートフォン1のボリューム値9に対応するUIボリューム値が90であり、現在のUIボリューム値が52である場合、絶対値が38であるため、制御部11は、現在のUIボリューム値52近傍の値50に対応するスマートフォン1のボリューム値5から変更後のスマートフォン1のボリューム値として、図3の(1)に示すように、6(=5+1)を算出する。そして、制御部11は、図3の(2)に示すように、算出した変更後のスマートフォン1のシステムボリューム値6に対応するUIボリューム値60に、USB DAC2のボリュームを設定する。従って、UIボリューム131も60に変更される。上記した現在のUIボリューム値近傍の値は、具体的には、現在のUIボリューム値を四捨五入した値である。   When the absolute value of the difference between the UI volume value corresponding to the system volume value of the smartphone 1 after the change and the current UI volume value is greater than a predetermined threshold (for example, 20), the control unit 11 The system volume value of the smartphone 1 after the change is calculated from the system volume value of the smartphone 1 corresponding to a value in the vicinity of the UI volume value. Here, when the UI volume value corresponding to the volume value 9 of the smartphone 1 after the change is 90 and the current UI volume value is 52, the absolute value is 38. As shown in (1) of FIG. 3, 6 (= 5 + 1) is calculated from the volume value 5 of the smartphone 1 corresponding to the value 50 near the volume value 52, as shown in (1) of FIG. Then, as illustrated in (2) of FIG. 3, the control unit 11 sets the volume of the USB DAC 2 to the UI volume value 60 corresponding to the calculated system volume value 6 of the smartphone 1 after the change. Accordingly, the UI volume 131 is also changed to 60. The value in the vicinity of the current UI volume value is specifically a value obtained by rounding off the current UI volume value.

また、制御部11は、変更後のスマートフォン1のシステムボリューム値に対応するUIボリューム値と、現在のUIボリューム値と、の差の絶対値が、所定の閾値(例えば、20)以下である場合、変更後のスマートフォン1のシステムボリューム値に対応するUIボリューム値に、USB DAC2のボリュームを設定する。ここで、変更後のスマートフォン1のボリューム値6に対応するUIボリューム値が60であり、現在のUIボリューム値が52である場合、絶対値が8であるため、制御部11は、図4の(1)に示すように、変更後のスマートフォン1のボリューム値6に対応するUIボリューム値60に、USB DAC2のボリュームを設定する。従って、UIボリューム131も60に変更される。   Further, the control unit 11 is configured such that the absolute value of the difference between the UI volume value corresponding to the system volume value of the smartphone 1 after the change and the current UI volume value is equal to or less than a predetermined threshold (for example, 20). The volume of the USB DAC 2 is set to the UI volume value corresponding to the system volume value of the smartphone 1 after the change. Here, if the UI volume value corresponding to the volume value 6 of the smartphone 1 after the change is 60 and the current UI volume value is 52, the absolute value is 8, so the control unit 11 As shown in (1), the volume of the USB DAC 2 is set to the UI volume value 60 corresponding to the volume value 6 of the smartphone 1 after the change. Accordingly, the UI volume 131 is also changed to 60.

また、制御部11は、図5に示すように、デジタルオーディオデータをUSB DAC2に出力しているとき、すなわち、音楽再生プログラムPを起動しているときに、UIボリューム131を表示部13に表示する。制御部11は、UIボリューム131の操作があった場合、USB DAC2のボリューム調整を受け付ける。例えば、制御部11は、UIボリューム131が操作されることにより、UIボリューム値として、60を受け付ける。制御部11は、受け付けたUIボリューム値にUSB DAC2のボリュームを設定する。例えば、制御部11は、図5の(1)に示すように、受け付けたUIボリューム値60にUSB DAC2のボリュームを設定する。このとき、スマートフォン1のシステムボリュームは変更されない。   Further, as shown in FIG. 5, the control unit 11 displays the UI volume 131 on the display unit 13 when outputting the digital audio data to the USB DAC 2, that is, when starting the music playback program P. To do. When the UI volume 131 is operated, the control unit 11 accepts the volume adjustment of the USB DAC 2. For example, the control unit 11 receives 60 as the UI volume value by operating the UI volume 131. The control unit 11 sets the volume of the USB DAC 2 to the received UI volume value. For example, the control unit 11 sets the volume of the USB DAC 2 to the received UI volume value 60 as shown in (1) of FIG. At this time, the system volume of the smartphone 1 is not changed.

なお、制御部11は、デジタルオーディオデータをUSB DAC2に出力していないとき、すなわち、音楽再生プログラムPを起動していないときに、ボリュームキー141の操作があった場合、スマートフォン1のシステムボリューム調整を受け付ける。例えば、制御部11は、ボリュームキー141が操作されることにより、システムボリューム値として、6を受け付ける。制御部11は、受け付けたシステムボリューム値にスマートフォン1のシステムボリュームを設定する。例えば、制御部11は、図6の(1)に示すように、受け付けたシステムボリューム値6にスマートフォン1のシステムボリュームを設定する。   The control unit 11 adjusts the system volume of the smartphone 1 when the volume key 141 is operated when the digital audio data is not output to the USB DAC 2, that is, when the music playback program P is not activated. Accept. For example, the control unit 11 accepts 6 as the system volume value by operating the volume key 141. The control unit 11 sets the system volume of the smartphone 1 to the received system volume value. For example, the control unit 11 sets the system volume of the smartphone 1 to the received system volume value 6 as illustrated in (1) of FIG.

図7は、ボリュームキー141がボリュームアップ操作された場合にスマートフォン1で実行される処理動作を示すフローチャートである。制御部11は、ボリュームキー141のボリュームアップ操作を受け付けると、変更後のシステムボリューム値aに対応するUIボリューム値bを算出する(S1)。例えば、制御部11は、システムボリューム値aが5から6になった場合、対応するUIボリューム値bとして、60(=6×10)を算出する。ここで、現在のUIボリューム値をb’とする。また、閾値をc(=20)とする。   FIG. 7 is a flowchart showing processing operations executed on the smartphone 1 when the volume key 141 is operated to increase the volume. When receiving the volume up operation of the volume key 141, the control unit 11 calculates a UI volume value b corresponding to the changed system volume value a (S1). For example, when the system volume value a is changed from 5 to 6, the control unit 11 calculates 60 (= 6 × 10) as the corresponding UI volume value b. Here, the current UI volume value is b ′. The threshold value is c (= 20).

次に、制御部11は、|b−b’|<cであるか否かを判断する(S2)。例えば、変更後のUIボリューム値bが60であり、現在のUIボリューム値b’が52であれば、|b−b’|=8である。この場合、|b−b’|<c(=20)である。制御部11は、|b−b’|<cであると判断した場合(S2:Yes)、b>b’であるか否かを判断する(S3)。例えば、変更後のUIボリューム値bが60であり、現在のUIボリューム値b’が52であれば、b>b’である。制御部11は、b>b’であると判断した場合(S3:Yes)、システムボリューム値にaを設定する(S4)。例えば、制御部11は、システムボリューム値に6を設定する。次に、制御部11は、システムボリューム値からUIボリューム値を変更する(S5)。すなわち、制御部11は、システムボリューム値に対応するUIボリューム値に、USB DAC2のボリュームを設定する。例えば、制御部11は、UIボリューム値を52から60に変更する。   Next, the control unit 11 determines whether or not | b−b ′ | <c (S2). For example, if the UI volume value b after the change is 60 and the current UI volume value b ′ is 52, | b−b ′ | = 8. In this case, | b−b ′ | <c (= 20). When it is determined that | b−b ′ | <c (S2: Yes), the control unit 11 determines whether or not b> b ′ (S3). For example, if the UI volume value b after the change is 60 and the current UI volume value b ′ is 52, then b> b ′. If the control unit 11 determines that b> b '(S3: Yes), it sets a to the system volume value (S4). For example, the control unit 11 sets 6 as the system volume value. Next, the control unit 11 changes the UI volume value from the system volume value (S5). That is, the control unit 11 sets the volume of the USB DAC 2 to the UI volume value corresponding to the system volume value. For example, the control unit 11 changes the UI volume value from 52 to 60.

制御部11は、b>b’でないと判断した場合(S3:No)、システムボリュームにa+1を設定する(S4)。例えば、変更後のUIボリューム値bが60であり、現在のボリューム値b’が60であれば、b>b’ではない。この場合、制御部11は、システムボリューム値に6+1=7を設定する。次に、制御部11は、システムボリューム値からUIボリューム値を変更する(S5)。すなわち、制御部11は、システムボリューム値に対応するUIボリューム値に、USB DAC2のボリュームを設定する。例えば、制御部11は、UIボリューム値を60から70に変更する。   When determining that b> b ′ is not satisfied (S3: No), the control unit 11 sets a + 1 in the system volume (S4). For example, if the UI volume value b after the change is 60 and the current volume value b ′ is 60, b> b ′ is not satisfied. In this case, the control unit 11 sets 6 + 1 = 7 as the system volume value. Next, the control unit 11 changes the UI volume value from the system volume value (S5). That is, the control unit 11 sets the volume of the USB DAC 2 to the UI volume value corresponding to the system volume value. For example, the control unit 11 changes the UI volume value from 60 to 70.

制御部11は、|b−b’|<cではないと判断した場合(S2:No)、現在のUIボリューム値b’近傍のシステムボリューム値a’に設定した場合のUIボリューム値b’’を算出する(S7)。例えば、変更後のUIボリューム値bが90であり、現在のUIボリューム値b’が52であれば、|b−b’|=38である。この場合、|b−b’|<c(=20)ではない。制御部11は、例えば、現在のUIボリューム値b’が52であれば、この近傍の(52を四捨五入した)UIボリューム値50に対応するシステムボリューム値5から、システムボリューム値a’として、6を算出する。そして、制御部11は、システムボリューム値a’=6に対応するUIボリューム値b’’=60を算出する。   If the controller 11 determines that | b−b ′ | <c is not satisfied (S2: No), the UI volume value b ″ when the system volume value a ′ near the current UI volume value b ′ is set. Is calculated (S7). For example, if the UI volume value b after the change is 90 and the current UI volume value b ′ is 52, | b−b ′ | = 38. In this case, | b−b ′ | <c (= 20) is not satisfied. For example, if the current UI volume value b ′ is 52, the control unit 11 uses the system volume value 5 corresponding to the UI volume value 50 in the vicinity (rounded by 52) as the system volume value a ′. Is calculated. Then, the control unit 11 calculates a UI volume value b ″ = 60 corresponding to the system volume value a ′ = 6.

次に、制御部11は、b’’>b’であるか否かを判断する(S8)。例えば、変更後のUIボリューム値b’’が60であり、現在のUIボリューム値b’が52であれば、b’’>b’である。制御部11は、b’’>b’であると判断した場合(S8:Yes)、システムボリューム値にa’を設定する(S9)。例えば、制御部11は、システムボリューム値に6を設定する。次に、制御部11は、システムボリューム値からUIボリューム値を変更する(S5)。すなわち、制御部11は、システムボリューム値に対応するUIボリューム値に、USB DAC2のボリュームを設定する。例えば、制御部11は、UIボリューム値を52から60に変更する。   Next, the control unit 11 determines whether b ″> b ′ is satisfied (S8). For example, if the changed UI volume value b ″ is 60 and the current UI volume value b ′ is 52, then b ″> b ′. When determining that b ″> b ′ is satisfied (S8: Yes), the control unit 11 sets a ′ as the system volume value (S9). For example, the control unit 11 sets 6 as the system volume value. Next, the control unit 11 changes the UI volume value from the system volume value (S5). That is, the control unit 11 sets the volume of the USB DAC 2 to the UI volume value corresponding to the system volume value. For example, the control unit 11 changes the UI volume value from 52 to 60.

制御部11は、b’’>b’ではないと判断した場合(S8:No)、システムボリューム値にa’+1を設定する(S10)。例えば、変更後のUIボリューム値bが60であり、現在のUIボリューム値b’が60であれば、b>b’ではない。この場合、制御部11は、システムボリューム値に6+1=7を設定する。次に、制御部11は、システムボリュームからUIボリュームを変更する(S5)。すなわち、制御部11は、システムボリューム値に対応するUIボリューム値に、USB DAC2のボリュームを設定する。例えば、制御部11は、UIボリューム値を60から70に変更する。   When determining that b ″> b ′ is not satisfied (S8: No), the control unit 11 sets a ′ + 1 to the system volume value (S10). For example, if the UI volume value b after the change is 60 and the current UI volume value b ′ is 60, b> b ′ is not satisfied. In this case, the control unit 11 sets 6 + 1 = 7 as the system volume value. Next, the control unit 11 changes the UI volume from the system volume (S5). That is, the control unit 11 sets the volume of the USB DAC 2 to the UI volume value corresponding to the system volume value. For example, the control unit 11 changes the UI volume value from 60 to 70.

(従来装置との比較)
例えば、スマートフォンのシステムボリュームのステップ数が0〜10であり、USB DACのボリュームのステップ数が0〜100であったとする。また、現在のスマートフォンのシステムボリューム値が8であり、USB DACのボリューム値が50であったとする。従来のスマートフォンは、スマートフォンのボリュームキーにより、スマートフォン1のシステムボリューム値が8から9に変化した場合、USB DACのボリュームを50から90に変更してしまう。これは、スマートフォンのボリュームと、USB DACのボリュームと、が同期していないからである。
(Comparison with conventional equipment)
For example, it is assumed that the number of steps of the system volume of the smartphone is 0 to 10, and the number of steps of the volume of the USB DAC is 0 to 100. Further, it is assumed that the current system volume value of the smartphone is 8, and the volume value of the USB DAC is 50. When the system volume value of the smartphone 1 is changed from 8 to 9 by the volume key of the smartphone, the conventional smartphone changes the volume of the USB DAC from 50 to 90. This is because the volume of the smartphone and the volume of the USB DAC are not synchronized.

本実施形態では、制御部11は、変更後のスマートフォン1のシステムボリューム値に対応するUIボリューム値と、現在のUIボリューム値と、の差の絶対値が、所定の閾値(例えば、20)よりも大きい場合、現在のUIボリューム値近傍の値に対応するスマートフォン1のシステムボリューム値から変更後のスマートフォン1のシステムボリューム値を算出する。上記のように、スマートフォン1のボリュームのステップ数が0〜10であり、USB DACのステップ数が0〜100であったとする。この場合、スマートフォン1のシステムボリューム値に対応するUIボリューム値は、スマートフォン1のシステムボリューム値の10倍の値である。例えば、スマートフォン1のシステムボリューム値が9であれば、対応するUIボリューム値は、90である。ここで、変更後のスマートフォン1のシステムボリューム値9に対応するUIボリューム値が90であり、現在のUIボリューム値が52である場合、差の絶対値が38であるため、制御部11は、現在のUIボリューム値52近傍の(52を四捨五入した)値50に対応するスマートフォン1のシステムボリューム値5から変更後のスマートフォン1のシステムボリューム値として、6(=5+1)を算出する。   In the present embodiment, the control unit 11 determines that the absolute value of the difference between the UI volume value corresponding to the system volume value of the smartphone 1 after the change and the current UI volume value is greater than a predetermined threshold (for example, 20). Is larger, the system volume value of the smartphone 1 after the change is calculated from the system volume value of the smartphone 1 corresponding to a value near the current UI volume value. As described above, it is assumed that the number of steps of the volume of the smartphone 1 is 0 to 10, and the number of steps of the USB DAC is 0 to 100. In this case, the UI volume value corresponding to the system volume value of the smartphone 1 is 10 times the system volume value of the smartphone 1. For example, if the system volume value of the smartphone 1 is 9, the corresponding UI volume value is 90. Here, when the UI volume value corresponding to the system volume value 9 of the smartphone 1 after the change is 90 and the current UI volume value is 52, the absolute value of the difference is 38. 6 (= 5 + 1) is calculated as the system volume value of the smartphone 1 after the change from the system volume value 5 of the smartphone 1 corresponding to the value 50 in the vicinity of the current UI volume value 52 (rounded 52).

そして、制御部11は、算出した変更後のスマートフォン1のシステムボリューム値6に対応するUIボリューム値60に、USB DAC2のボリュームを設定する。このように、本実施形態では、スマートフォン1のシステムボリュームとUSB DAC2のボリュームとの同期がとれているため、ボリュームキー141の操作により、USB DAC2のボリュームが急激に変化するということがない。従って、本実施形態によれば、ユーザーは、ボリュームキー141を用いて、スマートフォン1からUSB DAC2のボリュームを容易に調整することができる。   Then, the control unit 11 sets the volume of the USB DAC 2 to the UI volume value 60 corresponding to the calculated system volume value 6 of the smartphone 1 after the change. Thus, in this embodiment, since the system volume of the smartphone 1 and the volume of the USB DAC 2 are synchronized, the volume of the USB DAC 2 does not change suddenly by the operation of the volume key 141. Therefore, according to the present embodiment, the user can easily adjust the volume of the USB DAC 2 from the smartphone 1 using the volume key 141.

以上、本発明の実施形態について説明したが、本発明を適用可能な形態は、上述の実施形態には限られるものではなく、以下に例示するように、本発明の趣旨を逸脱しない範囲で適宜変更を加えることが可能である。   As mentioned above, although embodiment of this invention was described, the form which can apply this invention is not restricted to the above-mentioned embodiment, As suitably illustrated in the range which does not deviate from the meaning of this invention so that it may illustrate below. It is possible to make changes.

上述の実施形態においては、図7に基づいて、ボリュームキー141がボリュームアップ操作された場合にスマートフォン1で実行される処理動作を説明した。図8は、ボリュームキー141がボリュームダウン操作された場合にスマートフォン1で実行される処理動作を示すフローチャートである。制御部11は、ボリュームキー141のボリュームダウン操作を受け付けると、変更後のシステムボリューム値aに対応するUIボリューム値bを算出する(S101)。例えば、制御部11は、システムボリューム値aが5から4になった場合、対応するUIボリューム値bとして、40(=4×10)を算出する。ここで、現在のUIボリューム値をb’とする。また、閾値をc(=20)とする。   In the above-described embodiment, the processing operation executed by the smartphone 1 when the volume key 141 is operated to increase the volume has been described based on FIG. FIG. 8 is a flowchart showing processing operations executed by the smartphone 1 when the volume key 141 is operated to decrease the volume. Upon receiving the volume down operation of the volume key 141, the control unit 11 calculates a UI volume value b corresponding to the changed system volume value a (S101). For example, when the system volume value a is changed from 5 to 4, the control unit 11 calculates 40 (= 4 × 10) as the corresponding UI volume value b. Here, the current UI volume value is b ′. The threshold value is c (= 20).

次に、制御部11は、|b−b’|<cであるか否かを判断する(S102)。例えば、変更後のUIボリューム値bが40であり、現在のUIボリューム値b’が52であれば、|b−b’|=12である。この場合、|b−b’|<c(=20)である。制御部11は、|b−b’|<cであると判断した場合(S102:Yes)、b<b’であるか否かを判断する(S3)。例えば、変更後のUIボリューム値bが40であり、現在のUIボリューム値b’が52であれば、b<b’である。制御部11は、b<b’であると判断した場合(S103:Yes)、システムボリューム値にaを設定する(S104)。例えば、制御部11は、システムボリューム値に4を設定する。次に、制御部11は、システムボリューム値からUIボリューム値を変更する(S105)。すなわち、制御部11は、システムボリューム値に対応するUIボリューム値に、USB DAC2のボリュームを設定する。例えば、制御部11は、UIボリューム値を52から40に変更する。   Next, the control unit 11 determines whether or not | b−b ′ | <c (S102). For example, if the UI volume value b after the change is 40 and the current UI volume value b ′ is 52, | b−b ′ | = 12. In this case, | b−b ′ | <c (= 20). When it is determined that | b−b ′ | <c (S102: Yes), the control unit 11 determines whether or not b <b ′ (S3). For example, if the changed UI volume value b is 40 and the current UI volume value b ′ is 52, then b <b ′. If the control unit 11 determines that b <b ′ (S103: Yes), it sets a to the system volume value (S104). For example, the control unit 11 sets 4 as the system volume value. Next, the control unit 11 changes the UI volume value from the system volume value (S105). That is, the control unit 11 sets the volume of the USB DAC 2 to the UI volume value corresponding to the system volume value. For example, the control unit 11 changes the UI volume value from 52 to 40.

制御部11は、b<b’でないと判断した場合(S103:No)、システムボリュームにa−1を設定する(S104)。例えば、変更後のUIボリューム値bが50であり、現在のボリューム値b’が50であれば、b<b’ではない。この場合、制御部11は、システムボリューム値に5−1=4を設定する。次に、制御部11は、システムボリューム値からUIボリューム値を変更する(S105)。すなわち、制御部11は、システムボリューム値に対応するUIボリューム値に、USB DAC2のボリュームを設定する。例えば、制御部11は、UIボリューム値を50から40に変更する。   When determining that b <b ′ is not satisfied (S103: No), the control unit 11 sets a-1 in the system volume (S104). For example, if the UI volume value b after the change is 50 and the current volume value b ′ is 50, b <b ′ is not satisfied. In this case, the control unit 11 sets 5-1 = 4 as the system volume value. Next, the control unit 11 changes the UI volume value from the system volume value (S105). That is, the control unit 11 sets the volume of the USB DAC 2 to the UI volume value corresponding to the system volume value. For example, the control unit 11 changes the UI volume value from 50 to 40.

制御部11は、|b−b’|<cではないと判断した場合(S102:No)、現在のUIボリューム値b’近傍のシステムボリューム値a’に設定した場合のUIボリューム値b’’を算出する(S107)。例えば、変更後のUIボリューム値bが10であり、現在のボリューム値b’が52であれば、|b−b’|=42である。この場合、|b−b’|<c(=20)ではない。制御部11は、例えば、現在のUIボリューム値b’が52であれば、この近傍の(四捨五入した)UIボリューム値50に対応するシステムボリューム値5から、システムボリューム値a’として、4を算出する。そして、制御部11は、システムボリューム値a’=4に対応するUIボリューム値b’’=40を算出する。   If the control unit 11 determines that | b−b ′ | <c is not satisfied (S102: No), the UI volume value b ″ when the system volume value a ′ near the current UI volume value b ′ is set. Is calculated (S107). For example, if the UI volume value b after the change is 10 and the current volume value b ′ is 52, | b−b ′ | = 42. In this case, | b−b ′ | <c (= 20) is not satisfied. For example, if the current UI volume value b ′ is 52, the control unit 11 calculates 4 as the system volume value a ′ from the system volume value 5 corresponding to the UI volume value 50 in the vicinity (rounded off). To do. Then, the control unit 11 calculates a UI volume value b ″ = 40 corresponding to the system volume value a ′ = 4.

次に、制御部11は、b’’<b’であるか否かを判断する(S108)。例えば、変更後のUIボリューム値b’’が40であり、現在のUIボリューム値b’が52であれば、b’’<b’である。制御部11は、b’’<b’であると判断した場合(S108:Yes)、システムボリューム値にa’を設定する(S109)。例えば、制御部11は、システムボリューム値に4を設定する。次に、制御部11は、システムボリューム値からUIボリューム値を変更する(S105)。すなわち、制御部11は、システムボリューム値に対応するUIボリューム値に、USB DAC2のボリュームを設定する。例えば、制御部11は、UIボリューム値を52から40に変更する。   Next, the control unit 11 determines whether b ″ <b ′ (S108). For example, if the UI volume value b ″ after change is 40 and the current UI volume value b ′ is 52, then b ″ <b ′. When determining that b ″ <b ′ is satisfied (S108: Yes), the control unit 11 sets a ′ as the system volume value (S109). For example, the control unit 11 sets 4 as the system volume value. Next, the control unit 11 changes the UI volume value from the system volume value (S105). That is, the control unit 11 sets the volume of the USB DAC 2 to the UI volume value corresponding to the system volume value. For example, the control unit 11 changes the UI volume value from 52 to 40.

制御部11は、b’’<b’ではないと判断した場合(S108:No)、システムボリューム値にa’−1を設定する(S110)。例えば、変更後のUIボリューム値bが50であり、現在のUIボリューム値b’が50であれば、b<b’ではない。この場合、制御部11は、システムボリューム値に5−1=4を設定する。次に、制御部11は、システムボリュームからUIボリュームを変更する(S105)。すなわち、制御部11は、システムボリューム値に対応するUIボリューム値に、USB DAC2のボリュームを設定する。例えば、制御部11は、UIボリューム値を50から40に変更する。   When determining that b ″ <b ′ is not satisfied (S108: No), the control unit 11 sets a′−1 as the system volume value (S110). For example, if the changed UI volume value b is 50 and the current UI volume value b ′ is 50, b <b ′ is not satisfied. In this case, the control unit 11 sets 5-1 = 4 as the system volume value. Next, the control unit 11 changes the UI volume from the system volume (S105). That is, the control unit 11 sets the volume of the USB DAC 2 to the UI volume value corresponding to the system volume value. For example, the control unit 11 changes the UI volume value from 50 to 40.

上述の実施形態においては、スマートフォン1のシステムボリュームのステップ数が0〜10であり、USB DAC2のステップ数が0〜100である場合について説明した。この場合、スマートフォン1のシステムボリューム値に対応するUIボリューム値は、スマートフォン1のボリューム値の10倍の値であった。これに限らず、例えば、スマートフォン1のシステムボリュームのステップ数が0〜10であり、USB DAC2のステップ数が0〜50であってもよい。この場合、スマートフォン1のシステムボリューム値に対応するUIボリューム値は、スマートフォン1のシステムボリューム値の5倍の値である。例えば、スマートフォン1のシステムボリューム値が9であれば、対応するUIボリューム値は、45である。   In the above-described embodiment, the case where the number of steps of the system volume of the smartphone 1 is 0 to 10 and the number of steps of the USB DAC 2 is 0 to 100 has been described. In this case, the UI volume value corresponding to the system volume value of the smartphone 1 is 10 times the volume value of the smartphone 1. For example, the number of steps of the system volume of the smartphone 1 may be 0 to 10, and the number of steps of the USB DAC 2 may be 0 to 50. In this case, the UI volume value corresponding to the system volume value of the smartphone 1 is five times the system volume value of the smartphone 1. For example, if the system volume value of the smartphone 1 is 9, the corresponding UI volume value is 45.

上述の実施形態においては、スマートフォンに音楽再生プログラムがインストールされており、スマートフォンを音楽再生装置として機能させる場合について説明した。これに限らず、音楽再生装置として機能させる機器として、タブレットPC、フィーチャーフォン、携帯ゲーム機等であってもよい。   In the above-described embodiment, the case where the music playback program is installed in the smartphone and the smartphone functions as a music playback device has been described. However, the present invention is not limited to this, and a device that functions as a music playback device may be a tablet PC, a feature phone, a portable game machine, or the like.

上述の実施形態においては、USB DAC2は、ヘッドホン3にアナログオーディオデータを出力するようになっている。これに限らず、USB DAC2は、ヘッドホン以外のスピーカー等にアナログオーディオデータを出力するようになっていてもよい。   In the embodiment described above, the USB DAC 2 outputs analog audio data to the headphones 3. Not limited to this, the USB DAC 2 may output analog audio data to speakers other than headphones.

本発明は、音楽を再生する音楽再生装置に好適に採用され得る。   The present invention can be suitably employed in a music playback device that plays back music.

1 スマートフォン(音楽再生装置)
11 制御部
12 記憶部
13 表示部
131 UIボリューム(第2操作キー)
14 操作部
141 ボリュームキー(第1操作キー)
18 コネクタ
2 USB DAC(D/A変換装置)
3 ヘッドホン
P 音楽再生プログラム
1 Smartphone (music playback device)
11 Control unit 12 Storage unit 13 Display unit 131 UI volume (second operation key)
14 Operation unit 141 Volume key (first operation key)
18 Connector 2 USB DAC (D / A converter)
3 Headphones P Music playback program

Claims (6)

自装置のボリュームを調整するための第1操作キーと、
制御部と、を備え、
前記制御部は、
デジタルオーディオデータをD/A変換装置に出力し、
前記デジタルオーディオデータを前記D/A変換装置に出力しているときに、前記第1操作キーの操作があった場合、変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値と、現在の前記D/A変換装置のボリューム値と、を比較し、
変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値と、現在の前記D/A変換装置のボリューム値と、の差の絶対値が、所定の閾値よりも大きい場合、現在の前記D/A変換装置のボリューム値近傍の値に対応する自装置のボリューム値から変更後の自装置のボリューム値を算出し、
算出した変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値に、前記D/A変換装置のボリュームを設定する
ことを特徴とする音楽再生装置。
A first operation key for adjusting the volume of the own device;
A control unit,
The controller is
Output digital audio data to D / A converter,
When the first operation key is operated while the digital audio data is being output to the D / A converter, the volume of the D / A converter corresponding to the volume value of the own device after the change The value and the current volume value of the D / A converter,
When the absolute value of the difference between the volume value of the D / A converter corresponding to the volume value of the device after the change and the current volume value of the D / A converter is larger than a predetermined threshold value, Calculating the volume value of the own device after the change from the volume value of the own device corresponding to a value in the vicinity of the current volume value of the D / A conversion device;
A music playback device, wherein the volume of the D / A conversion device is set to the volume value of the D / A conversion device corresponding to the calculated volume value of the device itself.
前記制御部は、
変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値と、現在の前記D/A変換装置のボリューム値と、の差の絶対値が、前記所定の閾値以下である場合、変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値に、前記D/A変換装置のボリュームを設定することを特徴とする請求項1に記載の音楽再生装置。
The controller is
When the absolute value of the difference between the volume value of the D / A conversion device corresponding to the volume value of the own device after the change and the current volume value of the D / A conversion device is equal to or less than the predetermined threshold value 2. The music reproducing apparatus according to claim 1, wherein the volume of the D / A converter is set to the volume value of the D / A converter corresponding to the volume value of the own apparatus after the change.
前記制御部は、
前記デジタルオーディオデータを前記D/A変換装置に出力していないときに、前記第1操作キーの操作があった場合、自装置のボリューム調整を受け付け、
受け付けたボリューム値に自装置のボリュームを設定することを特徴とする請求項1又は2に記載の音楽再生装置。
The controller is
When the first operation key is operated when the digital audio data is not output to the D / A conversion device, the volume adjustment of the own device is accepted,
3. The music reproducing apparatus according to claim 1, wherein the volume of the apparatus is set to the received volume value.
前記D/A変換装置の音量を調整するための第2操作キーを表示するための表示部をさらに備え、
前記制御部は、
前記デジタルオーディオデータを前記D/A変換装置に出力しているときに、前記第2操作キーを前記表示部に表示し、
前記第2操作キーの操作があった場合、前記D/A変換装置のボリューム調整を受け付け、
受け付けたボリューム値に前記D/A変換装置のボリュームを設定することを特徴とする請求項1〜3のいずれか1項に記載の音楽再生装置。
A display unit for displaying a second operation key for adjusting the volume of the D / A converter;
The controller is
When the digital audio data is being output to the D / A converter, the second operation key is displayed on the display unit,
When there is an operation of the second operation key, the volume adjustment of the D / A converter is accepted,
4. The music playback device according to claim 1, wherein the volume of the D / A converter is set to the received volume value.
現在の前記D/A変換装置のボリューム値近傍の値は、現在の前記D/A変換装置のボリューム値を四捨五入した値であることを特徴とする請求項1〜4のいずれか1項に記載の音楽再生装置。   5. The value in the vicinity of the current volume value of the D / A conversion device is a value obtained by rounding off the current volume value of the D / A conversion device. 6. Music player. 自装置のボリュームを調整するための第1操作キーと、
制御部と、を備えるコンピュータの制御部に、
デジタルオーディオデータのD/A変換装置への出力、
前記デジタルオーディオデータを前記D/A変換装置に出力しているときに、前記第1操作キーの操作があった場合、変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値と、現在の前記D/A変換装置のボリューム値と、の比較、
変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値と、現在の前記D/A変換装置のボリューム値と、の差の絶対値が、所定の閾値よりも大きい場合、現在の前記D/A変換装置のボリューム値近傍の値に対応する自装置のボリューム値から変更後の自装置のボリューム値の算出、
算出した変更後の自装置のボリューム値に対応する前記D/A変換装置のボリューム値に、前記D/A変換装置のボリュームの設定、
を実行させる音楽再生プログラム。
A first operation key for adjusting the volume of the own device;
And a control unit of a computer comprising a control unit,
Output of digital audio data to D / A converter,
When the first operation key is operated while the digital audio data is being output to the D / A converter, the volume of the D / A converter corresponding to the volume value of the own device after the change A comparison between the current value and the current volume value of the D / A converter,
When the absolute value of the difference between the volume value of the D / A converter corresponding to the volume value of the device after the change and the current volume value of the D / A converter is larger than a predetermined threshold value, Calculation of the volume value of the own device after the change from the volume value of the own device corresponding to a value in the vicinity of the current volume value of the D / A conversion device;
Setting the volume of the D / A converter to the volume value of the D / A converter corresponding to the calculated volume value of the own apparatus,
Music playback program that runs
JP2015053242A 2015-03-17 2015-03-17 Music playback device and music playback program Expired - Fee Related JP6119783B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015053242A JP6119783B2 (en) 2015-03-17 2015-03-17 Music playback device and music playback program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015053242A JP6119783B2 (en) 2015-03-17 2015-03-17 Music playback device and music playback program

Publications (2)

Publication Number Publication Date
JP2016174276A JP2016174276A (en) 2016-09-29
JP6119783B2 true JP6119783B2 (en) 2017-04-26

Family

ID=57009774

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015053242A Expired - Fee Related JP6119783B2 (en) 2015-03-17 2015-03-17 Music playback device and music playback program

Country Status (1)

Country Link
JP (1) JP6119783B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7288181B2 (en) * 2019-03-14 2023-06-07 東亜ディーケーケー株式会社 Cables with data processing, measuring and control systems

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003318673A (en) * 2002-04-25 2003-11-07 Mitsubishi Electric Corp Electronic volume circuit
JP2006229923A (en) * 2005-01-18 2006-08-31 Seiko Epson Corp Audio information output device and audio reproduction system
JP2008140434A (en) * 2006-11-30 2008-06-19 Alpine Electronics Inc Digital audio device and its sample rate changing method
JP5434372B2 (en) * 2009-08-26 2014-03-05 ヤマハ株式会社 Volume control device
JP4998759B2 (en) * 2010-02-26 2012-08-15 オンキヨー株式会社 Volume control system
JP4797215B2 (en) * 2010-02-26 2011-10-19 オンキヨー株式会社 Volume control system
KR101982243B1 (en) * 2012-09-28 2019-05-24 삼성전자주식회사 User terminal apparatus, electronic device and control method thereof

Also Published As

Publication number Publication date
JP2016174276A (en) 2016-09-29

Similar Documents

Publication Publication Date Title
US10299042B2 (en) Method and apparatus for controlling portable audio devices
JP5493056B2 (en) Dynamic adjustment of master volume control and individual volume control
US20180069957A1 (en) Parameter control device, parameter control program, and parameter control method
JP5943050B2 (en) Music playback device and music playback program
KR20210105785A (en) Electronic device and method for controlling audio output thereof
RU2607994C2 (en) Information sharing device, information sharing method, information sharing program and terminal device
CN102437825B (en) Control device and control method
JP6447843B2 (en) Auto-configurable speaker system
US9230529B2 (en) Music reproducing apparatus
CN110383797B (en) Terminal device and communication method
US9491549B2 (en) Equalizer apparatus
JP2015122709A (en) Music playback device, music playback system, and music playback program
JP6119783B2 (en) Music playback device and music playback program
KR20140017121A (en) Method and apparatus for controlling sound signal output
US11036463B2 (en) Terminal device, control method, and audio data reproduction system
JP6341047B2 (en) Audio equipment
CN106255004A (en) Sound method of adjustment, earphone and audiogenic device
JP2017062661A (en) Electronic apparatus
JP2018136688A (en) Electronics
JP2019004237A (en) Music reproduction apparatus and music reproduction program
JP2016057439A (en) Terminal equipment and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170215

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170228

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170313

R150 Certificate of patent or registration of utility model

Ref document number: 6119783

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees