File: README

package info (click to toggle)
sfront 0.99-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,288 kB
  • sloc: ansic: 113,695; haskell: 2,230; makefile: 1,226; objc: 677; yacc: 325; sh: 3
file content (69 lines) | stat: -rw-r--r-- 2,310 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

This example is a simple reverb unit, that takes audio input from the
microphone input and plays a reverberated version through the
speakers. Beware of acoustic feedback when running this example.

The test this program under Linux, type "make" in this directory to
run the example. Use a mixer program like xmixer to select sources and
adjust the volume to avoid feedback.

To test this program under Macintosh OS X, copy the Makefile.osx file
to Makefile, and then type "make".

To test this program under IRIX, HPUX, or FreeBSD, see the Makefile
for modification details.


Testing under Windows MultiMedia Extension library
--------------------------------------------------

Note that this example has not been tested yet under Windows;
please send back bugs and performance reports. Thanks!


The simplest test under Microsoft Windows uses the Windows MultiMedia
Extension library, via the PortAudio library. First, run sfront:

sfront -ain pa_win_wmme -aout pa_win_wmme -orc linain.saol -sco linain.sasl

And then compile the sa.c file using either gcc:

             gcc -O3 sa.c -lm -lwinmm -o sa.exe

or Microsoft Visual C++:

             cl sa.c winmm.lib -o sa.exe

Execute the sa.exe file to stream the audio. Rerun sfront using the
-latency t flag, where t is a floating-point constant with units of
seconds, to test the latency behavior of the program.


Testing under Windows DirectSound
---------------------------------

Sfront also supports the Windows DirectSound system, via the Portaudio
library. To use DirectSound, you'll need a recent version of Developer
Microsoft Directsound installed on your machine, available from

            http://www.microsoft.com/directx/download.asp

To use sfront with Directsound, first run sfront:

sfront -ain pa_win_ds -aout pa_win_ds -orc linain.saol -sco linain.sasl

And then compile the sa.c file using Microsoft Visual C++:

         cl sa.c dsound.lib dxguid.lib winmm.lib -o sa.exe

Execute the sa.exe file to stream the audio. 

If you have trouble with compilation, see this FAQ for DirectSound
installation issues:

http://msdn.microsoft.com/library/default.asp?URL=/library/techart/DirectX8faq.htm

Note gcc probably won't compile DirectSound, but you can try it using:

     gcc -O3 sa.c -lm -lwinmm -ldsound -ldxguid -lwinmm -o sa.exe