aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Output/null/outputnull.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-01-07 13:17:07 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-01-07 13:17:07 +0000
commit942a4df4d9b1c7683ec9f6d9e72ca9e6d0bae14a (patch)
treedc57c40b4459137710250066e706da77c5511b18 /src/plugins/Output/null/outputnull.cpp
parent3a9dc1fc246f17131b9ae5c3254cef6eb33dea42 (diff)
downloadqmmp-942a4df4d9b1c7683ec9f6d9e72ca9e6d0bae14a.tar.gz
qmmp-942a4df4d9b1c7683ec9f6d9e72ca9e6d0bae14a.tar.bz2
qmmp-942a4df4d9b1c7683ec9f6d9e72ca9e6d0bae14a.zip
wavpack: fixed 12, 20-bit integer and 32-bit float formats support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8604 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Output/null/outputnull.cpp')
0 files changed, 0 insertions, 0 deletions
8-e032-0410-971d-27865f9a5e38> 2011-09-13 16:38:23 +0000 fixed general plugin api' href='/qmmp/commit/src/plugins/General/notifier/notifier.cpp?id=9408303fad1efd3b889f7677dd255b9437276cfc'>9408303fa
32b99cd71
235db3c44
873b67f01

c17d0dff9
ae75e5707
235db3c44
013ee07b5
c17d0dff9
013ee07b5
11b7655bb
235db3c44
a9946929b


873b67f01
eefa924d4











425ad58a9
eefa924d4

425ad58a9
eefa924d4




ee02df793

425ad58a9
2826871c0
425ad58a9

eefa924d4
e747c2b87

32b99cd71

a9946929b
32b99cd71
c17d0dff9
32b99cd71
c17d0dff9

















eefa924d4
c17d0dff9



32b99cd71


a9946929b
32b99cd71
873b67f01







235db3c44
2826871c0







eefa924d4
2826871c0
eefa924d4


2826871c0
eefa924d4
389657f53


eefa924d4
389657f53
32b99cd71
873b67f01














eefa924d4








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
                                                                            
                                                                            














                                                                            
                                                                            


                                                                             


                    
                           



                        
                                                     
 
                      

             
                       
                                                                 
                                    
                                                                   
                                                                                 
                                                                        
                                                               
                        


                                                                                      
                                                                                  











                                                       
     

                                                               
     




                                                           

                                                        
 
 

                     
                         

                             

 
                                          
 
                         
     

















                                
                             



                           


     
                             
 







                                              
               







                                                                           
                                         
     


                                                     
 
                         


                                                                                
                 
     
 














                                                   








                                             
/***************************************************************************
 *   Copyright (C) 2008-2013 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.,                                       *
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
 ***************************************************************************/

#include <QTimer>
#include <QFile>
#include <QDir>
#include <QSettings>
#include <qmmp/soundcore.h>

#include "popupwidget.h"
#include "notifier.h"

Notifier::Notifier(QObject *parent) : QObject(parent)
{
    m_popupWidget = 0;
    m_l = -1;
    m_r = -1;
    m_isPaused = false;
    QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
    settings.beginGroup("Notifier");
    m_desktop = settings.value("song_notification", true).toBool();
    m_resumeNotification = settings.value("resume_notification", false).toBool();
    m_showVolume = settings.value("volume_notification", true).toBool();
    m_psi = settings.value("psi_notification", false).toBool();
    settings.endGroup();
    m_core = SoundCore::instance();
    connect (m_core, SIGNAL(metaDataChanged ()), SLOT(showMetaData()));
    connect (m_core, SIGNAL(stateChanged (Qmmp::State)), SLOT(setState(Qmmp::State)));
    connect (m_core, SIGNAL(volumeChanged(int, int)), SLOT(showVolume(int, int)));

    //psi tune files (thousands of them!)
    QString psi_data_dir = qgetenv("PSIDATADIR");
    QString xdg_cache_home = qgetenv("XDG_CACHE_HOME");
    if(!psi_data_dir.isEmpty())
        m_psiTuneFiles << psi_data_dir+"/tune";
    else if(!xdg_cache_home.isEmpty())
    {
        m_psiTuneFiles << xdg_cache_home+"/psi/tune";
        m_psiTuneFiles << xdg_cache_home+"/psi+/tune";
    }
    else
    {
        m_psiTuneFiles << QDir::homePath()+"/.cache/psi/tune";
        m_psiTuneFiles << QDir::homePath()+"/.cache/psi+/tune";
    }
    //legacy psi support