forked from videolan/vlc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vlc_aout: remove comments copied from libmad
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|