73 QStringList arguments;
74 arguments <<
"-softvol" <<
"-slave" <<
"-quiet" <<
"-vo" <<
"directx:noaccel" << data;
83 QStringList arguments;
84 arguments <<
"-cache" <<
"5000" <<
"-softvol" <<
"-slave" <<
"-quiet" <<
"-vo" <<
"directx:noaccel" << data;
91 QStringList arguments;
92 arguments <<
"-cache" <<
"5000" <<
"-softvol" <<
"-slave" <<
"-quiet" <<
"-zoom" <<
"-wid" << QString::number(winId);
94 arguments <<
"-vo" <<
"direct3d";
96 arguments <<
"-vo" <<
"x11";
101 m_process->setProcessChannelMode(QProcess::MergedChannels);
113 m_process->write(QString(
"seek %1 2\n").arg(pos).toUtf8());
123 m_process->write(QString(
"af channels=1:1:1\n").toUtf8());
133 m_process->write(QString(
"af channels=1:1\n").toUtf8());
143 m_process->write(QString(
"switch_audio %1\n").arg(number).toUtf8());
153 m_process->write(QString(
"mute %1\n").arg(mute ? 1 : 0).toUtf8());
163 m_process->write(QString(
"volume %1 1\n").arg(value).toUtf8());
214 if(message.startsWith(
"ANS_LENGTH"))
216 message.remove(
"\r\n");
242 if(message.startsWith(
"ANS_TIME_POSITION"))
244 message.remove(
"\r\n");
255 if(message.startsWith(
"ANS_LENGTH"))
257 message.remove(
"\r\n");
261 if(message.startsWith(
"ANS_TIME_POSITION"))
263 message.remove(
"\r\n");
void mediaChanged(const QString &data)
#define MAKE_PLAYER_PATH_FULL
void setVideoMedia(const QString &data, int winId)
void positionChanged(qint64 position)
void setMultiVoice(int number)
void setVolume(int value)
TTK::PlayState m_playState
void durationChanged(qint64 duration)
The namespace of the process utils.
void setRadioMedia(const QString &data)
void setMusicMedia(const QString &data)
TTK_MODULE_EXPORT void killProcessByName(const QString &process)
void setMedia(Module type, const QString &data, int winId=-1)
void setPosition(qint64 pos)
#define TTK_ERROR_STREAM(msg)
MusicCoreMPlayer(QObject *parent=nullptr)