Summary: | DAHTOOL-00030: [patch] allow dahdi_monitor to record directly to .wav files | ||
Reporter: | Michael Spiceland (mspiceland) | Labels: | |
Date Opened: | 2009-06-10 11:15:12 | Date Closed: | 2009-06-23 18:45:22 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | NewFeature |
Versions: | 2.1.0 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ( 0) dahdi_monitor_wav_export.patch | |
Description: | Currently dahdi_monitor can record to raw uncompressed 16-bit signed 8khz files. When troubleshooting, it is often useful to open up the recoded files into external programs for analysis where these raw files are either unsupported or it is inconvenient to import the raw files. For this reason, recording the uncompressed audio directly to .wav files would be useful. I will attach a patch that allows one to save the recordings as .wav files. The audio is still the same uncompressed PCM format. If the user provides filenames with .wav, it prepends the file with the proper header info. A new signal handler is installed so that when the user hits cntrl-c to exit, it will break out of the main loop and give the dahdi_monitor an opportunity to go back to the recorded files and insert the proper size information into the header. | ||
Comments: | By: Digium Subversion (svnbot) 2009-06-23 18:45:22 Repository: dahdi Revision: 6709 U tools/trunk/dahdi_monitor.c ------------------------------------------------------------------------ r6709 | sruffell | 2009-06-23 18:45:21 -0500 (Tue, 23 Jun 2009) | 8 lines dahdi_monitor: Allow dahdi_monitor to save recordings in wav format. This is a patch that will allow dahdi_monitor to save recordings directly in wav format for convenience. If the output files extension is '.wav', dahdi_monitor will add the wave header onto the output file. (closes issue DAHTOOL-30) Patch by: mspiceland ------------------------------------------------------------------------ http://svn.digium.com/view/dahdi?view=rev&revision=6709 |