JP6119783B2 - Music playback device and music playback program - Google Patents
Music playback device and music playback program Download PDFInfo
- 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
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.
スマートフォンには、スマートフォンのシステムボリュームを調整するためのボリュームキーが設けられている。このボリュームキーを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
そして、制御部は、算出した変更後の自装置のボリューム値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
第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
第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.
以下、本発明の実施形態について説明する。図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
(スマートフォン1)
スマートフォン1は、制御部11、記憶部12、表示部13、操作部14、スピーカー15、ネットワーク通信部(以下、「NW通信部」という。)16、ブルートゥース(登録商標)通信部(以下、「BT通信部」という。)17、コネクタ18、USBホストコントローラ19等を備えている。スマートフォン1は、例えば、OS(Operating System)プログラムとして、Andoroid(登録商標)を搭載したスマートフォンである。
(Smartphone 1)
The
制御部11は、制御プログラム、OSプログラム、音楽再生プログラムPを含むアプリケーションプログラムに従って、スマートフォン1を構成する各部を制御する。また、制御部11は、音楽再生プログラムPに従って、デジタルオーディオデータをUSB DAC2に出力する。制御部11が音楽再生プログラムPに従って実行する処理については、後述する。
The
記憶部12は、制御部11の主メモリとして機能するRAM(Random Access Memory)、制御プログラムを記憶するROM(Read Only Memory)、OSプログラムや音楽再生プログラムPを含むアプリケーションプログラム等のプログラム、デジタルオーディオデータ等の各種データを記憶するフラッシュメモリから構成されている。なお、記憶部12は、例示する構成に限られず、HDD(Hard Disk Drive)等を含んでいてもよい。また、音楽再生プログラムPは、工場出荷時に記憶部12に記憶されていてもよいし、後述するNW通信部16を介して、図示しないサーバーからダウンロードされ、記憶部12に記憶されていてもよい。
The
表示部13は、種々の画像(静止画像、動画像を含む)を表示するものであり、液晶パネルにより構成されている。操作部14は、各種設定を行うための操作キー、及び、表示部13と連動したタッチパネルを備えている。ユーザーは、操作部14を介して、電話番号やメールアドレス等の各種の文字入力、通信設定などを行うことが可能である。また、操作部14は、スマートフォン1のボリュームを調整するためのボリュームキー141(第1操作キー)を有する。スピーカー15は、制御部11から出力されるオーディオデータに基づいて、音楽等の種々の音声を出力する。NW通信部16は、図示しない携帯電話網および携帯基地局を介してインターネットに接続可能なように構成されている。スマートフォン1は、NW通信部16を介して、他の端末との通話、通信等を行うことが可能である。BT通信部17は、ブルートゥース規格に基づいて、ブルートゥース規格に対応した図示しない周辺装置と無線通信を行う。
The
コネクタ18は、スマートフォン1を外部の機器と接続するためのものである。コネクタ18は、例えば、USBのマイクロBタイプのメス型コネクタある。本実施形態では、スマートフォン1とUSB DAC2とは、コネクタ18を介して、USBケーブル4により接続される。USBホストコントローラ19は、USB規格に対応した通信をUSBデバイス(本実施形態では、USB DAC2)と行うためのコントローラである。USBホストコントローラ19により、スマートフォン1は、USBホストとして機能する。
The
(USB DAC2)
USB DAC2は、制御部21、記憶部22、表示部23、操作部24、D/Aコンバータ25、増幅部26、コネクタ27、USBデバイスコントローラ28、ヘッドホン端子29等を備えている。制御部21は、制御プログラムに従って、USB DAC2を構成する各部を制御する。
(USB DAC2)
The
記憶部22は、制御部21の主メモリとして機能するRAM、制御プログラムを記憶するROMから構成されている。なお、記憶部22は、例示する構成に限られず、フラッシュメモリ等を備えていてもよい。表示部23は、電源のオンオフを表示するLEDランプ等である。操作部24は、ユーザー操作を受け付けるためのものであり、USB DAC2の筐体に設けられた操作ボタン等である。D/Aコンバータ25は、スマートフォン1から出力されるデジタルオーディオデータをアナログオーディオデータにD/A変換する。増幅部26は、D/Aコンバータ25がD/A変換したアナログオーディオデータを増幅し、ヘッドホン端子29に出力する。
The
コネクタ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
スマートフォン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
(ボリューム調整処理)
制御部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
制御部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
また、制御部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
また、制御部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
なお、制御部11は、デジタルオーディオデータをUSB DAC2に出力していないとき、すなわち、音楽再生プログラムPを起動していないときに、ボリュームキー141の操作があった場合、スマートフォン1のシステムボリューム調整を受け付ける。例えば、制御部11は、ボリュームキー141が操作されることにより、システムボリューム値として、6を受け付ける。制御部11は、受け付けたシステムボリューム値にスマートフォン1のシステムボリュームを設定する。例えば、制御部11は、図6の(1)に示すように、受け付けたシステムボリューム値6にスマートフォン1のシステムボリュームを設定する。
The
図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
次に、制御部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
制御部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
制御部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
次に、制御部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
制御部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
(従来装置との比較)
例えば、スマートフォンのシステムボリュームのステップ数が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
本実施形態では、制御部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
そして、制御部11は、算出した変更後のスマートフォン1のシステムボリューム値6に対応するUIボリューム値60に、USB DAC2のボリュームを設定する。このように、本実施形態では、スマートフォン1のシステムボリュームとUSB DAC2のボリュームとの同期がとれているため、ボリュームキー141の操作により、USB DAC2のボリュームが急激に変化するということがない。従って、本実施形態によれば、ユーザーは、ボリュームキー141を用いて、スマートフォン1からUSB DAC2のボリュームを容易に調整することができる。
Then, the
以上、本発明の実施形態について説明したが、本発明を適用可能な形態は、上述の実施形態には限られるものではなく、以下に例示するように、本発明の趣旨を逸脱しない範囲で適宜変更を加えることが可能である。 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
次に、制御部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
制御部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
制御部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
次に、制御部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
制御部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
上述の実施形態においては、スマートフォン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
上述の実施形態においては、スマートフォンに音楽再生プログラムがインストールされており、スマートフォンを音楽再生装置として機能させる場合について説明した。これに限らず、音楽再生装置として機能させる機器として、タブレット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
本発明は、音楽を再生する音楽再生装置に好適に採用され得る。 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
14
18
3 Headphones P Music playback program
Claims (6)
制御部と、を備え、
前記制御部は、
デジタルオーディオデータを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操作キーを前記表示部に表示し、
前記第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操作キーの操作があった場合、変更後の自装置のボリューム値に対応する前記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
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)
| 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)
| 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 |
-
2015
- 2015-03-17 JP JP2015053242A patent/JP6119783B2/en not_active Expired - Fee Related
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 |