Re: [ecasound] ecasound wish request

New Message Reply Date view Thread view Subject view Author view Other groups

Subject: Re: [ecasound] ecasound wish request
From: Kai Vehmanen (k@eca.cx)
Date: Wed Oct 18 2000 - 22:32:07 EEST


On Tue, 17 Oct 2000, Lindsay Haisley wrote:

> I need some way of making ecasound flush its output buffer after each
> console write, regardless of the context. I've tried a number of silly
[...]
> Ideally, I'd like to be able to make ecasound output unbuffered, line by
> line, without bolding, to stderr, as do lame and cdparanoia. mp3c reads the
> stderr stream rather than stdout when monitoring child processes.

Uhm, this should be easy as the code is already there. All output from
libecasound is sent to a debug object. And like many other parts of
ecasound, also debugging system is modular - ie. you can implement
custom debug-objects. There's currently three different versions
implemented:

1) ecasound/libecasound/eca-debug.cpp
- this is the simplest debug object
- outputs everything to stderr without any ncurses stuff
2) ecasound/ecasound/textdebug.cpp
- this is the ncurses based debug object which is used
  by ecasound itself
3) qtecasound/qtecasound/debug_if.cpp
- this a Qt-based widget used by qtecasound

... ok, so all we need to do is to add a command-line option to ecasound
which will disable the use of (2). Suggestions... hmm, maybe a second
parameter to -d ... so -d:255,0 would use (2) and enable all debug
messages while -d:255,1 would use (1)...?

-- 
 . http://www.eca.cx ... [ audio software for linux ] /\ . 
 . http://www.eca.cx/aivastus ... [ aivastus net radio ] /\ . 
 . http://www.eca.cx/sculpscape [ my armchair-tunes mp3/ra/wav ]

-- To unsubscribe send message 'unsubscribe' in the body of the message to <ecasound-list-request@wakkanet.fi>.


New Message Reply Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Oct 19 2000 - 01:55:59 EEST