various: enabled config saving

This commit is contained in:
itsmattkc
2020-08-08 02:44:39 +10:00
parent 99d94a0d82
commit edeeed49ba
14 changed files with 149 additions and 88 deletions
+2 -2
View File
@@ -238,11 +238,11 @@ QList<TimeRange> AudioPlaybackCache::GetValidRanges(const TimeRange& range, cons
void AudioPlaybackCache::UpdateFilename(const QString &s)
{
filename_ = QDir(GetCacheFilename()).filePath(s);
filename_ = QDir(GetCacheDirectory()).filePath(s);
filename_.append(QStringLiteral(".pcm"));
}
const QString &AudioPlaybackCache::GetCacheFilename() const
const QString &AudioPlaybackCache::GetPCMFilename() const
{
return filename_;
}
+1 -1
View File
@@ -46,7 +46,7 @@ public:
//void SetUuid(const QUuid& id);
const QString& GetCacheFilename() const;
const QString& GetPCMFilename() const;
QList<TimeRange> GetValidRanges(const TimeRange &range, const qint64 &job_time);
@@ -297,9 +297,12 @@ QVariant OpenGLProxy::RunNodeAccelerated(const Node *node,
switch (data_type) {
case NodeInput::kInt:
// kInt technically specifies a LongLong, but OpenGL doesn't support those. This may lead to
// over/underflows if the number is large enough, but the likelihood of that is quite low.
shader->setUniformValue(variable_location, value.toInt());
break;
case NodeInput::kFloat:
// kFloat technically specifies a double but as above, OpenGL doesn't support those.
shader->setUniformValue(variable_location, value.toFloat());
break;
case NodeInput::kVec2: