added speed changes while maintaining audio pitch

This commit is contained in:
itsmattkc
2018-10-05 11:02:04 +10:00
parent 06e3ec9d4f
commit 4b7e62ddb7
5 changed files with 31 additions and 8 deletions
+2 -1
View File
@@ -33,7 +33,8 @@ Clip::Clip(Sequence* s) :
filter_graph(NULL),
texture(NULL),
fbo(NULL),
autoscale(config.autoscale_by_default)
autoscale(config.autoscale_by_default),
maintain_audio_pitch(false)
{
reset();
}
+2 -2
View File
@@ -116,8 +116,8 @@ struct Clip
long texture_frame;
bool autoscale;
// audio playback variables
// SwrContext* swr_ctx;
// audio playback variables
bool maintain_audio_pitch;
int frame_sample_index;
int audio_buffer_write;
bool audio_reset;