Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-09 Thread Michael Rans
Hi, 1. I was wondering if MP3/DTS/AC3 passthrough is at the discussion point only or is someone actively looking at developing it? 2. I think that encoding needs to be considered as part of the design ie. the possibility of AC3 or MP3 encoding before output to SPDIF. Perhaps you're already

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-10 Thread Michael Rans
Hi, Great news that AC3 passthrough is working. Well done! Are there any issues with AC3 encoding as I am using the A52 plugin from Pulseaudio (without your patch) and required the following hacks: a. A rate converter in asoundrc: # Rate Converter to 48kHz, needed for Pulseaudio it seems

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-10 Thread Michael Rans
: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support On Sat, 2010-07-10 at 08:05 +, Michael Rans wrote: Even with these hacks, I found that sometimes I see: I: module.c: Unloading module-alsa-sink (index: #4). D: module-always-sink.c: Autoloading null-sink as no other sinks detected

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-10 Thread Michael Rans
tiemout=0 here: load-module module-suspend-on-idle But I still need to go via the rate converter to the a52 encoder in asoundrc. Cheers, Mike From: Michael Rans mcar...@yahoo.co.uk To: General PulseAudio Discussion pulseaudio-discuss@mail.0pointer.de Sent: Sat, 10

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-10 Thread Michael Rans
My default.pa line has rate set at 48000 which I guess would take precedence: load-module module-alsa-sink device=Filter_RateConvert rate=48000 sink_properties=device.description=SPDIF sink_name=SPDIF) But just in case, I tried changing default-sample-rate = 48000 in daemon.conf. The error I

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-11 Thread Michael Rans
.0pointer.de Sent: Sun, 11 July, 2010 6:47:14 Subject: Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support On Sat, 2010-07-10 at 15:40 +, Michael Rans wrote: Regarding AC3 encoding in Pulseaudio - it would be better because at the moment switching between stereo and A52 is not possible (ie

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-11 Thread Michael Rans
On Sun, 2010-07-11 at 08:43 +, Michael Rans wrote: At the moment I can switch between A52 and stereo SPDIF but it requires file editing and restarting Pulseaudio. 1. I haven't tried the new profiles yet - does this mean with the profiles in a GUI, I would be able to switch from A52

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-11 Thread Michael Rans
. From: Tanu Kaskinen ta...@iki.fi To: pulseaudio-discuss@mail.0pointer.de Sent: Sun, 11 July, 2010 7:48:15 Subject: Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support On Sun, 2010-07-11 at 09:10 +0300, Tanu Kaskinen wrote: On Sat, 2010-07-10 at 13:24 +, Michael Rans wrote: I

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-11 Thread Michael Rans
, Mike From: Tanu Kaskinen ta...@iki.fi To: pulseaudio-discuss@mail.0pointer.de Sent: Sun, 11 July, 2010 12:23:25 Subject: Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support On Sun, 2010-07-11 at 09:26 +, Michael Rans wrote: That's the the problem

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-11 Thread Michael Rans
(). Aborting. Assuming this is not just my system's problem, this would be why a Pulseaudio A52 plugin would be better. Cheers, Mike From: Michael Rans mcar...@yahoo.co.uk To: General PulseAudio Discussion pulseaudio-discuss@mail.0pointer.de Sent: Sun, 11 July, 2010 18

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-11 Thread Michael Rans
in Pulseaudio with switchable channel maps so that there's one sink. I'll see how much further I can get with this. Cheers, Mike From: Michael Rans mcar...@yahoo.co.uk To: General PulseAudio Discussion pulseaudio-discuss@mail.0pointer.de Sent: Sun, 11 July

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-11 Thread Michael Rans
Finally I got it all working! These are the steps on Ubuntu Lucid 10.04 LTS: 1. Open from Pulse source code: src/modules/alsa/alsa-sink.c 2. Replace: pa_sink_set_max_rewind(u-sink, u-hwbuf_size); with: if(strcmp(u-device_name, a52) == 0) { pa_sink_set_max_rewind(u-sink, 0);

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-12 Thread Michael Rans
On Sun, 2010-07-11 at 19:25 +, Michael Rans wrote: Frankly, I think it would be much better to have A52 in Pulseaudio with switchable channel maps so that there's one sink. Why is it so important to have only one sink? What's wrong with changing profiles? -- Tanu Kaskinen

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-12 Thread Michael Rans
Cool - I'm glad you got rid of the a52 string check hack. I didn't have the line pa_sink_set_max_rewind_within_thread(u-sink, u-hwbuf_size); I guess the version of Pulseaudio source code in Lucid is much older than yours? Anyway I did have the line with pa_sink_set_max_request_within_thread so

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-12 Thread Michael Rans
You're welcome. This may be an obvious question, but what is the @args.0 { type integer } for? Is that what you meant by Adding the argument removes the need to exit the profile. and if you did, I didn't understand at what point I had to exit the profile. Can you explain? Sorry if

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-13 Thread Michael Rans
# Encode AC3 - Directly on hardware # with Rate Converter to 48kHz, needed for some applications pcm.a52 { @args [ CARD ] @args.CARD { type integer } type rate slave { pcm { type a52 bitrate 448 channels 6 card

Re: [pulseaudio-discuss] {PATCH][RFC] AC3 passthrough support

2010-07-13 Thread Michael Rans
Strange - $CARD really won't work on my setup - it fails to create an a52 device. Can anyone else get it working? On Lucid? I tried it in ~/.asoundrc, /etc/asound.conf and /usr/share/alsa/alsa.conf and no luck. Cheers, Mike From: pl bossart

[pulseaudio-discuss] Cannot have iec958:0 and a52:0 simultaneously?

2010-07-14 Thread Michael Rans
I have a theory that the $CARD doesn't work for me and may not for others because of the way in which the %f in a52:%f is generated. Would I be right in saying that %f is incremented for each source or sink ie. you cannot have both iec958:0 and a52:0? I see in my logs: I: alsa-source.c:

Re: [pulseaudio-discuss] Cannot have iec958:0 and a52:0 simultaneously?

2010-07-14 Thread Michael Rans
bossart bossart.nos...@gmail.com To: General PulseAudio Discussion pulseaudio-discuss@mail.0pointer.de Sent: Wed, 14 July, 2010 22:30:15 Subject: Re: [pulseaudio-discuss] Cannot have iec958:0 and a52:0 simultaneously? On Wed, Jul 14, 2010 at 2:10 PM, Michael Rans mcar...@yahoo.co.uk wrote: I have

Re: [pulseaudio-discuss] Cannot have iec958:0 and a52:0 simultaneously?

2010-07-15 Thread Michael Rans
There's a 'Hardware' tab in g-v-c where you can select a profile for each available card (be it a sound card, a headset, usb speakers or a webcam). System-Preferences-Sound in Lucid has Hardware tab with profiles so I think it is the Gnome volume control you talk about. And even better it has

Re: [pulseaudio-discuss] Anyone heard of RoarAudio?

2010-08-06 Thread Michael Rans
Oh no - not another Linux sound server. I think in the Linux audio world there must be too many of the kind of people who believe in directional speaker cables :-) From: Colin Guthrie gm...@colin.guthr.ie To: pulseaudio-discuss@mail.0pointer.de Cc:

Re: [pulseaudio-discuss] a52: Good work.

2010-08-09 Thread Michael Rans
You might want to look at https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/348353/comments/35 - Danny Wood packaged up the steps I described in the previous comment in a PPA which would save you recompiling Pulseaudio. The only thing missing from it is the a52 Alsa plugin. Cheers,