1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-27 00:07:17 +02:00

Upgraded flac to 1.3.1

This commit is contained in:
Leland Lucius
2015-05-01 03:33:07 -05:00
parent 423bc8ac4d
commit 4d08ed4287
825 changed files with 95569 additions and 26009 deletions

View File

@@ -1,6 +1,6 @@
/* flactimer - Runs a command and prints timing information
* Copyright (C) 2007-2009 Josh Coalson
* Copyright (C) 2011-2013 Xiph.Org Foundation
* Copyright (C) 2011-2014 Xiph.Org Foundation
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -17,15 +17,16 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <string.h>
#include <windows.h>
#include "share/compat.h"
#include "share/safe_str.h"
#define int64_t __int64
#define uint64_t unsigned int64_t
static inline uint64_t time2nsec(const FILETIME &t)
{
uint64_t n = t.dwHighDateTime;
@@ -36,7 +37,7 @@ static inline uint64_t time2nsec(const FILETIME &t)
static void printtime(FILE *fout, uint64_t nsec, uint64_t total)
{
unsigned pct = (unsigned)(100.0 * ((double)(int64_t)nsec / (double)(int64_t)total));
unsigned pct = (unsigned)(100.0 * ((double)nsec / (double)total));
uint64_t msec = nsec / 1000000; nsec -= msec * 1000000;
uint64_t sec = msec / 1000; msec -= sec * 1000;
uint64_t min = sec / 60; sec -= min * 60;