|
From: Collin S. <col...@co...> - 2002-09-09 18:25:14
|
man, 2002-09-09 kl. 12:13 skrev Michael Gilfix: > Hey Xavier. This is on my TODO list as one of the things I'd like > to do. I think I can give you a quick hack though that should get you > outputing to a file that you can use for the transmission. > > Here are the steps: > > * Edit oss.c (0.5.x) > * Put a #if 0/ #endif around the contents of soundSetFormat() > * Recompile peepd > * Run with: ./peepd --snd-device=output-stream.snd > > That will output raw output to the "output-stream.snd" file. You > can then an adapter application do a tail on the file and convert > the stream as it comes in for broadcasting. The format is 44100 Khz, > stereo, signed 16-bit raw (.snd) format. > > One reason this didn't exist in peep before though is that you > can use the existing infrastructure to accomplish the same thing. > Just run a peep server at each location where you want to listen > and configure the clients to talk to each of those servers. That > configuration works beautifully as auto-discovery will take care > of it all and little configuration effort is necessary. > > This, however, is not an option if your clients are windows as peepd > doesn't run on windows. The hack should get you up and running. If > you're interested in integrating this functionality, I'd love a patch > :) Lemme know how it works out. > > -- Mike You may have to check the docs to make sure I'm right (it's been a while since I've used it) but with a raw sound file I think you can listen to it with something like bplay -S -s 44100 -b 16 output-stream.snd Check out http://www.amberdata.demon.co.uk/bplay/ for more info. -me -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Collin Starkweather http://www.collinstarkweather.com Consulting Software Engineer col...@co... Ph.D. Candidate University of Colorado Department of Economics ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |