1
// Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
3
// This program is free software; you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation; either version 3 of the License, or
6
// (at your option) any later version.
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License
14
// along with this program; if not, write to the Free Software
15
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
#ifndef __GNASH_UTIL_H
19
#define __GNASH_UTIL_H
21
#include <boost/cstdint.hpp> // for boost::int16_t
30
/// VERY crude sample-rate and steroe conversion. Converts input data to
33
/// @param adjusted_data
34
/// Where the converted data is placed.
36
/// @param adjusted_size
37
/// The size of the converted data.
40
/// Data that needs to be converted.
42
/// @param sample_count
43
/// The datas current sample count.
45
/// @param sample_size
46
/// The datas current sample size.
48
/// @param sample_rate
49
/// The datas current sample rate.
52
/// Whether the current data is in stereo
54
/// @param m_sample_rate
55
/// The samplerate we which to convert to.
58
/// Do we want the output data to be in stereo?
60
static void convert_raw_data(boost::int16_t** adjusted_data,
61
int* adjusted_size, void* data, int sample_count,
62
int sample_size, int sample_rate, bool stereo,
63
int m_sample_rate, bool m_stereo);
69
#endif // __GNASH_UTIL_H
76
// indent-tabs-mode: t