Android phones and USB DACs
Feb 12, 2015 at 10:18 AM Post #6,301 of 9,526
Can somebody notice diference in sq between uapp, hibymusic and onkyo hf player?

 
"Choosing the right audiophile playback software can be a daunting task. While audible differences can occur in going from an entry-level software like iTunes to one of the audiophile playback engines mentioned below, the transition between high-end software boils down to a preference between real cherry flavor and artificial cherry flavor.
 
... Some people will hear a tremendous difference while others will not.
Because many operating systems can be optimized outside of playback software, the benefits of these audio applications may diminish. This doesn’t mean they make no difference, it just explains why some people will hear a tremendous difference while others will not. There are lots of layers here, and I’ll talk about them more in-depth in our upcoming optimization guides.
Before diving into the software comparison, I need to address bit-perfect playback. There are three camps here. 
...
Finally the third camp, my camp, gets two paragraphs because it's my camp and I'm writing this. Let's all start by agreeing that audio is a real-time process. Even if an application loads data into memory for processing, everything before and the whole operation after is a real time operation. Real time processes in a computer take the form of a square wave, specifically a pulse width modulation. This pulse width modulation is an analog representation of what we conceptualize as a digital signal and is created by voltage in the power supply. This PWM signal has both amplitude characteristics and timing characteristics. The timing, or duty cycle, along with the amplitude determine the frequency response of that square wave. A computer is made up of billions of transistors, all switching very quickly to changes in logic (mathematical algorithms created by the operating system and software). Based on the input voltages, logic switches create a new version, a duplicate, of the square wave (either theoretically identical or altered). That new version of the square wave is also created from power in the power supply. Because audio is real time, there is no error correction that can be done to this square wave, any resulting wave form IS your music.
 
Looking at the concept of bit-perfect, it's arguably impossible to have bit perfect playback in a real-time system because there are no bits. If the power supply introduces noise or there is jitter on the square wave this results in a square wave that is not identical to the original. Because the square wave is an analog signal it is still susceptible to noise and distortion. A square wave, however, reacts a little differently than its sine wave counterpart. Jitter is an alteration of the duty cycle, when that jitter hits the digital interface chips, a DAC for instance, that jitter is seen as an amplitude error and creates an alteration of the frequency response. Amplitude distortion itself is created by noise voltages that either add or subtract from the amplitude of the square wave. This introduces harmonic content into the square wave that shouldn't exist in the music. The square wave may still resemble a one or a zero, but it contains additional frequency content. So as far that bits are concerned, it's bit perfect, but with additional harmonic content that shouldn't be there.
 
So, high-end playback software works to buffer the audio signal and keep as much of the processing in the non-real-time zone (memory playback) as possible. The next step is to create as few duplications of the square wave as possible and get it to the computer's output as quickly as possible so as to avoid the introduction of jitter and amplitude errors. All of the software below is bit perfect, the camp you pitch your tent in shouldn't affect the software you wish to use, just how you choose to integrate it into your system."
http://www.coreaudiotechnology.com/which-audiophile-playback-software-to-choose/
http://www.head-fi.org/t/617282/audirvana-plus-vs-bitperfect-vs-fidelia
 
 
"
1. Sources of non-quality
Assuming the output is bit-perfect, the computer as a source creates two main sources on non-quality:
 
. Software-induced jitter
Digital signal is in fact an analogue waveform composed of two states separated by a voltage threshold (1 if above, 0 if under). 
As presented in [MeitnerGendron91], the receiver detects the value change the moment the analogue value crosses the threshold. In addition, the shift from one state to another is not instantaneous but more slope like.
So a slight change in the reference voltage of the source will lead to a slight temporal shift in the value change detection.
 

 
So fluctuations in the source reference voltage create jitter, as explained in details in [HawksfordDunn96]. This is the same on the receiver side with measurement threshold fluctuations from its power supply and/or ground instability. Moreover the computer can still cause this as the grounds are linked most of the time through the same signal cables.
Computer load means rapidly changing power demands from the CPU and its peripherals, with peak demands that are directly related to the software behaviour.
 
. Radio-Frequency & other interferences
In addition, computation, disk access, … activities mean complex current waveforms are carried on electrical lines and thus generate electromagnetic interferences. Apple computers are now made of “unibody” aluminium cases that are good protectors from inside RF interferences. But this is not sufficient as the cables connected to the computer act as antennas. And these current waveforms are also going back through the computer PSU, polluting the mains power supply.
 
4. The player software impact
First of all the player should ensure bit-perfect reproduction of the signal by:
. Adapting the DAC sample rate to each track native to avoid any unwanted sample rate conversion
. Taking exclusive access ("hog mode") of the device to prevent other opened applications from interfering
 
Furthermore, as we have seen in section 1, the computer load (and its variations) has an impact on sound quality. Minimizing such current demands and sources of interferences is key:
. Loading tracks before playback (“memory play”) to reduce disk access and its audible, power and RFI impacts
. Minimizing synchronous CPU load taken for the audio data streaming operations. In addition to reduce jitter, this also helps to reduce audible RF interferences patterns, especially in low frequencies."
http://www.amr-audio.co.uk/html/dp777_tech-papers_OSX-Integermode.html
http://www.head-fi.org/t/595071/android-phones-and-usb-dacs/6195#post_11264146
 
 
" Clock Jitter: how much is it important?
Initially I started with the units positioned in the easiest way inside the box. Jitter measured at this point was 358ps (340-370ps). However, the clock case was near the power control chips of the transport, which appeared less than optimal.
So I raised the clock just a few centimeters (5-6cm), leaving all the rest as above. Jitter dropped to 334ps (329-341ps).
Moving the clock away from the board as much as possible given the short connection made the jitter utterly go down to 328ps (322-332ps). Having the clock output twisted pair go along the transport power chips had scarcely any effect.
Then I moved the PSU back towards the main power supply output stages and cabling, but there was an immediate increase of jitter up to 346ps (338-351ps), so I moved the PSU into another position nearby: this quieter position was just above the main PSU rectifying diodes.... and don't ask me why this appeared a quieter position!"
http://www.tnt-audio.com/clinica/jitter3_e.html
 
http://www.head-fi.org/t/595071/android-phones-and-usb-dacs/6210#post_11270037
http://www.cse.psu.edu/~gcao/teach/458-02/c2.pdf
 
 

 

 
 
"The myth that "0s are 0s and 1s are 1s -- it's all digital don't care about" is simply said wrong and misleading.
It's not about just digital 1s or 0s actually. The data receiver must be able to read a certain analog voltage and need to declare it a 1 or 0. Since timing and shape of that bit and its distortion are continuously changing and usually far far away from being ideal, the receiver will see all but a clean rectangular evenly separated noise-free signal."
http://soundcheck-audio.blogspot.co.uk/2011/11/touch-toolbox-30.html
 
Feb 12, 2015 at 10:29 AM Post #6,302 of 9,526
  @DanBa: Random thought, but your (excellent) explanations of various items relating to getting high-quality audio out of Android devices often rely on images. Just out of curiosity, are you uploading those to Head-Fi, so they (presumably) won't disappear like some photos hosted on external websites?
 
Might seem like a silly question, but I know I've looked back on some of your previous posts a few times and I'm sure others have too. Just want to make sure that all your work will be available on the site for the foreseeable future.

 
They are stored on some Head-Fi server.
 
Feb 12, 2015 at 10:41 AM Post #6,303 of 9,526
Aside from measurements in picoseconds (10-12 seconds) using technical instruments, one needs to identify the atrefacts and how they measure in audio terms as well as how that compares to the human thresholds of perception.
 
Feb 12, 2015 at 1:34 PM Post #6,304 of 9,526
Does the HibyMusic player differ from UAPP in the way it uses User Space USB audio, or does this also depend on the DAC you use?
Nexus 7 2013 5.02 -> UAPP -> iFi Nano iDSD - Feeds the Nano correctly up to 192kHZ according to the LED on the Nano.
Nexus 7 2013 5.02 -> HibyMusic -> iFi Nano iDSD - Output limits to 44.1kHZ according to the LED on the Nano.
 
Feb 12, 2015 at 1:53 PM Post #6,305 of 9,526
   
 
Update on my in-car USB journey:
 
Due to horrendous GPS on Lollipop I've installed CyanogenMod11.
 
Nexus 5 >> OTG-Y >> USB cable (+5V wire cut) >> USB powered hub >> HIFiMeDIY Android >>  JVC head unit (analogue in)
 
Works but volume is either on or off (fine in this application) and I suspect I lose the 44.1Khz output from the phone and instead all is reconverted to 48kHz.
 
I briefly had a USB cable without the +5v wire cut and at various points my phone would brick requiring the battery to be unplugged in order to get it to reboot. I am working on a constant 5v source for the hub (currently goes off during engine starts and ignition off)
 
The interference is not present in headphones, so I have ordered a ground loop isolator for the EXT-IN to the head unit.

 
update:
 
ground-loop isolator complete fixes the interference issues I was having from the 12v-USB convertors and the head unit.
 
However, the firm-bricking needing the battery to be briefly unplugged wasn't (only?) to do with the 5v line being cut. If I am running both the Y-cable power and the USB hub plus DAC from the cigarette lighter socket, when I turn the ignition off (cutting power to both things simultaneouly) then it "firm-bricks" the phone.
 
If I run the Y-cable power from a battery powered USB supply instead everything is fine.
 
So, I've designed a circuit to include a small SLA battery, and my SkyRC imax6 mini can provide charge to that battery while the ignition is on. I'll add some method of using the head unit 12v remote wire to power a relay to switch on the USB chargers, or may make it so that it switches in the SLA battery only during starter-motor activity so as to keep the head unit and USB chargers at 12v when the main battery voltage drops to 9v while cranking. I can have an ignition switched Qi charger running as backup charge while the head unit is off.
 
An issue i've been having is forgetting to turn the head-unit off, as sound stops when I turn off the ignition (but head and amps stay on), so I need to have the music continue irrespective of the key position. I think my design manages it but yes it's a little involved.
 
The other thing is that CM11 does show "charging" unlike Lollipop, so that is a plus.
 
Feb 13, 2015 at 12:10 AM Post #6,306 of 9,526
Feb 13, 2015 at 9:57 AM Post #6,307 of 9,526
I have a Galaxy S2, can it work with an E7 or E17? Is any of those recommended over the other if using an S2? I am currently using Android version 4.1.2, will I need to upgrade in order to use a DAC? Is there any special cable I should buy to connect the two?
 
Thanks in advance for any help!
 
Feb 13, 2015 at 4:11 PM Post #6,308 of 9,526
The Galaxy S2 can't drive any USB DAC because its USB host driver doesn't have the isochronous transfer feature that is needed to interact with a USB DAC.
http://www.head-fi.org/t/595071/android-phones-and-usb-dacs/1635#post_9133931
 
Feb 13, 2015 at 4:39 PM Post #6,309 of 9,526
  Does the HibyMusic player differ from UAPP in the way it uses User Space USB audio, or does this also depend on the DAC you use?
Nexus 7 2013 5.02 -> UAPP -> iFi Nano iDSD - Feeds the Nano correctly up to 192kHZ according to the LED on the Nano.
Nexus 7 2013 5.02 -> HibyMusic -> iFi Nano iDSD - Output limits to 44.1kHZ according to the LED on the Nano.

 
It's weird that HibyMusic can't play 192kHz music file and output 192kHz PCM audio stream to the iFi Nano iDSD. 
May be, the USB descriptors (more precisely the supported sampling frequencies) of the iFi Nano iDSD are misread by the USB audio user-space driver of HibyMusic.
 
 
Like UAPP or Onkyo HF Player, the HibyMusic player has its own USB audio user-space driver (i.e. USB DAC user-space driver or USB DAC driver).
In other words, the USB DAC driver included in HibyMusic is different than the one included in UAPP or in Onkyo HF Player.
 


 
 
As HibyMusic doesn't use the Android media player framework to interact with a USB DAC, HibyMusic should play and output high resolution audio.
 
352.8 kHz music file > HibyMusic running on Galaxy Note3 > 352.8 kHz PCM audio stream >> XMOS USB 384K/32bit DAC with 352.8K LED light up
 

 
 
The UI of UAPP & Onkyo HF Player are clearer.
 
352.8 kHz music file > UAPP running on Galaxy Note3 > 352.8 kHz PCM audio stream >> XMOS USB 384K/32bit DAC with 352.8K LED light up
 

 
 
352.8 kHz music file > Onkyo HF Player running on Galaxy Note3 > 352.8 kHz PCM audio stream >> XMOS USB 384K/32bit DAC with 352.8K LED light up
 

 
Feb 13, 2015 at 5:10 PM Post #6,310 of 9,526
Thanks DanBa,
Indeed looks like a mismatch between HibyMusic and the iFi for now.
Haven't tried the Onkyo in HighRes yet. First need to decide on my travel setup before buying yet another license. The nexus is limited in storage, my Z10 with Neutron doesn't support USB OTG at all.
Considering a 8" windows tablet with JRiver MC20 as well, at least no USB hassle there.
 
Feb 14, 2015 at 3:42 PM Post #6,311 of 9,526
Real-time DSD Convert feature introduced with upcoming Onkyo HF Player v2.0.0?
http://av.watch.impress.co.jp/docs/news/20150214_688346.html
http://hi-res.koss.jp/how-to-activate_real-time-dsd-convert_function_on_onkyo-hf-player/
http://blog.ratocsystems.com/wp/?s=REX-KEB03+
 
" Onkyo HF Player Ver.2.0.0 has added a new function which calls “Real time DSD convert” function. It converts PCM (WAV, FLAC, ALAC, e.t.c.) high & normal resolution audio files to DSD high res audio signals."
 
regular FLAC-encoded music file > Onkyo HF Player v2.0.0 (?) with DSD Convert feature enabled running on Sony Xperia Z3 > DSD over PCM stream >> USB OTG cable >> DSD input > Ratoc REX-KEB03 USB DAC/amp
 

 

 

 
 
 
DSD input vs. regular PCM input: different audio signal path, different sound quality?
http://www.cirrus.com/en/products/cs4398.html
http://www.cirrus.com/en/products/wm8741.html
 
Regular PCM audio path:
regular FLAC-encoded music file > Onkyo HF Player running on Sony Xperia Z3 > regular PCM stream >> USB OTG cable >> PCM input > Ratoc REX-KEB03 USB DAC/amp
 

 

 
Feb 15, 2015 at 6:41 PM Post #6,314 of 9,526
Anybody using USB Audio Player Pro with a Samsung Galaxy S5 to Centrance Hifi M8? I've heard that it works but would like confirmation.

 
According to the USB Audio Player PRO (UAPP) web site, the Samsung Galaxy S5 and the CEntrance HiFi-M8 are compatible with UAPP.
http://www.head-fi.org/t/595071/android-phones-and-usb-dacs/6285#post_11306308
A list of USB Audio Player PRO resources (compatible USB DAC, compatible Android devices, ...):
http://www.extreamsd.com/USBAudioRecorderPRO/

 
 
Galaxy S5 >> USB OTG cable >> CEntrance HiFi-M8 USB DAC/amp >> headphones
http://instagram.com/p/opmyfqFIJ3/
 

 
Feb 15, 2015 at 6:59 PM Post #6,315 of 9,526
Anyone with the new HifimeDIY sabre 9018 Dac? It should work via UAPP on Android 4.4.4, right?

 
Samsung Galaxy S4 using UAPP / HibyMusic / Onkyo HF Player >> USB OTG adapter >> DSD-ready HiFime 9018 Asynchronous High Resolution USB DAC(/amp) >> headphones
 
Only UAPP has a functional hardware volume control.
 
HiFime 9018 Asynchronous High Resolution USB DAC draws a lot of power from the phone.
 
http://www.tellementnomade.org/forum/viewtopic.php?p=293709#p293709
 
It can draw power from an external battery pack via Y cable or via USB hub.
http://www.head-fi.org/t/595071/android-phones-and-usb-dacs/5985#post_11179388
 

Users who are viewing this thread

Back
Top