[asterisk-commits] russell: branch russell/jack r95507 - /team/russell/jack/channels/chan_console.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 31 15:29:11 CST 2007


Author: russell
Date: Mon Dec 31 15:29:10 2007
New Revision: 95507

URL: http://svn.digium.com/view/asterisk?view=rev&rev=95507
Log:
Adjust doxygen comments to reflect changes to support 16 kHz audio.

Modified:
    team/russell/jack/channels/chan_console.c

Modified: team/russell/jack/channels/chan_console.c
URL: http://svn.digium.com/view/asterisk/team/russell/jack/channels/chan_console.c?view=diff&rev=95507&r1=95506&r2=95507
==============================================================================
--- team/russell/jack/channels/chan_console.c (original)
+++ team/russell/jack/channels/chan_console.c Mon Dec 31 15:29:10 2007
@@ -66,27 +66,18 @@
 
 /*! 
  * \brief The sample rate to request from PortAudio 
- *
- * \note This should be changed to 16000 once there is a translator for going
- *       between SLINEAR and SLINEAR16.  Making it a configuration parameter
- *       would be even better, but 16 kHz should be the default.
- *
- * \note If this changes, NUM_SAMPLES will need to change, as well.
  */
 #define SAMPLE_RATE      16000
 
 /*! 
  * \brief The number of samples to configure the portaudio stream for
  *
- * 160 samples (20 ms) is the most common frame size in Asterisk.  So, the code
- * in this module reads 160 sample frames from the portaudio stream and queues
- * them up on the Asterisk channel.  Frames of any sizes can be written to a
+ * 320 samples (20 ms) is the most common frame size in Asterisk.  So, the code
+ * in this module reads 320 sample frames from the portaudio stream and queues
+ * them up on the Asterisk channel.  Frames of any size can be written to a
  * portaudio stream, but the portaudio documentation does say that for high
  * performance applications, the data should be written to Pa_WriteStream in
  * the same size as what is used to initialize the stream.
- *
- * \note This will need to be dynamic once the sample rate can be something
- *       other than 8 kHz.
  */
 #define NUM_SAMPLES      320
 
@@ -198,8 +189,6 @@
 
 /*!
  * \brief Formats natively supported by this module.
- *
- * \note Once 16 kHz is supported, AST_FORMAT_SLINEAR16 needs to be added.
  */
 #define SUPPORTED_FORMATS ( AST_FORMAT_SLINEAR16 )
 




More information about the asterisk-commits mailing list