[MPlayer-dev-eng] [BUG] in floating numbers handling
Artem Astafyev
ace at insurer.com.ua
Thu Jul 15 11:29:52 CEST 2004
While experimenting with pan filter, I've messed with strange behaviour
with floating numbers. The problem is that not in all locales decimal
point delimeter is dot. For example, I use ru_RU locale and decimal
point delimeter is coma. So I get such things, which many users noted:
LANG=ru_RU;mplayer -ao alsa9:surround51 -af pan=3:1:0:0:1:0.5:0.5 -v
-channels 3 movie.avi
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/3ch/16bit...
[libaf] Adding filter pan
[pan] Pan level from channel 0 to channel 0 = 1,000000
[pan] Pan level from channel 1 to channel 0 = 0,000000
[pan] Pan level from channel 2 to channel 0 = 0,000000
[pan] Pan level from channel 0 to channel 1 = 1,000000
[pan] Pan level from channel 1 to channel 1 = 0,000000
[libaf] Adding filter format
[format] Changing sample format from 16bit little endian signed int to
32bit little endian float
AF_pre: af format: 4 bps, 3 ch, 48000 hz, little endian float
LANG=;mplayer -ao alsa9:surround51 -af pan=3:1:0:0:1:0.5:0.5 -v
-channels 3 movie.avi
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/3ch/16bit...
[libaf] Adding filter pan
[pan] Pan level from channel 0 to channel 0 = 1.000000
[pan] Pan level from channel 1 to channel 0 = 0.000000
[pan] Pan level from channel 2 to channel 0 = 0.000000
[pan] Pan level from channel 0 to channel 1 = 1.000000
[pan] Pan level from channel 1 to channel 1 = 0.500000
[pan] Pan level from channel 2 to channel 1 = 0.500000
[libaf] Adding filter format
[format] Changing sample format from 16bit little endian signed int to
32bit little endian float
AF_pre: af format: 4 bps, 3 ch, 48000 hz, little endian float
Maybe this must be noted in documentation? From other side, I can't use
comas in this case, because coma separates filters names. Or just set
decimal point delimeter to dot, because it reflects not only on pan
filter, but on all floating point numbers?
--
Best regards,
Artem Astafyev
More information about the MPlayer-dev-eng
mailing list