Re: Sound card with supported digital out

2006-06-12 Thread andrew fresh
On Sat, May 27, 2006 at 08:18:59PM +0200, Jan Johansson wrote:
 andrew fresh [EMAIL PROTECTED] wrote:
  I have tried one of those, I had forgotten about that.  The
  problem with the USB digital output that I have tried is that
  it does not do AC3/DTS passthrough, all it does is output 2
  channel PCM over the optical digital connection.  
  
  I believe the one I tried was a Turtle Beach Audio Advantage
  Micro.  If there is USB audio that will do AC3/DTS passthrough
  on OpenBSD, I would be happy with that.
 
 I have a Sinovoice UAC-05 which identifies like this
 
 uaudio0 at uhub0 port 2 configuration 1 interface 0: ABC C-Media USB 
 Headphone Set, rev 1.10/1.00, addr 2
 uaudio0: audio rev 1.00, 8 mixer controls
 audio0 at uaudio0

I found the Turtle Beach AudioAdvantage Micro that I tried before:
uaudio0 at uhub0 port 1 configuration 1 interface 0: C-Media INC. USB Audio, 
rev 1.10/0.10, addr 2
uaudio0: audio rev 1.00, 4 mixer controls
audio1 at uaudio0

and a Creative USB SoundBlaster Model SB0270:
uaudio0: audio rev 1.00, 3 mixer controls
audio1 at uaudio0
uhidev1 at uhub1 port 2 configuration 1 interface 3
uhidev1: Creative Labs USB Audio, rev 1.10/1.00, addr 2, iclass 3/0
uhid0 at uhidev1: input=3, output=3, feature=0

 it is connected to my NAD T-760 receiver using a toslink
 (optical) cable.

Mine connects to my Yamaha RX-V1400 through optical.

 In the following examples I use Gladiator (region 2).
 To get DTS on the receiver:
 To get Dolby Digital on the receiver:
 (On Shrek (region 1) I had to use -aid to get DTS.)

I am trying an Xvid with AC3 5.1 encoded into it (the machine I have
that can get close enough to the reciever doesn't have a DVD drive) 

doing 
$ mplayer file 

I get:
==
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000-192000)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==

which I believe means that it sees the file is AC3 5.1 but it is
decoding it to 2ch s16le and outputting it to the headphone jack.

when I 
$ mplayer -ac hwac3 file

I get:
==
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
No accelerated IMDCT transform found
hwac3: switched to AC3, 448000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 448.0 kbit/29.17% (ratio: 56000-192000)
Selected audio codec: [hwac3] afm:hwac3 (AC3 through S/PDIF)
==

Mplayer claims it is converting it to 2ch AC3, but according to this, it
is just lying:

http://marc.theaimsgroup.com/?l=mplayer-usersm=114837108311020w=2

mplayer was throwing me a red herring by telling me it was playing 
2-channel when in fact hwac3 was sending the full raw audio to the amp.

So, I tried 2 different files, one with 5.1ch and one with 2ch.  My
reciever shows that it is recieving the correct number of channels
depending on the file.

 Hope this helps.

It did!  It got me to try it again and I see now that It Just Works![1]

I get AC3 passthrough working correctly with both sound cards.  w00 h00!

[1] unlike the linux box I have that claims to pass through AC3 but
instead just sends garbage to the reciever.

l8rZ,
-- 
andrew - ICQ# 253198 - JID: [EMAIL PROTECTED]

BOFH excuse of the day: We already sent around a notice about that.



Re: Sound card with supported digital out

2006-05-27 Thread Jan Johansson
andrew fresh [EMAIL PROTECTED] wrote:
 I have tried one of those, I had forgotten about that.  The
 problem with the USB digital output that I have tried is that
 it does not do AC3/DTS passthrough, all it does is output 2
 channel PCM over the optical digital connection.  
 
 I believe the one I tried was a Turtle Beach Audio Advantage
 Micro.  If there is USB audio that will do AC3/DTS passthrough
 on OpenBSD, I would be happy with that.

I have a Sinovoice UAC-05 which identifies like this

uaudio0 at uhub0 port 2 configuration 1 interface 0: ABC C-Media USB Headphone 
Set, rev 1.10/1.00, addr 2
uaudio0: audio rev 1.00, 8 mixer controls
audio0 at uaudio0

it is connected to my NAD T-760 receiver using a toslink
(optical) cable.

In the following examples I use Gladiator (region 2).

To get DTS on the receiver:

mplayer dvd://

To get Dolby Digital on the receiver:

mplayer -ac hwac3 -aid 128 dvd://

(On Shrek (region 1) I had to use -aid to get DTS.)

-ac hwac3 tells mplayer to let the soundcard do the work and not
do it in software.

To find the aid (audio id) I run mplayer with -v and look for
something like this.

DVD successfully opened.
[open] audio stream: 0 audio format: ac3 (5.1) language: en aid: 128
[open] audio stream: 1 audio format: dts (5.1) language: en aid: 137
[open] audio stream: 2 audio format: ac3 (stereo) language: en aid: 130

Hope this helps.



Re: Sound card with supported digital out

2006-05-20 Thread andrew fresh
On Sat, May 20, 2006 at 05:46:42AM +0200, Jan Johansson wrote:
 andrew fresh [EMAIL PROTECTED] wrote:
  Is there a supported sound card that supports digital outputs?
 
 I think your best bet is USB audio. I have a simple USB audio
 stick that does optic digital signal or headphones under OpenBSD.
 

I have tried one of those, I had forgotten about that.  The problem with
the USB digital output that I have tried is that it does not do AC3/DTS
passthrough, all it does is output 2 channel PCM over the optical
digital connection.  

I believe the one I tried was a Turtle Beach Audio Advantage Micro.  If
there is USB audio that will do AC3/DTS passthrough on OpenBSD, I would
be happy with that.

l8rZ,
-- 
andrew - ICQ# 253198 - JID: [EMAIL PROTECTED]

BOFH excuse of the day: wrong polarity of neutron flow



Sound card with supported digital out

2006-05-19 Thread andrew fresh
Is there a supported sound card that supports digital outputs?

I am trying to build a media pc that is similar to GeeXboX[2].  Pretty
much just minimal system that will netboot and get mplayer running, but
on an OS I like, OpenBSD :-) However, I want to be able to do AC3 and
DTS passthrough and I am not sure if any digital audio out is supported
on any cards in OpenBSD.

Looking though the cards listed on i386.html[3] and searching the
archives, I didn't find any support for digital outputs.  

On the SBLive! and Audigy cards that I have, emu(4)[1] claims not to
support the S/PDIF.

I do see that the Turtle Beach Santa Cruz is supposed to be supported by
clcs(4)[4] and clcs(4) doesn't say that the S/PDIF out is not supported
so I am not sure.

Thank you for any information.

[1] http://www.openbsd.org/cgi-bin/man.cgi?query=emuarch=i386sektion=4
[2] http://geexbox.org/
[3] http://www.openbsd.org/i386.html
[4] http://www.openbsd.org/cgi-bin/man.cgi?query=clcsarch=i386sektion=4

l8rZ,
-- 
andrew - ICQ# 253198 - JID: [EMAIL PROTECTED]

BOFH excuse of the day: Your packets were eaten by the terminator



Re: Sound card with supported digital out

2006-05-19 Thread Jan Johansson
andrew fresh [EMAIL PROTECTED] wrote:
 Is there a supported sound card that supports digital outputs?
 
 I am trying to build a media pc that is similar to GeeXboX[2].
 Pretty much just minimal system that will netboot and get
 mplayer running, but on an OS I like, OpenBSD :-) However, I
 want to be able to do AC3 and DTS passthrough and I am not sure
 if any digital audio out is supported on any cards in OpenBSD.

I think your best bet is USB audio. I have a simple USB audio
stick that does optic digital signal or headphones under OpenBSD.