Re: ogle with sndio, big endian

2010-06-25 Thread Jacob Meuser
On Sat, Jun 26, 2010 at 12:19:34AM -0400, Michael Small wrote:
> 
> After upgrading to 4.7, ogle gave only noise when playing dvds on my
> powermac.  The change below fixed it for me:
> 
> diff -uNr --exclude=CVS ogle.orig/patches/patch-libogleao_obsd_audio_c 
> ogle/patches/patch-libogleao_obsd_audio_c
> --- ogle.orig/patches/patch-libogleao_obsd_audio_cFri Jun 25 23:58:45 2010
> +++ ogle/patches/patch-libogleao_obsd_audio_c Fri Jun 25 23:27:07 2010
> @@ -88,7 +88,7 @@
>  +
>  +  par.bits = audio_info->sample_resolution;
>  +  par.sig = 1;
> -+  par.le = 1;
> ++  par.le = SIO_LE_NATIVE;
>  +  par.pchan = audio_info->channels;
>  +  par.rate = audio_info->sample_rate;
>  +  par.appbufsz = par.rate / 4;

thanks.  didn't/don't have a DVD drive in a big endian machine to test,
but that certainly makes sense.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



ogle with sndio, big endian

2010-06-25 Thread Michael Small

After upgrading to 4.7, ogle gave only noise when playing dvds on my
powermac.  The change below fixed it for me:

diff -uNr --exclude=CVS ogle.orig/patches/patch-libogleao_obsd_audio_c 
ogle/patches/patch-libogleao_obsd_audio_c
--- ogle.orig/patches/patch-libogleao_obsd_audio_c  Fri Jun 25 23:58:45 2010
+++ ogle/patches/patch-libogleao_obsd_audio_c   Fri Jun 25 23:27:07 2010
@@ -88,7 +88,7 @@
 +
 +  par.bits = audio_info->sample_resolution;
 +  par.sig = 1;
-+  par.le = 1;
++  par.le = SIO_LE_NATIVE;
 +  par.pchan = audio_info->channels;
 +  par.rate = audio_info->sample_rate;
 +  par.appbufsz = par.rate / 4;


-- 
Mike Small
sma...@panix.com