183
183
Then run astyle command from the base (audio-recorder) directory.
185
185
For a single file (eg. audio-source.[ch]), run
186
astyle --brackets=attach --indent=spaces=4 --recursive --suffix=none src/audio-source.[ch]
186
astyle --brackets=attach --indent=spaces=4 --suffix=none src/audio-source.[ch]
188
188
For all source files, run
189
astyle --brackets=attach --indent=spaces=4 --recursive --suffix=none src/*.[ch]
189
astyle --brackets=attach --indent=spaces=4 --suffix=none src/*.[ch]
191
191
During development:
192
192
*******************
230
230
-w, --show-window Show application window at startup (0=hide main window, 1=force display of main window).
231
231
-i, --show-icon Show icon on the system tray (0=hide icon, 1=force display of icon).
232
232
-d, --debug-signal List signal level values in a terminal window (0=do not list values, 1=list values).
233
-c, --command Send a command to the recorder; identity|status|start|stop|pause|show|hide|quit.
235
236
audio-recorder --show-window=1 --show-icon=0
237
The --show-window and --show-icon are self explanatory.
238
The --show-window, --show-icon are self explanatory.
238
239
The --debug-signal option can help you to study the signal level from microphones and webcams.
239
240
The listing will print out several level values that can help to set the decibel (dB) value for the timer commands.
240
241
The "Average RMS" value is the most important. The values are collected by src/listener.c.
243
The --command <arg> sends a command to the recorder. With this you can easily stop, start or pause
244
recording from command line.
245
The identity command (--command identity) returns program name and version number.
246
The status command (--command status) returns the current recording state; "not running", "on", "off" or "paused".
249
status=$(audio-recorder --command status)
252
audio-recorder --command start
253
audio-recorder --command stop+show
254
audio-recorder --command quit
242
256
Ready-made Debian/Ubuntu packages:
243
257
**********************************
244
258
https://launchpad.net/~osmoma/+archive/audio-recorder