TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicformats.cpp
Go to the documentation of this file.
1 #include "musicformats.h"
2 
3 #include <qmmp/format.h>
4 
5 bool MusicFormats::isTrack(const QString &url)
6 {
7  return Format::isTrack(url);
8 }
9 
10 bool MusicFormats::isRedirection(const QString &url)
11 {
12  return Format::isRedirection(url);
13 }
14 
16 {
18 }
19 
21 {
23 }
24 
26 {
27  const QStringList formats(Format::supportMusicInputFormats());
28  return formats.join(";;");
29 }
30 
32 {
33  QStringList formats;
34  formats << "*.wma" << "*.ape" << "*.tta" << "*.m4a" << "*.m4b" << "*.aac" << "*.ra" << "*.shn" << "*.ac3" << "*.mka" << "*.vqf" << "*.tak" << "*.spx" << "*.adx" << "*.aix";
35  formats << "*.wve" << "*.sln" << "*.paf" << "*.pvf" << "*.ircam" << "*.gsm" << "*.avr" << "*.amr" << "*.dsf" << "*.dsdiff";
36  formats << "*.webm" << "*.3g2" << "*.3gp" << "*.asf" << "*.avi" << "*.f4v" << "*.flv" << "*.hevc" << "*.m4v" << "*.mov" << "*.mp4" << "*.mpeg" << "*.rm" << "*.swf" << "*.vob" << "*.wtv";
37  formats << "*.aiff" << "*.au" << "*.dts" << "*.mp3" << "*.ogg" << "*.opus" << "*.snd" << "*.oga" << "*.flac";
38  return formats;
39 }
40 
42 {
43  return QString("Audio Files (%1)").arg(supportSpekInputFilterFormats().join(" "));
44 }
45 
47 {
48  QStringList formats;
49  formats << "Playlist Files (*.tkpl *.m3u *.m3u8 *.pls *.wpl *.xspf *.jspf *.asx *.fpl *.dbpl *.csv *.txt)";
50  formats << "TTKlist Files (*.tkpl)";
51  formats << "M3U Files (*.m3u)";
52  formats << "M3U8 Files (*.m3u8)";
53  formats << "Playlist Files (*.pls)";
54  formats << "Windows Playlist Files (*.wpl)";
55  formats << "XML Shareable Playlist Files (*.xspf)";
56  formats << "JSON Shareable Playlist Files (*.jspf)";
57  formats << "Windows Media Playlist Files (*.asx)";
58  formats << "Foobar2k Playlist Files (*.fpl)";
59  formats << "Deadbeef Playlist Files (*.dbpl)";
60  formats << "CSV Playlist Files (*.csv)";
61  formats << "TXT Playlist Files (*.txt)";
62  return formats.join(";;");
63 }
64 
66 {
67  QStringList formats;
68  formats << "TTKlist Files (*.tkpl)";
69  formats << "M3U Files (*.m3u)";
70  formats << "M3U8 Files (*.m3u8)";
71  formats << "Playlist Files (*.pls)";
72  formats << "Windows Playlist Files (*.wpl)";
73  formats << "XML Shareable Playlist Files (*.xspf)";
74  formats << "JSON Shareable Playlist Files (*.jspf)";
75  formats << "Windows Media Playlist Files (*.asx)";
76  formats << "CSV Playlist Files (*.csv)";
77  formats << "TXT Playlist Files (*.txt)";
78  return formats.join(";;");
79 }
static bool isRedirection(const QString &url)
static QStringList supportMusicInputFilterFormats()
static QString supportPlaylistOutputFormats()
static QString supportMusicInputFormats()
static bool isTrack(const QString &url)
static QStringList supportMusicInputFormats()
static QStringList supportMusicFormats()
static bool isTrack(const QString &url)
Definition: musicformats.cpp:5
static QStringList supportMusicInputFilterFormats()
static QStringList supportMusicFormats()
static bool isRedirection(const QString &url)
static QString supportPlaylistInputFormats()
static QStringList supportSpekInputFilterFormats()
static QString supportSpekInputFormats()