Hello!

I've tried to use ESD with Soundflower to produce spectrograms using extace
which monitors an ESD session. A few secs after the playback is started, a
sound looping develops, with increasing volume and clipping. See this
scenario:
- Audio software (in my case, Cog) outputs to the default output device,
which is Soundflower
- Soundflower mirrors its input to its output
- esdrec is recording on Soundflower output and sends the result down to
esdcat through a pipe
- esdcat plays the stream on the default sound output, which is Soundflower
= LOOPING

(I know it would be nicer to add a coreaudio driver to extace, this will be
my next project)

To eliminate this looping, I've removed the -d option, and added -di and -do
options.
-di can be used to specify an input device, like "Soundflower (2ch)"
(quoation marks are necessary because of the space)
-do can be used to specify an output device, like "Built-in Audio"

audio_coreaudio.c has now a find_device routine, which tries to find a
device with the given name, if any, and when no driver was specified or
found, the default input/output device is used.

And a device enumeration routine has been added to audio_coreaudio.c, too.
See esd -h for a list.

Things I've not done:
- modify other audio drivers to use separate devices
- modify manual
- redesign parameter handling code (too ugly, main problem is that text with
quoation marks cannot be put to esd.conf)

A patch migrated with the current fink patch and patchscript is attached.

Bye,
Patrik Kluba
--
Package manager version: 0.27.3
Distribution version: 0.8.1.rsync powerpc
Mac OS X version: 10.4.10
Xcode version: 2.4.1
gcc version: 4.0.1 (Apple Computer, Inc. build 5367)
make version: 3.80

Attachment: esound-0.2.36-separate_devices.patch
Description: Binary data

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to