~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to README

  • Committer: Osmo Antero
  • Date: 2011-09-18 09:13:24 UTC
  • Revision ID: osmoma@gmail.com-20110918091324-wosqw4bzzhhyqz6m
VersionĀ 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
Then run astyle command from the base (audio-recorder) directory.
184
184
 
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]
187
187
 
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]
190
190
 
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.
233
234
 
234
235
Sample usage:
235
236
audio-recorder --show-window=1 --show-icon=0
236
237
 
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. 
241
242
 
 
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".
 
247
 
 
248
Sample usage:
 
249
status=$(audio-recorder --command status)
 
250
echo $status
 
251
 
 
252
audio-recorder --command start
 
253
audio-recorder --command stop+show
 
254
audio-recorder --command quit
 
255
 
242
256
Ready-made Debian/Ubuntu packages:
243
257
**********************************
244
258
https://launchpad.net/~osmoma/+archive/audio-recorder