1c74663799493f2b1e6123c18def94295d0afab7Kenny Root/* libFLAC - Free Lossless Audio Codec library 2c74663799493f2b1e6123c18def94295d0afab7Kenny Root * Copyright (C) 2006,2007 Josh Coalson 3c74663799493f2b1e6123c18def94295d0afab7Kenny Root * 4c74663799493f2b1e6123c18def94295d0afab7Kenny Root * Redistribution and use in source and binary forms, with or without 5c74663799493f2b1e6123c18def94295d0afab7Kenny Root * modification, are permitted provided that the following conditions 6c74663799493f2b1e6123c18def94295d0afab7Kenny Root * are met: 7c74663799493f2b1e6123c18def94295d0afab7Kenny Root * 8c74663799493f2b1e6123c18def94295d0afab7Kenny Root * - Redistributions of source code must retain the above copyright 9c74663799493f2b1e6123c18def94295d0afab7Kenny Root * notice, this list of conditions and the following disclaimer. 10c74663799493f2b1e6123c18def94295d0afab7Kenny Root * 11c74663799493f2b1e6123c18def94295d0afab7Kenny Root * - Redistributions in binary form must reproduce the above copyright 12c74663799493f2b1e6123c18def94295d0afab7Kenny Root * notice, this list of conditions and the following disclaimer in the 13c74663799493f2b1e6123c18def94295d0afab7Kenny Root * documentation and/or other materials provided with the distribution. 14c74663799493f2b1e6123c18def94295d0afab7Kenny Root * 15c74663799493f2b1e6123c18def94295d0afab7Kenny Root * - Neither the name of the Xiph.org Foundation nor the names of its 16c74663799493f2b1e6123c18def94295d0afab7Kenny Root * contributors may be used to endorse or promote products derived from 17c74663799493f2b1e6123c18def94295d0afab7Kenny Root * this software without specific prior written permission. 18c74663799493f2b1e6123c18def94295d0afab7Kenny Root * 19c74663799493f2b1e6123c18def94295d0afab7Kenny Root * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20c74663799493f2b1e6123c18def94295d0afab7Kenny Root * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21c74663799493f2b1e6123c18def94295d0afab7Kenny Root * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22c74663799493f2b1e6123c18def94295d0afab7Kenny Root * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR 23c74663799493f2b1e6123c18def94295d0afab7Kenny Root * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 24c74663799493f2b1e6123c18def94295d0afab7Kenny Root * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 25c74663799493f2b1e6123c18def94295d0afab7Kenny Root * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 26c74663799493f2b1e6123c18def94295d0afab7Kenny Root * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 27c74663799493f2b1e6123c18def94295d0afab7Kenny Root * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 28c74663799493f2b1e6123c18def94295d0afab7Kenny Root * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 29c74663799493f2b1e6123c18def94295d0afab7Kenny Root * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30c74663799493f2b1e6123c18def94295d0afab7Kenny Root */ 31c74663799493f2b1e6123c18def94295d0afab7Kenny Root 32c74663799493f2b1e6123c18def94295d0afab7Kenny Root#if HAVE_CONFIG_H 33c74663799493f2b1e6123c18def94295d0afab7Kenny Root# include <config.h> 34c74663799493f2b1e6123c18def94295d0afab7Kenny Root#endif 35c74663799493f2b1e6123c18def94295d0afab7Kenny Root 36c74663799493f2b1e6123c18def94295d0afab7Kenny Root#include <math.h> 37c74663799493f2b1e6123c18def94295d0afab7Kenny Root#include "FLAC/assert.h" 38c74663799493f2b1e6123c18def94295d0afab7Kenny Root#include "FLAC/format.h" 39c74663799493f2b1e6123c18def94295d0afab7Kenny Root#include "private/window.h" 40c74663799493f2b1e6123c18def94295d0afab7Kenny Root 41c74663799493f2b1e6123c18def94295d0afab7Kenny Root#ifndef FLAC__INTEGER_ONLY_LIBRARY 42c74663799493f2b1e6123c18def94295d0afab7Kenny Root 43c74663799493f2b1e6123c18def94295d0afab7Kenny Root#ifndef M_PI 44c74663799493f2b1e6123c18def94295d0afab7Kenny Root/* math.h in VC++ doesn't seem to have this (how Microsoft is that?) */ 45c74663799493f2b1e6123c18def94295d0afab7Kenny Root#define M_PI 3.14159265358979323846 46c74663799493f2b1e6123c18def94295d0afab7Kenny Root#endif 47c74663799493f2b1e6123c18def94295d0afab7Kenny Root 48c74663799493f2b1e6123c18def94295d0afab7Kenny Root 49c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_bartlett(FLAC__real *window, const FLAC__int32 L) 50c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 51c74663799493f2b1e6123c18def94295d0afab7Kenny Root const FLAC__int32 N = L - 1; 52c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 53c74663799493f2b1e6123c18def94295d0afab7Kenny Root 54c74663799493f2b1e6123c18def94295d0afab7Kenny Root if (L & 1) { 55c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n <= N/2; n++) 56c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = 2.0f * n / (float)N; 57c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (; n <= N; n++) 58c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = 2.0f - 2.0f * n / (float)N; 59c74663799493f2b1e6123c18def94295d0afab7Kenny Root } 60c74663799493f2b1e6123c18def94295d0afab7Kenny Root else { 61c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n <= L/2-1; n++) 62c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = 2.0f * n / (float)N; 63c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (; n <= N; n++) 64c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = 2.0f - 2.0f * (N-n) / (float)N; 65c74663799493f2b1e6123c18def94295d0afab7Kenny Root } 66c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 67c74663799493f2b1e6123c18def94295d0afab7Kenny Root 68c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_bartlett_hann(FLAC__real *window, const FLAC__int32 L) 69c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 70c74663799493f2b1e6123c18def94295d0afab7Kenny Root const FLAC__int32 N = L - 1; 71c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 72c74663799493f2b1e6123c18def94295d0afab7Kenny Root 73c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n < L; n++) 74c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = (FLAC__real)(0.62f - 0.48f * fabs((float)n/(float)N+0.5f) + 0.38f * cos(2.0f * M_PI * ((float)n/(float)N+0.5f))); 75c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 76c74663799493f2b1e6123c18def94295d0afab7Kenny Root 77c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_blackman(FLAC__real *window, const FLAC__int32 L) 78c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 79c74663799493f2b1e6123c18def94295d0afab7Kenny Root const FLAC__int32 N = L - 1; 80c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 81c74663799493f2b1e6123c18def94295d0afab7Kenny Root 82c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n < L; n++) 83c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = (FLAC__real)(0.42f - 0.5f * cos(2.0f * M_PI * n / N) + 0.08f * cos(4.0f * M_PI * n / N)); 84c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 85c74663799493f2b1e6123c18def94295d0afab7Kenny Root 86c74663799493f2b1e6123c18def94295d0afab7Kenny Root/* 4-term -92dB side-lobe */ 87c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_blackman_harris_4term_92db_sidelobe(FLAC__real *window, const FLAC__int32 L) 88c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 89c74663799493f2b1e6123c18def94295d0afab7Kenny Root const FLAC__int32 N = L - 1; 90c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 91c74663799493f2b1e6123c18def94295d0afab7Kenny Root 92c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n <= N; n++) 93c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = (FLAC__real)(0.35875f - 0.48829f * cos(2.0f * M_PI * n / N) + 0.14128f * cos(4.0f * M_PI * n / N) - 0.01168f * cos(6.0f * M_PI * n / N)); 94c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 95c74663799493f2b1e6123c18def94295d0afab7Kenny Root 96c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_connes(FLAC__real *window, const FLAC__int32 L) 97c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 98c74663799493f2b1e6123c18def94295d0afab7Kenny Root const FLAC__int32 N = L - 1; 99c74663799493f2b1e6123c18def94295d0afab7Kenny Root const double N2 = (double)N / 2.; 100c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 101c74663799493f2b1e6123c18def94295d0afab7Kenny Root 102c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n <= N; n++) { 103c74663799493f2b1e6123c18def94295d0afab7Kenny Root double k = ((double)n - N2) / N2; 104c74663799493f2b1e6123c18def94295d0afab7Kenny Root k = 1.0f - k * k; 105c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = (FLAC__real)(k * k); 106c74663799493f2b1e6123c18def94295d0afab7Kenny Root } 107c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 108c74663799493f2b1e6123c18def94295d0afab7Kenny Root 109c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_flattop(FLAC__real *window, const FLAC__int32 L) 110c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 111c74663799493f2b1e6123c18def94295d0afab7Kenny Root const FLAC__int32 N = L - 1; 112c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 113c74663799493f2b1e6123c18def94295d0afab7Kenny Root 114c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n < L; n++) 115c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = (FLAC__real)(1.0f - 1.93f * cos(2.0f * M_PI * n / N) + 1.29f * cos(4.0f * M_PI * n / N) - 0.388f * cos(6.0f * M_PI * n / N) + 0.0322f * cos(8.0f * M_PI * n / N)); 116c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 117c74663799493f2b1e6123c18def94295d0afab7Kenny Root 118c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_gauss(FLAC__real *window, const FLAC__int32 L, const FLAC__real stddev) 119c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 120c74663799493f2b1e6123c18def94295d0afab7Kenny Root const FLAC__int32 N = L - 1; 121c74663799493f2b1e6123c18def94295d0afab7Kenny Root const double N2 = (double)N / 2.; 122c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 123c74663799493f2b1e6123c18def94295d0afab7Kenny Root 124c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n <= N; n++) { 125c74663799493f2b1e6123c18def94295d0afab7Kenny Root const double k = ((double)n - N2) / (stddev * N2); 126c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = (FLAC__real)exp(-0.5f * k * k); 127c74663799493f2b1e6123c18def94295d0afab7Kenny Root } 128c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 129c74663799493f2b1e6123c18def94295d0afab7Kenny Root 130c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_hamming(FLAC__real *window, const FLAC__int32 L) 131c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 132c74663799493f2b1e6123c18def94295d0afab7Kenny Root const FLAC__int32 N = L - 1; 133c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 134c74663799493f2b1e6123c18def94295d0afab7Kenny Root 135c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n < L; n++) 136c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = (FLAC__real)(0.54f - 0.46f * cos(2.0f * M_PI * n / N)); 137c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 138c74663799493f2b1e6123c18def94295d0afab7Kenny Root 139c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_hann(FLAC__real *window, const FLAC__int32 L) 140c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 141c74663799493f2b1e6123c18def94295d0afab7Kenny Root const FLAC__int32 N = L - 1; 142c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 143c74663799493f2b1e6123c18def94295d0afab7Kenny Root 144c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n < L; n++) 145c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = (FLAC__real)(0.5f - 0.5f * cos(2.0f * M_PI * n / N)); 146c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 147c74663799493f2b1e6123c18def94295d0afab7Kenny Root 148c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_kaiser_bessel(FLAC__real *window, const FLAC__int32 L) 149c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 150c74663799493f2b1e6123c18def94295d0afab7Kenny Root const FLAC__int32 N = L - 1; 151c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 152c74663799493f2b1e6123c18def94295d0afab7Kenny Root 153c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n < L; n++) 154c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = (FLAC__real)(0.402f - 0.498f * cos(2.0f * M_PI * n / N) + 0.098f * cos(4.0f * M_PI * n / N) - 0.001f * cos(6.0f * M_PI * n / N)); 155c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 156c74663799493f2b1e6123c18def94295d0afab7Kenny Root 157c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_nuttall(FLAC__real *window, const FLAC__int32 L) 158c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 159c74663799493f2b1e6123c18def94295d0afab7Kenny Root const FLAC__int32 N = L - 1; 160c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 161c74663799493f2b1e6123c18def94295d0afab7Kenny Root 162c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n < L; n++) 163c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = (FLAC__real)(0.3635819f - 0.4891775f*cos(2.0f*M_PI*n/N) + 0.1365995f*cos(4.0f*M_PI*n/N) - 0.0106411f*cos(6.0f*M_PI*n/N)); 164c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 165c74663799493f2b1e6123c18def94295d0afab7Kenny Root 166c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_rectangle(FLAC__real *window, const FLAC__int32 L) 167c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 168c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 169c74663799493f2b1e6123c18def94295d0afab7Kenny Root 170c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n < L; n++) 171c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = 1.0f; 172c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 173c74663799493f2b1e6123c18def94295d0afab7Kenny Root 174c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_triangle(FLAC__real *window, const FLAC__int32 L) 175c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 176c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 177c74663799493f2b1e6123c18def94295d0afab7Kenny Root 178c74663799493f2b1e6123c18def94295d0afab7Kenny Root if (L & 1) { 179c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 1; n <= L+1/2; n++) 180c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n-1] = 2.0f * n / ((float)L + 1.0f); 181c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (; n <= L; n++) 182c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n-1] = - (float)(2 * (L - n + 1)) / ((float)L + 1.0f); 183c74663799493f2b1e6123c18def94295d0afab7Kenny Root } 184c74663799493f2b1e6123c18def94295d0afab7Kenny Root else { 185c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 1; n <= L/2; n++) 186c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n-1] = 2.0f * n / (float)L; 187c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (; n <= L; n++) 188c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n-1] = ((float)(2 * (L - n)) + 1.0f) / (float)L; 189c74663799493f2b1e6123c18def94295d0afab7Kenny Root } 190c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 191c74663799493f2b1e6123c18def94295d0afab7Kenny Root 192c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_tukey(FLAC__real *window, const FLAC__int32 L, const FLAC__real p) 193c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 194c74663799493f2b1e6123c18def94295d0afab7Kenny Root if (p <= 0.0) 195c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__window_rectangle(window, L); 196c74663799493f2b1e6123c18def94295d0afab7Kenny Root else if (p >= 1.0) 197c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__window_hann(window, L); 198c74663799493f2b1e6123c18def94295d0afab7Kenny Root else { 199c74663799493f2b1e6123c18def94295d0afab7Kenny Root const FLAC__int32 Np = (FLAC__int32)(p / 2.0f * L) - 1; 200c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 201c74663799493f2b1e6123c18def94295d0afab7Kenny Root /* start with rectangle... */ 202c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__window_rectangle(window, L); 203c74663799493f2b1e6123c18def94295d0afab7Kenny Root /* ...replace ends with hann */ 204c74663799493f2b1e6123c18def94295d0afab7Kenny Root if (Np > 0) { 205c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n <= Np; n++) { 206c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * n / Np)); 207c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[L-Np-1+n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * (n+Np) / Np)); 208c74663799493f2b1e6123c18def94295d0afab7Kenny Root } 209c74663799493f2b1e6123c18def94295d0afab7Kenny Root } 210c74663799493f2b1e6123c18def94295d0afab7Kenny Root } 211c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 212c74663799493f2b1e6123c18def94295d0afab7Kenny Root 213c74663799493f2b1e6123c18def94295d0afab7Kenny Rootvoid FLAC__window_welch(FLAC__real *window, const FLAC__int32 L) 214c74663799493f2b1e6123c18def94295d0afab7Kenny Root{ 215c74663799493f2b1e6123c18def94295d0afab7Kenny Root const FLAC__int32 N = L - 1; 216c74663799493f2b1e6123c18def94295d0afab7Kenny Root const double N2 = (double)N / 2.; 217c74663799493f2b1e6123c18def94295d0afab7Kenny Root FLAC__int32 n; 218c74663799493f2b1e6123c18def94295d0afab7Kenny Root 219c74663799493f2b1e6123c18def94295d0afab7Kenny Root for (n = 0; n <= N; n++) { 220c74663799493f2b1e6123c18def94295d0afab7Kenny Root const double k = ((double)n - N2) / N2; 221c74663799493f2b1e6123c18def94295d0afab7Kenny Root window[n] = (FLAC__real)(1.0f - k * k); 222c74663799493f2b1e6123c18def94295d0afab7Kenny Root } 223c74663799493f2b1e6123c18def94295d0afab7Kenny Root} 224c74663799493f2b1e6123c18def94295d0afab7Kenny Root 225c74663799493f2b1e6123c18def94295d0afab7Kenny Root#endif /* !defined FLAC__INTEGER_ONLY_LIBRARY */ 226