Miam-Player  0.8.0
A nice music player
AudioResampler_p.h
Go to the documentation of this file.
1 /******************************************************************************
2  QtAV: Multimedia framework based on Qt and FFmpeg
3  Copyright (C) 2012-2016 Wang Bin <wbsecg1@gmail.com>
4 
5 * This file is part of QtAV (from 2013)
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Lesser General Public
9  License as published by the Free Software Foundation; either
10  version 2.1 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public
18  License along with this library; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 ******************************************************************************/
21 
22 #ifndef QTAV_AUDIORESAMPLER_P_H
23 #define QTAV_AUDIORESAMPLER_P_H
24 
25 #include "QtAV/AudioFormat.h"
26 #include "QtAV/private/AVCompat.h"
27 #include <QtCore/QByteArray>
28 
29 namespace QtAV {
30 
31 class AudioResampler;
33 {
34 public:
36  in_samples_per_channel(0)
37  , out_samples_per_channel(0)
38  , speed(1.0)
39  {
40  in_format.setSampleFormat(AudioFormat::SampleFormat_Unknown);
41  out_format.setSampleFormat(AudioFormat::SampleFormat_Float);
42  }
43 
44  int in_samples_per_channel, out_samples_per_channel;
45  qreal speed;
46  AudioFormat in_format, out_format;
47  QByteArray data_out;
48 };
49 
50 } //namespace QtAV
51 
52 #endif // QTAV_AUDIORESAMPLER_P_H
Definition: AudioResampler_p.h:32
qreal speed
Definition: AudioResampler_p.h:45
AudioResamplerPrivate()
Definition: AudioResampler_p.h:35
int out_samples_per_channel
Definition: AudioResampler_p.h:44
#define Q_AV_PRIVATE_EXPORT
Definition: QtAV_Global.h:43
Definition: AudioFormat.h:35
AudioFormat out_format
Definition: AudioResampler_p.h:46
Definition: dptr.h:123
QByteArray data_out
Definition: AudioResampler_p.h:47
AudioOutput ao; ao.setAudioFormat(fmt); ao.open(); while (has_data) { data = read_data(ao->bufferSize...
Definition: AudioDecoder.h:31
Definition: AudioFormat.h:55
Definition: AudioFormat.h:45