Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rockworkd/dbusinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ DBusPebble::DBusPebble(Pebble *pebble, QObject *parent):
connect(pebble, &Pebble::oauthTokenChanged, this, &DBusPebble::oauthTokenChanged);
connect(pebble, &Pebble::voiceSessionSetup, this, &DBusPebble::voiceSessionSetup);
connect(pebble, &Pebble::voiceSessionStream, this, &DBusPebble::voiceSessionStream);
connect(pebble, &Pebble::voiceSessionFrame, this, &DBusPebble::voiceSessionFrame);
connect(pebble, &Pebble::voiceSessionDumped, this, &DBusPebble::voiceSessionDumped);
connect(pebble, &Pebble::voiceSessionClosed, this, &DBusPebble::voiceSessionClosed);
connect(pebble, &Pebble::appButtonPressed, this, &DBusPebble::AppButtonPressed);
Expand Down
1 change: 1 addition & 0 deletions rockworkd/dbusinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class DBusPebble: public QObject

void voiceSessionSetup(const QString &dumpFile, const QString &contentType, const QString &appUuid);
void voiceSessionStream(const QString &dumpFile);
void voiceSessionFrame(const QString &dumpFile, const QByteArray &frame);
void voiceSessionDumped(const QString &dumpFile);
void voiceSessionClosed(const QString &dumpFIle);

Expand Down
1 change: 1 addition & 0 deletions rockworkd/libpebble/pebble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ void Pebble::voiceAudioStream(quint16 sid, const AudioStream &frames)
qDebug() << "Audio Stream has started dumping to" << m_voiceSessDump->fileName();
}
for(int i=0;i<frames.count;i++) {
emit voiceSessionFrame(m_voiceSessDump->fileName(), frames.frames.at(i).data);
m_voiceSessDump->write(frames.frames.at(i).data);
}
} else {
Expand Down
1 change: 1 addition & 0 deletions rockworkd/libpebble/pebble.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ private slots:
void weatherLocationsChanged(const QVariantList &locations) const;
void voiceSessionSetup(const QString &fileName, const QString &format, const QString &appUuid);
void voiceSessionStream(const QString &fileName);
void voiceSessionFrame(const QString &fileName, const QByteArray &frame);
void voiceSessionDumped(const QString &fileName);
void voiceSessionClosed(const QString &fileName);

Expand Down