Amiga.org

Amiga computer related discussion => Amiga Hardware Issues and discussion => Topic started by: Helgis75 on May 12, 2003, 05:52:56 PM

Title: The Mystery Of The AC97 Sound...
Post by: Helgis75 on May 12, 2003, 05:52:56 PM
What is this AC97 intergrated soundchip anyway? Is this some kind of a modern Paula-chip being great at playback with 20-bit full duplex sound, and poor when it comes to recording? Is this the kind of audio-chip..? Could somebody tell me?

Is it possible to use the AC97 for playback at 20-bit, and the SB Live for recording? Just wonder...

 :-)
Title: Re: The Mystery Of The AC97 Sound...
Post by: gnarly on May 12, 2003, 06:37:51 PM
AFAIK, the AC97 is simply an audio I/O chip.

In theory, you could set up AHI to output through the AC97 and record through the SBLive! but I think the SBLive! is probably a better bet for both jobs :-)
Title: Re: The Mystery Of The AC97 Sound...
Post by: Helgis75 on May 12, 2003, 06:47:45 PM
Quote

gnarly wrote:
AFAIK, the AC97 is simply an audio I/O chip.

In theory, you could set up AHI to output through the AC97 and record through the SBLive! but I think the SBLive! is probably a better bet for both jobs :-)


I'm sure you're right. I would expect any with AmigaOne now to tell about their audio-experiences with both AC97 and a soundcard like SB Live..:)
Title: Re: The Mystery Of The AC97 Sound...
Post by: Floid on May 12, 2003, 07:03:10 PM
Maybe Intel's PDF (http://ftp://download.intel.com/labs/media/audio/download/ac97_r23.pdf) will help?

IANAAG (I Am Not An Audio Geek), but I gather most of the love for the SBLive stems from three things- Creative Labs' "superior" construction techniques, the ability of the EMU chips to (co)process audio data, and the powerful MIDI support in those same chipsets.

Many "normal" people dislike onboard AC97 audio systems because they find them 'of poor quality' - presumably due to interference in the analog stages, whether on-board or on-chip.  This depends a lot on your particular board and chip; when I was on my EPoX 8KTA3, I had to crank my external amp far beyond normal listening levels to hear any static or hum.  A more basic problem is that, even inside Windows, it's hard to trick the single 'speaker' jack provided on most boards into acting as a proper line-level output.  These aren't really AC97 problems; they're implementation issues.  Meanwhile, SBLives have at least half-decent analog stages, and carry on the tradition of separate 'speaker' and 'line out' jacks, or at least have a simple toggle in the driver.

From there, you get into features that AC97 simply doesn't provide- *if* you have the right software/drivers, the SBLives can offload a lot of processing (for MP3 decode, effects, etc) from the main CPU.  This comes in handy for three classes of application- what I'd consider "peon" apps (the audio players that come with the card, and allow you to select 'stadium' simulation or whatnot); audio libraries- presumably DirectX can take advantage of certain 'accellerations,' and support is claimed for whatever OpenAL is on Linux - for gaming, at least, some CPU offloading would occur, though 'quality' is probably subjective; and high-end professional tools, which no-doubt give real thought to accuracy, quality, etc.  Meanwhile, MP3 decoding to an AC97 chip uses only a fraction of CPU time on any modern system, so it's not like you're totally crippled by  not using a SBLive.  (For gamers, offloading the decoding for game music does translate to a mildly increased framerate.)

MIDI support isn't a part of AC97 at all, while the SBLive has numerous highly-advanced features... none of which you'll ever touch if you don't use MIDI.  For a pro, it's no-doubt great; for playing  back an annoying tune on a Geocities page, it's.. overkill.  (A software MIDI decoder comes with Windows, and Apple seems to have relied on them exclusively? during the '90s; I have no idea what they currently use for sound.  Similar software can be wedged into Linux/*BSD.)  I have to wonder how many (gamer/consumer) SBLive owners are using the Microsoft software decoder without realizing it, whilst bragging of their card's abilities.

The big problem (fixed with the Audigy?) is that all the snazzy features came at a price- all operations on the card were handled at a fixed sampling rate of 48KHz - meaning 'rounding errors' (more like framedropping/interpolation noise?) when going to/from (and worse, to/from/to/from/to ad nauseum) the popular 44.1KHz of CD audio.  One mitigating solution has been to leave the output at 48KHz... which works fine for other SBLive users, but requires conversion when going to CD... and could show up other samplerate-conversion/'rounding' issues in things like FreeBSD's "vchans" mixing code.
Title: Re: The Mystery Of The AC97 Sound...
Post by: Helgis75 on May 12, 2003, 08:00:14 PM
Thank you, Floid:-) Then the choice is clear! The SB Live is the way to go at the moment! Luckily, i DID by the SB Live Digital 5.1!!!  :-)  :-D
Title: Re: The Mystery Of The AC97 Sound...
Post by: on May 12, 2003, 08:51:53 PM
I have one of the original SB-Live's with the gold plated pci edge connector and line in/outs and the SPDIF RCA daughterboard. Very nice when you use it with the kxproject ASIO drivers, and the PCI Latency patches for the VIA chipset. <5ms latency with no crackle or drop-outs in the sound.  The EMU-10k1 is a very good chip.
Title: Re: The Mystery Of The AC97 Sound...
Post by: tonyw on May 13, 2003, 01:46:27 AM
Helgis, the on-board sound has not yet been made to work under Linux (don't know about AOS4). It's probably because none of the developers has had the time or need to port a Linux driver to the on-board sound chip.

So, as you say, an SB Live! is the way to go at present.

tony
Title: Re: The Mystery Of The AC97 Sound...
Post by: Waccoon on May 13, 2003, 05:40:53 AM
AC97 Audio is pretty good by itself.  The Live! and Audigy cards have an edge because of various hardware acceleration techniques.  I thought I read once that most on-board audio chips can use between 5-15% CPU utilization, while the Live! card uses about 2-3%.  Of course, that was a few years ago.  I still prefer a dedicated sound card, especially since the Audigy's digital to analog converter is pretty amazing, and the Creative cards have a software controlled equalizer.  The built-in audio on my VIA266a motherboard is weak and tinny, my nForce2 board is too muddy.

I guess mobo manufacturers assume that if you care THAT much about audio quality, you'll just buy a dedicated card, anyway.

Too bad Win2000 wrecks it all.  Even with the latest Creative drivers I can't get rid of cracking and popping with either my VIAKT266a or nForce2 machines.  However, some games are better than others.  NASCAR Racing 4 really tortures the Augigy card and sounds pretty awful, while Unreal Tournament works like a charm.

It would be very nice indeed to hear an Audigy card on an Amiga.
Title: Re: The Mystery Of The AC97 Sound...
Post by: DethKnight on May 13, 2003, 07:03:36 AM
Quote
Too bad Win2000 wrecks it all. Even with the latest Creative drivers I can't get rid of cracking and popping with either my VIAKT266a or nForce2 machines


so its NOT just me, you get this too.
I get it on my EpoX 440-BX7+100 in Win2K Pro
far less problematic in linux, yet not completely 110% gone


my mum's machine has an AC97 onboard audio onit, it sux.
Title: Re: The Mystery Of The AC97 Sound...
Post by: Elektro on May 13, 2003, 07:11:13 AM
"I can't get rid of cracking and popping with either my VIAKT266a or nForce2 machines."

And they said it was VIA's fault  :-P

Anyway I got some beta drivers which fixed my problems, sound had a bit of stutter and pauses and that's now gone.

I could try emailing them (10.1 MB in size), respond if interested.
Title: Re: The Mystery Of The AC97 Sound...
Post by: olegil on May 13, 2003, 07:13:11 AM
Well, don't forget that SB Live is also using an AC97 codec, it's just got a slightly smartet host controller than what's inside most southbridge chips. AFAIK it's got a DSP like the Delfina. I have not (as of yet) seen ANY good implementations of user space modification of the running code in the DSP in Linux, but I think there's some people working on it. Windows has had drivers with this capability for ages.

Here's what will work in AmigaOS:
SB Live (good card)
SB128 (bad card compared to the above)

Unknown:
Onboard AC'97 (excactly as good or bad as an SB128, I guarantee there's no big difference between them on the digital side. And the SB128 is NOT very impressive analog-wise either)

I've been studying this quite a bit to see if there's any point in making an AC'97 card for the A1G3-SE, but since the market is like 25 motherboards and Linux still doesn't configure the VIA for AC'97 properly, I gave it up for now...
Title: Re: The Mystery Of The AC97 Sound...
Post by: Red_Melons on May 13, 2003, 08:44:10 AM
"Here's what will work in AmigaOS:
SB Live (good card)
SB128 (bad card compared to the above)"

Is the SB128 the same as the Creative Vibra 128 which Eyetech sell for the AmigaOne?
Title: Re: The Mystery Of The AC97 Sound...
Post by: Hammer on May 13, 2003, 09:22:29 AM
Quote
AC97 Audio is pretty good by itself. The Live! and Audigy cards have an edge because of various hardware acceleration techniques. I thought I read once that most on-board audio chips can use between 5-15% CPU utilization, while the Live! card uses about 2-3%. Of course, that was a few years ago. I still prefer a dedicated sound card, especially since the Audigy's digital to analog converter is pretty amazing, and the Creative cards have a software controlled equalizer. The built-in audio on my VIA266a motherboard is weak and tinny, my nForce2 board is too muddy.

My ASUS builtin Sound Storm (MCP-T)  rivials my SbLive 5.1 DE.

For audio related benchmarks refer to
http://audio.rightmark.org/
Title: Re: The Mystery Of The AC97 Sound...
Post by: on May 13, 2003, 11:38:52 AM
For anyone having problems with SBLive/Audigy on VIA chipset motherboards, do the following.

Install this kxProjext Driver (http://kxproject.lugosoft.com/downloads/kxdrv3532-full.exe)

then install this VIA PCI Latency Patch (http://www.georgebreese.com/net/software/dl03.asp?FILE=vlatency_v020_beta19.exe)

then install this VIA Memory Interleave Enabler (http://www.georgebreese.com/net/software/dl03.asp?FILE=venabler_v015.zip)

then install this VIA 4-in-1 Drivers v4.46 (http://downloads.viaarena.com/drivers/4in1/VIAHyperion4in1446vp6.exe)

You'll have no problems afterwards.  It goes without saying to reboot between each driver install. :-)
Title: Re: The Mystery Of The AC97 Sound...
Post by: Martyn on May 13, 2003, 12:50:27 PM
If anyone is interested in the CPU usage of onboard/PCI audio chips you may find this interesting:

http://www6.tomshardware.com/game/20030405/index.html (http://www6.tomshardware.com/game/20030405/index.html)

This is just CPU usage tho', not audio quality.

Martyn.
Title: Re: The Mystery Of The AC97 Sound...
Post by: on May 13, 2003, 12:55:21 PM
The best soundcard ever for CPU usage was the original ISA Gravis Ultrasound.  ZERO CPU usage. You can't get better than that! :-D
Title: Re: The Mystery Of The AC97 Sound...
Post by: Floid on May 13, 2003, 02:35:50 PM
Quote

mdma wrote:
For anyone having problems with SBLive/Audigy on VIA chipset motherboards, do the following.


Installing a BIOS update can't hurt, either, especially if you have a board from a vendor (EPoX :-D) that specifically addressed the issue.

Googling around for "Via PCI burst transfers" and so forth ("burst transfer bug," "KT133A PCI burst," etc) should turn up more detail on the issue.

Looks like some detail on the latency patch - and a 686B bug! - here. (http://www.tecchannel.de/hardware/817/8.html)
Title: Re: The Mystery Of The AC97 Sound...
Post by: Blomberg on May 13, 2003, 03:05:33 PM
Quote
MIDI support isn't a part of AC97 at all

I will not dispute that, as I don't know much about AC'97 as a standard.
I use the MIDI in (joyport thingy) of a VIA 686b with AC'97 on a daily basis, and it does the job fine for me.

My quarrel with this chip is the audio quality. When cranked up high, it creates noise. This is not a problem for 'normal' users, though, unless you do recording or are just picky with your audio  :-D
Compared to other AC'97 solutions, this is certainly one of the better ones (or maybe I was just lucky with my mobo  :-) ).

I intend to get myself a 24bit, high quality sound card at some point (for my PC), but these most often come without any MIDI functionality at all, so the VIA chip will continue its duty in that particular area, it's quite adequate.
Title: Re: The Mystery Of The AC97 Sound...
Post by: Floid on May 13, 2003, 03:06:12 PM
Quote

Martyn wrote:
http://www6.tomshardware.com/game/20030405/index.html (http://www6.tomshardware.com/game/20030405/index.html)
That's a good example of Tom being a crackhead.

Well, not really, but it's a pragmatic review for Windows gamers, and doesn't go into the issues that actually produce the results.

As a good example, the CS4624 pulls even with the Audigy- but they're in no way comparable chips.  It just happens that they both support EAX- and both hang off the same spot on the PCI bus (meaning, no intervening PCI<->PCI bridges to further cloud the issue).  Meanwhile, the 'crappy' Realtek and C-Media don't really support 3D sound* - no surprise there; CPU load can't help but go up, as DirectSound presumably takes over the processing... or even if DirectSound doesn't handle it (no idea; not a Windows sort), the *drivers* may not have been as polished, spending more CPU time unnecessarily, when the interrupt load/etc in accessing the hardware is probably *exactly the same* for plain stereo (when the driver gets around to actually sending the data out).

--

For the resident procyonid:  Welcome to the latency issues momma warned you about... and didn't Billy tell you to buy XP if you want to play games? ;-)

For Ole-Egil:  Please tell me this is only an issue for the PowerPC/AmigaOne kernel?  Or is Linux really that bad?  :-?  My last experience with it was trying to enable an old Soundscape ISA PnP, which didn't go well, but then, I was never any good with any of the Linux kernel/driver methodologies.

--

*Okay, not sure what the deal with the C-Media is, but I imagine he's confusing the '3D space enhancement' feature - basically a hardwired 'effect' with variable gain - with some claim to EAX support.  Which is, admittedly, easy to do.  (I made that mistake with my old Crystal Sound ISA card - AOpen model-numbered their cards *backwards* vs the chipsets used, or somesuch oddity.  I got an AW37 Pro when I wanted an AW35 Pro, or the other way around... too lazy to look it up.)
Title: Re: The Mystery Of The AC97 Sound...
Post by: on May 13, 2003, 03:10:23 PM
Quote
Installing a BIOS update can't hurt, either, especially if you have a board from a vendor (EPoX ) that specifically addressed the issue.


I have an EPoX 8KTA3+ RAID motherboard, it's the best board i've ever owned and it's over two years old now. I'll agree with you on the BIOS upgrade too.  Also worth a mention is to make sure the soundcard is in a Bus Mastered PCI slot.
Title: Re: The Mystery Of The AC97 Sound...
Post by: Floid on May 13, 2003, 03:36:46 PM
Quote

Blomberg wrote:
Quote
MIDI support isn't a part of AC97 at all

I will not dispute that, as I don't know much about AC'97 as a standard.
I use the MIDI in (joyport thingy) of a VIA 686b with AC'97 on a daily basis, and it does the job fine for me.

AFAIK, just about everything MIDI (except possibly 'odd ducks' like the SBLive) uses an MPU401-compatible interface.  AC97 is a standard interface for... AC97 audio (waveform data); the MPU401 was/is a MIDI UART, for transferring MIDI data (instrument selection, note triggers, etc).  I forgot that such support was built into the 686B, but yeah, there is something there.

Quote
My quarrel with this chip is the audio quality. When cranked up high, it creates noise. This is not a problem for 'normal' users, though, unless you do recording or are just picky with your audio  :-D
Yep.  I wouldn't have used my 8KTA3 for studio recording, but *not* overdriving the output (a feature mostly provided for people with, say, eMachines, and the associated $3 unamplified speakers), it was more than adequate for dumping music to a tape for play in the car.

Quote
I intend to get myself a 24bit, high quality sound card at some point (for my PC), but these most often come without any MIDI functionality at all, so the VIA chip will continue its duty in that particular area, it's quite adequate.
A UART is a UART is a UART (and unlike RS-232, MIDI hasn't gone through the speed bumps that make an Amiga CIA different from a 16550AFN. ;-)).  If you want to use the 686B as an instrument itself, it's probably limited to FM synthesis or software rendering (no idea, too lazy to look up the datasheet)... Something like an SBLive (whatever model includes the onboard RAM) has the power to replace actual MIDI instruments (if you have the software to program the wavetable(s) and whatever nifty DSP transforms can be run on them), but may not be perfect for pro digital-out/waveform use if you're stuck with the 48KHz issue.

Here's someone's tests/reviews. (http://www.io.com/~kazushi/audiocard/)
Title: Re: The Mystery Of The AC97 Sound...
Post by: Blomberg on May 13, 2003, 05:05:08 PM
Quote
If you want to use the 686B as an instrument itself, it's probably limited to FM synthesis or software rendering (no idea, too lazy to look up the datasheet)... Something like an SBLive (whatever model includes the onboard RAM) has the power to replace actual MIDI instruments (if you have the software to program the wavetable(s) and whatever nifty DSP transforms can be run on them), but may not be perfect for pro digital-out/waveform use if you're stuck with the 48KHz issue.

I only use the controller part of the VIA MIDI, as I came to the conclusion some time ago, that all sound cards builtin MIDI sounds are crap by definition  :-D
I just use it to send events from my keyboard into the computer, for use with virtual instruments, soft samplers etc.
Title: Re: The Mystery Of The AC97 Sound...
Post by: Floid on May 13, 2003, 05:35:44 PM
Quote

Blomberg wrote:
I only use the controller part of the VIA MIDI, as I came to the conclusion some time ago, that all sound cards builtin MIDI sounds are crap by definition  :-D
I just use it to send events from my keyboard into the computer, for use with virtual instruments, soft samplers etc.
Well, as others have pointed out to me, the chipset(s) on the SBLives are quite literally the equivalents of standalone Emu synths.  Whether Emu's products are/were  any good, or the 10k1/10k2(?) are worthwhile successors/continuances of the lineage, are probably largely subjective calls.

And, of course (and just to illustrate the technical point), for that purpose, you don't need a "sound card" at all- just the MIDI UART, as was built into the Atari ST and available on various cheap Amiga adapters only a few weeks after launch.  It's just that, these days, there's no sense in wasting a whole chip on a 'glorified serial port,' when you can put in something a few times more powerful than Paula, and maybe a wavetable ROM, an IDE controller, and who knows what else without using up all the space on the minimum die size the chip-processing machinery can handle.
Title: Re: The Mystery Of The AC97 Sound...
Post by: Waccoon on May 15, 2003, 06:46:55 PM
Quote
And they said it was VIA's fault

The problem is with the Win32 kernel, and how it uses interrupts, as far as I know.  Win32 doesn't allow any task to completely interrupt the system (supposedly), so sound latency problems arise.  As for Linux, I have no idea, but I'm sure the PC's horrible IRQ sharing hack has something to do with it.

That's why I want to hear a Live! or Audigy card on an Amiga.  I'd be interesting to see how differently a PPC based machine handles sound latency issues.

IMO, sound has always been the PC's major fault.  That explains why I spent most of my time sampling and creating music on my A1200.  Audition 4 for the Amiga is still one of the few sound editors out there that does realtime mixing (on the PC, the few sound editors that support previews simply mix clips a few seconds long.  Pssh).
Title: Re: The Mystery Of The AC97 Sound...
Post by: seer on May 15, 2003, 07:12:45 PM
On a slightly different note, but still a bit ontopic...

I have a SB live Value installed at the moment, but also got a  SB-Live with the gold plated pci edge connector and line in/outs (ThanX for mdma for typing that part  ;-) ) from a friend who doesn't need it anymore... Anybody care to tell which one is better ?
Title: Re: The Mystery Of The AC97 Sound...
Post by: Floid on May 15, 2003, 07:26:22 PM
Quote

Waccoon wrote:
Quote
And they said it was VIA's fault

The problem is with the Win32 kernel, and how it uses interrupts, as far as I know.  Win32 doesn't allow any task to completely interrupt the system (supposedly), so sound latency problems arise.  As for Linux, I have no idea, but I'm sure the PC's horrible IRQ sharing hack has something to do with it.

Well, that's the problem in your *audio output.*

The other problem is that something about the Via chipset (KT133/133A + 686A/B) can't handle PCI bursts more than... X length, while Y length is the standard.  Further, it wouldn't recover properly from a failed attempt, leading to a latency on the PCI bus that made other transfers time out- not good for disk accesses, at least not with drivers that assumed the data in-flight was safe.

Audio will crackle on nearly *any* soundcard with Win2k; that's a dumb kernel bug.  However, disks could presumably corrupt on any *OS* run on the Via hardware, pre-patches-and-workarounds.

Needless to say, Via's later PCI implementations have, as far as I know, been much improved.

Quote
That's why I want to hear a Live! or Audigy card on an Amiga.  I'd be interesting to see how differently a PPC based machine handles sound latency issues.
Hear it under anything non-2k, preferrably on a non-KT133x board.  (I'm not sure which other Via chipsets were affected.)

Your audio should *never* be crackling, that's just lame.  The low-latency aspect of OS4 is more to help people who *really* need realtime response (studio/live/realtime effects work, stuff that needs to be synchronized to external triggers, etc) ... of course, it might help your Quake guy grunt a little more rapidly when you jump, too.

Quote
IMO, sound has always been the PC's major fault.  That explains why I spent most of my time sampling and creating music on my A1200.  Audition 4 for the Amiga is still one of the few sound editors out there that does realtime mixing (on the PC, the few sound editors that support previews simply mix clips a few seconds long.  Pssh).
You certainly outclass me there, but I'd be... not surprised, but amused... if the Windows software sucks that bad.  I use realtime mixing (well, MUXing) with FreeBSD's vchans daily- not to say the quality or latencies are anywhere near perfect- and DirectSound and all that has similar code built-in, too.  I assume you mean more in the sense of filtering/equalization/realtime effects, in which case I'd certainly agree... but I'd wonder how much of that is latencies showing through, vs. unnecessarily piggish effects code.
Title: Re: The Mystery Of The AC97 Sound...
Post by: on May 16, 2003, 12:10:30 PM
Quote

seer wrote:
On a slightly different note, but still a bit ontopic...

I have a SB live Value installed at the moment, but also got a  SB-Live with the gold plated pci edge connector and line in/outs (ThanX for mdma for typing that part  ;-) ) from a friend who doesn't need it anymore... Anybody care to tell which one is better ?


The Gold plated in/outs are better for obvious reasons.  :-D
Title: Re: The Mystery Of The AC97 Sound...
Post by: Hammer on May 19, 2003, 12:19:19 AM
Quote

The problem is with the Win32 kernel,

I recall, Win32 is the application layer, which sits on top of NT’s Executive (includes NT’s kernel). Windows 2K/XP system drivers run on kernel level not on application level.



Title: Re: The Mystery Of The AC97 Sound...
Post by: Tomas on May 19, 2003, 12:24:04 AM
If you want to do decent recording, the sb live is not for you anyways... SB live has nice playback quality but the recording is VERY poor, the good old sb awe64 is WAY better... I think even the ac97 has better recording quality..

But then again it might be the via chipset compitable probs that caused me this? I have tested both sb live player 5.1 and some other sb live card.. both very poor recording..
Title: Re: The Mystery Of The AC97 Sound...
Post by: B00tDisk on May 19, 2003, 12:34:17 AM
I think it's largely irrelevent; unless you can sling a soldering iron and build your own sound-card, the AC97 on the A1 board is inaccessable - eyetech flat refuses to provide the ... what, $1?  $2?  AMR to allow it's use.