Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.         dither: Generate noise for dithering / noise shaping.
  3.  
  4.         copyright 2009 by the mpg123 project - free software under the terms of the LGPL 2.1
  5.         see COPYING and AUTHORS files in distribution or http://mpg123.org
  6.         initially written by Taihei Monma
  7. */
  8.  
  9. #ifndef MPG123_DITHER_H
  10. #define MPG123_DITHER_H
  11.  
  12. #define DITHERSIZE 65536
  13. enum mpg123_noise_type
  14. {
  15.          mpg123_white_noise = 0
  16.         ,mpg123_tpdf_noise
  17.         ,mpg123_highpass_tpdf_noise
  18. };
  19.  
  20. void mpg123_noise(float* table, size_t count, enum mpg123_noise_type noisetype);
  21. void dither_table_init(float *dithertable);
  22.  
  23. #endif
  24.