Welcome, Guest. Please login or register.

Author Topic: AmigaOne x1000 HD Audio Driver Complete  (Read 3361 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline SysAdminTopic starter

  • News posting Auto Agent
  • Hero Member
  • *****
  • Join Date: Aug 2009
  • Posts: 1393
    • Show only replies by SysAdmin
    • http://www.a-eon.com
AmigaOne x1000 HD Audio Driver Complete
« on: July 16, 2013, 07:22:49 AM »
blog.hyperion-entertainment.biz
Posted by Lyle Hazelwood on    July 15, 2013

I  am happy to announce the release of the finished HDAudio driver for the  AmigaOne X1000! The driver now supports recording as well as playback.  It also now supports S/PDIF optical output.

There have been  questions about whether full “32 bit” audio really makes a difference.  I’d like to dig a little deeper to better understand the technical  specifications....
(Please click read more.)


There are two  primary factors that contribute to the quality of a digital sound  recording. One is resolution, or how many bits per sample, and the other  is sample rate, commonly 44100 or 48000 samples per second.

As  you look at the waveform of a sound recording, these two numbers  determine the vertical and horizontal resolution of the wave.

I’ll begin with the “bit width” or vertical resolution.

The  original Amiga’s sound output supported four channels at eight bits of  resolution. Eight bits means there are two hundred and fifty six  possible vertical “steps” that can be used as the wave is generated. Now  we spread those steps across a -2 volt to +2 volt span and we get  0.015625 volts per step.

At the time of the Amigas introduction,  that was a pretty fair sound playback. But only 256 steps is not as  “high fidelity” as we might like. As a comparison, Compact Disk Audio is  reproduced at 16 bits per sample. This makes for a big improvement in  resolution. 16 bits offers us 65536 possible “steps” to spread across  the -2 volt to +2 volt range. Now the step size is 0.0000610351562 volts  per “step” of vertical resolution. So 16 bit audio is a HUGE increase  in accuracy.

Getting back to our driver, AHIPrefs offers both 16  Bit HiFi and 32 bit HiFi modes. But I’ll bet that neither of those modes  gives exactly what you might expect. As AHI mixes lots of different  sounds together, possibly each sound with it’s own volume and pan  settings, it can be useful to have more resolution available to work  with. Here’s the clue: ALL AHI modes that say “HiFi” are sending 32 bit  data out to the sound device! The “16″ and “32″ only describe what goes  IN to the AHI mix routines. if it says HiFi, you WILL get 32 bit output  to your card!

Or will you? In truth, while AHI is making it’s  calculations using 32 bit registers and 32 bit math, it only promises 24  bits of accuracy. Is this anything to be concerned about? Not at all.  I’ll tell you why. 24 bit samples will resolve to a “step size” of  0.0000002384185 volts per step. Wow! That is about one quarter of a  microvolt. Those with an electronics background can probably tell you,  that attempts to accurately work at those levels are just ridiculous. We  have reached an accuracy that is beyond the ability of our amplifiers  and speakers to reproduce. Put simply, 24 bits is the reasonable limit  of current technology, or at least affordable technology.

So our  32 bit samples are flying out of AHI and in to the HDAudio codec. While  the ”container” is 32 bits wide, even the “high definition audio codec”  that we have in the AmigaOne X1000 only resolves the top 24 bits. So it  seems that in the end, both AHI and HDaudio agree that 24 bits is the  reasonable limit for now.

And how about sample rate or the “horizontal” resolution?

How  rapidly a sound is sampled and played back can also have a BIG impact  on sound quality. It all starts with the Nyquist-Shannon sampling  theorem or more commonly the Nyquist theorem. It’s pretty simple. As you  record an audio signal, you must sample at at least twice the frequency  of the highest pitch being recorded. Any sound that is higher than half  the sampling frequency will be converted to noise and nasty noise at  that.

So how high do we need? It is generally held that human  hearing range is from 20 Hz (cycles per second) up to 20000 Hz. So any  frequency above 40000 should be great right? Well Yes and No.

One  simple problem is that we still must filter out all sound above half  the sample frequency, and most frequency dependent volume controls  (graphic equalizers) work with gradual slopes. There is no “hard cutoff”  at a certain frequency, so we need a bit of headroom.

But there  is another reason. As a high frequency sound approaches the Nyquist  rate, we are only sampling about once per half-cycle. While this will  reproduce the frequency of the original, it will do it at a bare minimum  of accuracy. In other words, as frequencies get higher, they get less  detail.

So what does it really matter?
Audio CDs play back at 44100 Hz. Not bad at all.
Television/DVD audio is usually at 48000 Hz. Nice.
With the HDAudio chip in the X1000 we support both of those frequencies.
We also support 88200, 96000, 176400, and 192000.
So we can double or quadruple the sample rates of common media!

At  first, I really thought it was all a numbers game, but when developing  the driver, I can actually hear the noise decrease noticeably as the  playback rates went up!

And that is where I’ll leave off. This  was enough of a lesson for one day. I am very happy that I could  contribute to the completion of this driver. And the chance to “raise  the bar” regarding sound capability was really very nice icing on the  cake.

Like many of us, I have been using Amigas for a long time.  Today, right here in front of me is an Amiga that supports high  definition audio, a modern high performance video card. It uses  standard, off the shelf keyboard, mouse, monitor and many USB  accessories as well. Most of these we unheard of in the classic days.  But with all the new and shiny, it is still AmigaOS to the core.
:)
Posts on this account before August 4th, 2012 don\'t belong to me.
 

Offline vox

  • Hero Member
  • *****
  • Join Date: Feb 2011
  • Posts: 862
    • Show only replies by vox
    • http://anticusa.wordpress.com
Re: AmigaOne x1000 HD Audio Driver Complete
« Reply #1 on: July 16, 2013, 07:43:14 AM »
Finally, the X1000 onboard sound is fully usable. The ending also clearly explains the goal of AmigaNG/OS 4.x - drive to more modern standards, and after years of waiting its finally coming true :-)
Future Acube and MOS supporter, fi di good, nothing fi di unprofessionals. Learn it harder way! http://www.youtube.com/user/rasvoja and https://www.facebook.com/rasvoja
 

Offline Lurch

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 1716
    • Show only replies by Lurch
Re: AmigaOne x1000 HD Audio Driver Complete
« Reply #2 on: July 16, 2013, 10:11:29 AM »
After playing with my A1200 which is now RTG I'm excited about the x1000 and AmigaOS4 and the prospect of it being my main OS.

The only part that I can't get past is the price, but hopefully this will change :-/
-=[LurcH]=-
A500 Plus Black 030@40MHz 128MB | A1200T 060@80MHz 320MB | Pegasos II G4@1GHz 1GB  | Amiga Future Sub
 

Offline klx300r

  • Amiga 1000+AmigaOne X1000
  • Hero Member
  • *****
  • Join Date: Sep 2007
  • Posts: 3261
  • Country: ca
  • Thanked: 20 times
  • Gender: Male
    • Show only replies by klx300r
    • http://mancave-ramblings.blogspot.ca/
Re: AmigaOne x1000 HD Audio Driver Complete
« Reply #3 on: July 16, 2013, 10:16:30 PM »
BIG TIME THANKS LYLE :banana::pint::knuddel:
____________________________________________________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Indivision AGA & Catweasel MK4+= Amazing
! My Master Miggies-Amiga 1000 & AmigaOne X1000 !
--- www.mancave-ramblings.blogspot.ca ---
  -AspireOS.com & Amikit- Amiga for your netbook-
***X1000- I BELIEVE *** :angel:
 

Offline takemehomegrandma

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2990
    • Show only replies by takemehomegrandma
Re: AmigaOne x1000 HD Audio Driver Complete
« Reply #4 on: July 16, 2013, 11:47:48 PM »
Good news for X1000 owners! It took a while, but audio got there at last, one more tick in the checklist...

:)

Quote from: Lurch;740913
After playing with my A1200 which is now RTG I'm excited about the x1000 and AmigaOS4 and the prospect of it being my main OS.

The only part that I can't get past is the price, but hopefully this will change :-/


Price is one thing, availability is another...

But maybe the "X2000" will feature the same AMD SB600 southbridge? That would make sense in several ways; existing drivers could be used (a big plus given how long time it took to actually develop whats here now) and that A-eon probably have some surplus stock to use.

So I'd say that this is more than likely (in fact, anything else would be strange)...

:)
MorphOS is Amiga done right! :)
 

Offline Steady

Re: AmigaOne x1000 HD Audio Driver Complete
« Reply #5 on: July 17, 2013, 01:20:09 AM »
Nice one. Congrats Lyle.
 


Offline Rob

Re: AmigaOne x1000 HD Audio Driver Complete
« Reply #7 on: July 18, 2013, 10:26:23 AM »
Quote from: takemehomegrandma;741001
Good news for X1000 owners! It took a while, but audio got there at last, one more tick in the checklist...

:)



Price is one thing, availability is another...

But maybe the "X2000" will feature the same AMD SB600 southbridge? That would make sense in several ways; existing drivers could be used (a big plus given how long time it took to actually develop whats here now) and that A-eon probably have some surplus stock to use.

So I'd say that this is more than likely (in fact, anything else would be strange)...

:)


There's no audio connections on the Cyrus boards so they must be thinking of using PCI/-e cards.

PA6T lacked SATA and USB which are built into the P5020 so it wasn't really necessary to have a southbridge this time around.
 

Offline Iggy

  • Hero Member
  • *****
  • Join Date: Aug 2009
  • Posts: 5348
    • Show only replies by Iggy
Re: AmigaOne x1000 HD Audio Driver Complete
« Reply #8 on: July 18, 2013, 11:58:30 PM »
Quote from: takemehomegrandma;741001
Good news for X1000 owners! It took a while, but audio got there at last, one more tick in the checklist...
 
:)
 
 
 
Price is one thing, availability is another...
 
But maybe the "X2000" will feature the same AMD SB600 southbridge? That would make sense in several ways; existing drivers could be used (a big plus given how long time it took to actually develop whats here now) and that A-eon probably have some surplus stock to use.
 
So I'd say that this is more than likely (in fact, anything else would be strange)...
 
:)

Considering that the SB600 is fully documented (and the other ATI/AMD Southbridge components aren't) it seems likely.
"Not making any hard and fast rules means that the moderators can use their good judgment in moderation, and we think the results speak for themselves." - Amiga.org, terms of service

"You, got to stem the evil tide, and keep it on the the inside" - Rogers Waters

"God was never on your side" - Lemmy

Amiga! "Our appeal has become more selective"