aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/gme/settingsdialog.ui
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-11-12 11:42:37 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-11-12 11:42:37 +0000
commit05e57a11a96728333c459b8cbf2013721ac7828f (patch)
treedf43f778d2bf0abdbf9ab22ea1efae54a161b05b /src/plugins/Input/gme/settingsdialog.ui
parent4a8f7ce448283e8d0cf0bf409dd2fa03fcb537b7 (diff)
downloadqmmp-05e57a11a96728333c459b8cbf2013721ac7828f.tar.gz
qmmp-05e57a11a96728333c459b8cbf2013721ac7828f.tar.bz2
qmmp-05e57a11a96728333c459b8cbf2013721ac7828f.zip
updated Chinese Simplified translation (Mingcong Bai)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7711 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/gme/settingsdialog.ui')
0 files changed, 0 insertions, 0 deletions
n>
11b607fc9
bed87bc89
304dc519d
















311224cda
9afdb33ec

304dc519d
9afdb33ec
304dc519d




013ee07b5
304dc519d














013ee07b5
304dc519d
bed87bc89


304dc519d
bed87bc89










11b607fc9




9afdb33ec









bed87bc89

304dc519d
bed87bc89


bed87bc89





























11b607fc9
bed87bc89

















11b607fc9
bed87bc89










304dc519d
9afdb33ec
304dc519d
9afdb33ec














013ee07b5
9afdb33ec














304dc519d
311224cda
9afdb33ec








311224cda
9afdb33ec










311224cda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240




















                                                                             

                     





                      
                            


                                                                                                                     
                                             
 
                      

                  
                     
                
















                                                           
 

                                            
     
                                    




                                                    
                         














                                                                                   
                         
     


                   
  










                          




                             









                                                       

                         
                                                


                             





























                                                                                                 
                                                                   

















                                                                           
                                                  










                                                                       
 
                          
 














                                                           
                    














                                                                          
 
 








                                                                         
 










                                                                                
 
/***************************************************************************
 *   Copyright (C) 2008 by Ilya Kotov                                      *
 *   forkotov02@hotmail.ru                                                 *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

#include <QIODevice>
#include <QBuffer>
#include <QTextCodec>

#include <neaacdec.h>

#include "aacfile.h"

#define MAX_CHANNELS 6
#define AAC_BUFFER_SIZE 4096

static int adts_sample_rates[] = {96000,88200,64000,48000,44100,32000,24000,22050,16000,12000,11025,8000,7350,0,0,0};

AACFile::AACFile(QIODevice *i, bool metaData)
{
    m_isValid = false;
    m_length = 0;
    m_bitrate = 0;
    m_samplerate = 0;
    m_input = i;
    uchar buf[AAC_BUFFER_SIZE];
    qint64 buf_at = i->peek((char *) buf, AAC_BUFFER_SIZE);

    int tag_size = 0;
    if (!memcmp(buf, "ID3", 3)) //TODO parse id3 tag
    {
        /* high bit is not used */
        tag_size = (buf[6] << 21) | (buf[7] << 14) |
                   (buf[8] <<  7) | (buf[9] <<  0);

        tag_size += 10;
        if (buf_at - tag_size < 4)
        {
            qWarning("AACFile: invalid tag size");
            return;
        }
        memmove (buf, buf + tag_size, buf_at - tag_size);

        if (metaData)
            parseID3v2(); //parse id3v2 tags
    }
    //try to determnate header type;
    if (buf[0] == 0xff && ((buf[1] & 0xf6) == 0xf0))
    {
        qDebug("AACFile: ADTS header found");
        if (!i->isSequential())
            parseADTS();
        m_isValid = true;
    }
    else if (memcmp(buf, "ADIF", 4) == 0)
    {
        qDebug("AACFile: ADIF header found");
        int skip_size = (buf[4] & 0x80) ? 9 : 0;
        m_bitrate = ((buf[4 + skip_size] & 0x0F)<<19) |
                    (buf[5 + skip_size]<<11) |
                    (buf[6 + skip_size]<<3) |
                    (buf[7 + skip_size] & 0xE0);

        if (!i->isSequential ())
            m_length = (qint64) (((float)i->size()*8.f)/((float)m_bitrate) + 0.5f);
        else
            m_length = 0;
        m_bitrate = (int)((float)m_bitrate/1000.0f + 0.5f);
        m_isValid = true;
    }
}

AACFile::~AACFile()
{}

qint64 AACFile::length()
{
    return m_length;
}

quint32 AACFile::bitrate()
{
    return m_bitrate;
}

quint32 AACFile::samplerate()
{
    return m_samplerate;
}

bool AACFile::isValid()
{
    return m_isValid;
}

const QMap<Qmmp::MetaData, QString> AACFile::metaData()