From alsa-devel-owner@alsa.jcu.cz  Tue Oct  6 23:21:06 1998
Received: from smtp1.xs4all.nl (smtp1.xs4all.nl [194.109.6.51])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id XAA07491
	for <alsa-devel@jcu.cz>; Tue, 6 Oct 1998 23:20:41 +0200
Received: from orbital (arloafoe@orbital.xs4all.nl [194.109.37.98])
	by smtp1.xs4all.nl (8.8.8/8.8.8) with SMTP id XAA17232
	for <alsa-devel@jcu.cz>; Tue, 6 Oct 1998 23:20:41 +0200 (CEST)
Date: Tue, 6 Oct 1998 23:21:34 +0200 (CEST)
From: Andy Lo A Foe <arloafoe@cs.vu.nl>
To: alsa-devel@jcu.cz
Subject: Re: AlsaPlayer threaded
In-Reply-To: <Pine.LNX.4.03.9810052018050.2151-100000@rdaneel.dyn.ml.org>
Message-ID: <Pine.LNX.3.96.981006230459.26369A-100000@orbital>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

On Mon, 5 Oct 1998, Brion Vibber wrote:

> It pops up with a few windows and immediately dies with this kind
> of message:
> 
> Frame size in bytes = 4608
> nr_frames = 17816 (bitrate = 128, secs=465.42 size=7446651)
> In producer_func...
> Successfully opened and configged /dev/sndpcm00
> Current sched style = 0
> Doing conservative buffering
> Sorry, this is the 16-bit depth handler
> 
> ** ERROR **: an x io error occurred
> aborting...
> Aborted
> Depth = 24

Oops :) .. This was a hardcoded exit(1) call in the scope setup function.
The X Window System  has this annoying "feature" where you have to write
code to handle each bit-depth (so you get some code for 8-bit, some for 16
and some for 24/32), that sucks a bit. I've completed versions for 16 and
24/32 bpp screen for all scopes except for the FFTscope. The 24/32-bit
version crashes. Anyhow, the new snapshot should run on a 32bpp
displays just fine ..thanks for reporting this...

Okay, tonights snapshot contains:

- fixed bit depth problem, see above. All scopes are visible in 16bpp.
  All except fftscope in 32bpp
- The play/stop button works! Woohoo :) you can restart a song after
  its finished. Next step is to put up a dialog on the play_button so you
  won't have to supply a file on the command line. The playlist is coming,
  yes (the most boring coding part in a player probably :)
- Playlist button does something! It pops up and hides the (still
  nonfunctional) Playlist window. The window remembers  its position on
  the screen.  
- Scopes are drawn in gtk_windows instead of gdk_windows
- Miniscule optimizations here and there

Please check it out, sorry for the large static binary...

http://orbital.xs4all.nl/alsa/ 
(trailing / is needed!)

or 

ftp://orbital.xs4all.nl/pub/alsa/

There is also a screenshot at http://orbital.xs4all.nl/alsa/alsaplayer.gif
It's a spoiler though, you have to try it yourself first!

Thanks,

Andy
--
Andy Lo A Foe, arloafoe@cs.vu.nl |  Linux v2.1.124  | PII 266 
http://www.cs.vu.nl/~arloafoe    | GSM: 0622-440695 | Bebox 133
http://orbital.xs4all.nl/andy    |   ICQ: 7472949   | IRCNet: Adnans


