spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit b75776bc7cbd6603d90d3607d7d95461b9024cc8
parent 20ea067403d0d891a5c52e538f4a0816c2661a43
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Tue, 27 Jul 2010 10:36:52 +1000

Round the bitrate

Diffstat:
Msrc/spek-pipeline.vala | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/spek-pipeline.vala b/src/spek-pipeline.vala @@ -66,7 +66,7 @@ namespace Spek { items += cx.codec_name; } if (cx.bit_rate != 0) { - items += _("%d kbps").printf (cx.bit_rate / 1000); + items += _("%d kbps").printf ((cx.bit_rate + 500) / 1000); } if (cx.sample_rate != 0) { items += _("%d Hz").printf (cx.sample_rate);