William Hubbs
61aac5ecb5
moved some variables
...
This commit removes the softsynth file descriptor and the debug flag
from the synth structure. These will need to be accessed from a signal
handler and there is no way to pass the structure to it.
Also, the process_data function now works with local variables and assigns
them to the synth structure, avoiding allocating a buffer with malloc/free.
2008-07-31 08:47:00 -05:00
William Hubbs
eb5cb3d36d
fixed volume
...
I applied another patch from Kirk Reiser which fixes the volume setting.
Thanks to Kirk for the patch.
2008-07-31 08:24:57 -05:00
William Hubbs
7604cac68c
fixed the garbage characters bug
...
This fixes the bug that was causing garbage characters to be spoken. Also
it sets the initial voice to "default".
2008-07-30 08:51:23 -05:00
William Hubbs
b745e0c48b
more error checking
...
I moved the read call out of process_data and into the main loop.
Also, error checking was added for select() and read().
2008-07-29 22:58:41 -05:00
William Hubbs
c3b0e8d0da
code cleanup
...
This patch adds the length of the buffer to the synth structure and
clears the buffer before we use it.
Thanks to Kirk Reiser for the patch.
2008-07-29 20:00:04 -05:00
William Hubbs
c4839ac78b
added maxBufferSize constant
2008-07-28 08:58:32 -05:00
William Hubbs
754358f173
added cli option support
...
This commit adds support for command line options and also adds a debug option.
2008-07-28 08:39:19 -05:00
William Hubbs
572f333378
added volume support
...
I added support for setting the volume.
2008-07-28 07:20:46 -05:00
William Hubbs
4e3bbdb0b0
initial import
2008-07-28 01:23:43 -05:00