Skip to content

Commit

Permalink
vlc_aout: remove comments copied from libmad
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Dec 21, 2012
1 parent 701a99a commit 4440bb6
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions include/vlc_aout.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,31 +76,9 @@
|| ((p_format)->i_format == VLC_CODEC_A52) \
|| ((p_format)->i_format == VLC_CODEC_DTS) )

/* This is heavily borrowed from libmad, by Robert Leslie <[email protected]> */
/*
* Fixed-point format: 0xABBBBBBB
* A == whole part (sign + 3 bits)
* B == fractional part (28 bits)
*
* Values are signed two's complement, so the effective range is:
* 0x80000000 to 0x7fffffff
* -8.0 to +7.9999999962747097015380859375
*
* The smallest representable value is:
* 0x00000001 == 0.0000000037252902984619140625 (i.e. about 3.725e-9)
*
* 28 bits of fractional accuracy represent about
* 8.6 digits of decimal accuracy.
*
* Fixed-point numbers can be added or subtracted as normal
* integers, but multiplication requires shifting the 64-bit result
* from 56 fractional bits back to 28 (and rounding.)
*/
typedef int32_t vlc_fixed_t;
#define FIXED32_FRACBITS 28
#define FIXED32_MIN ((vlc_fixed_t) -0x80000000L)
#define FIXED32_MAX ((vlc_fixed_t) +0x7fffffffL)
#define FIXED32_ONE ((vlc_fixed_t) 0x10000000)
#define FIXED32_ONE (1 << FIXED32_FRACBITS)

/* Values used for the audio-device and audio-channels object variables */
#define AOUT_VAR_MONO 1
Expand Down

0 comments on commit 4440bb6

Please sign in to comment.