161
161
projectm_->changePresetDuration(duration_);
166
165
const int samples_per_channel = GST_BUFFER_SIZE(buffer) / sizeof(short) / 2;
167
166
const short* data = reinterpret_cast<short*>(GST_BUFFER_DATA(buffer));
170
169
projectm_->pcm()->addPCM16Data(data, samples_per_channel);
171
170
gst_buffer_unref(buffer);
175
173
void ProjectMVisualisation::SetSelected(const QStringList& paths, bool selected) {