Want more features on Pastebin? Sign Up, it's FREE!
Guest

gnuradio_gri_wav-v0.1.patch

By: a guest on Jun 8th, 2012  |  syntax: None  |  size: 1.27 KB  |  views: 105  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. root@bt:~# cat gnuradio_gri_wav-v0.1.patch
  2. --- gnuradio/gnuradio-core/src/lib/io/gri_wavfile.h     2012-06-08 19:14:37.901973650 -0400
  3. +++ /media/PENDRIVE/gnuradio.built.withfix/gnuradio-core/src/lib/io/gri_wavfile.h       2012-06-08 17:48:36.000000000 -0400
  4. @@ -46,7 +46,7 @@
  5.   * \return True on a successful read, false if the file could not be read or is
  6.   *         not a valid WAV file.
  7.   */
  8. -bool
  9. +GR_CORE_API bool
  10.  gri_wavheader_parse(FILE *fp,
  11.                     unsigned int &sample_rate,
  12.                     int &nchans,
  13. @@ -60,7 +60,7 @@
  14.   *
  15.   * Takes care of endianness.
  16.   */
  17. -short int
  18. +GR_CORE_API short int
  19.  gri_wav_read_sample(FILE *fp, int bytes_per_sample);
  20.  
  21.  
  22. @@ -71,7 +71,7 @@
  23.   * a-priori (file and chunk lengths). Use gri_wavheader_complete() to fill
  24.   * these in.
  25.   */
  26. -bool
  27. +GR_CORE_API bool
  28.  gri_wavheader_write(FILE *fp,
  29.                  unsigned int sample_rate,
  30.                  int nchans,
  31. @@ -82,7 +82,7 @@
  32.   *
  33.   * Takes care of endianness.
  34.   */
  35. -void
  36. +GR_CORE_API void
  37.  gri_wav_write_sample(FILE *fp, short int sample, int bytes_per_sample);
  38.  
  39.  
  40. @@ -97,5 +97,5 @@
  41.   * \p fp File pointer to an open WAV file with a blank header
  42.   * \p byte_count Length of all samples written to the file in bytes.
  43.   */
  44. -bool
  45. +GR_CORE_API bool
  46.  gri_wavheader_complete(FILE *fp, unsigned int byte_count);
clone this paste RAW Paste Data