Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
0 crawler(s) on-line.
 84 guest(s) on-line.
 1 member(s) on-line.


 Makedonk

You are an anonymous user.
Register Now!
 Makedonk:  17 secs ago
 pixie:  13 mins ago
 tonyadams:  18 mins ago
 Hammer:  31 mins ago
 matthey:  36 mins ago
 gryfon:  1 hr 17 mins ago
 amigakit:  1 hr 28 mins ago
 roschmyr:  1 hr 37 mins ago
 Beajar:  1 hr 44 mins ago
 MEGA_RJ_MICAL:  2 hrs 35 mins ago

Amigaworld.net News   Amigaworld.net News : AmigaOne x1000 HD Audio Driver Complete
   posted by vox on 16-Jul-2013 5:12:30 (5788 reads)
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.
:)
    

STORYID: 6817
Related Links
· More about Amigaworld.net News
· News by vox


Most read story about Amigaworld.net News
Official OS4 Screenshots from Hyperion

Last news about Amigaworld.net News
New Final Writer 7 Pre-Installed on A600GS
Printer Friendly Page  Send this Story to a Friend

Goto page ( 1 | 2 )

PosterThread
lylehaze 
Re: AmigaOne x1000 HD Audio Driver Complete
Posted on 20-Jul-2013 20:40:59
#21 ]
Super Member
Joined: 1-Sep-2004
Posts: 1142
From: North Florida - Big Bend area.

Optical receivers each have specific sample rates they will support.
One device I am testing with only works at 96K and below.

Please try different rates, and try stereo instead of 7.1 channels.

The output of the codec is rated to work with all the modes we have
available, but I can not tell what your receiver requires.


LyleHaze


_________________
question=(2b||!(2b))

 Status: Offline
Profile     Report this post  
amigadave 
Re: AmigaOne x1000 HD Audio Driver Complete
Posted on 22-Jul-2013 21:43:06
#22 ]
Super Member
Joined: 18-Jul-2005
Posts: 1732
From: Lake Shastina, Northern Calif.

Thanks for all your hard work (as well as any other members of the team who may have contributed) to complete the X1000 Audio Driver.


_________________
Amiga! The computer that inspired so many, to accomplish so much, but has ended up in the hands of . . . . . . . . . .

 Status: Offline
Profile     Report this post  
bassdude 
Re: AmigaOne x1000 HD Audio Driver Complete
Posted on 24-Jul-2013 8:19:52
#23 ]
Member
Joined: 12-May-2003
Posts: 13
From: Canberra

Quote:
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.


Hi, that is actually incorrect. It doesn't work that way. The higher sampling rates like 96kHz etc simply allow you to sample higher frequencies. You do not get any more accurate sampling of lower frequencies. This is a common mistake. What a 96kHz sampling rate does get you is a gentler cutoff slope as it gets moved from 22.05k up to 48k so cheap and nasty AD converters have a better chance of sounding good because they don't have to spend as much effort on the filters.

Regards,
Stuart.

 Status: Offline
Profile     Report this post  
Deniil715 
Re: AmigaOne x1000 HD Audio Driver Complete
Posted on 25-Jul-2013 8:55:45
#24 ]
Elite Member
Joined: 14-May-2003
Posts: 4237
From: Sweden

Cool

@austgarden

Quote:
But i'm still unable to get any sound out of the optical output


Is it possible to get both analog and digital output at the same time with this driver? Or the ability to switch smoothly without stopping all AHI users, manually switch mode, then start playback again?


_________________
- Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes)
> Amiga Classic and OS4 developer for OnyxSoft.

 Status: Offline
Profile     Report this post  
lylehaze 
Re: AmigaOne x1000 HD Audio Driver Complete
Posted on 26-Jul-2013 6:01:23
#25 ]
Super Member
Joined: 1-Sep-2004
Posts: 1142
From: North Florida - Big Bend area.

Yes.
Output choice "all" supports all available outputs at once, analog and digital.


_________________
question=(2b||!(2b))

 Status: Offline
Profile     Report this post  
Deniil715 
Re: AmigaOne x1000 HD Audio Driver Complete
Posted on 26-Jul-2013 10:14:13
#26 ]
Elite Member
Joined: 14-May-2003
Posts: 4237
From: Sweden

Quote:
Yes.
Output choice "all" supports all available outputs at once, analog and digital.


Nice!!


_________________
- Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes)
> Amiga Classic and OS4 developer for OnyxSoft.

 Status: Offline
Profile     Report this post  

Goto page ( 1 | 2 )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle