Hopefully fix glitching on seeking

CQTexperiment
Christopher Snowhill 2021-12-28 16:04:16 -08:00
parent 486352ea72
commit c1c21ec84f
3 changed files with 1 additions and 10 deletions

View File

@ -121,12 +121,11 @@
{ {
if (shouldSeek == YES) if (shouldSeek == YES)
{ {
OutputNode *output = [[controller controller] output];
ConverterNode *converter = [[[controller controller] bufferChain] converter]; ConverterNode *converter = [[[controller controller] bufferChain] converter];
DLog(@"SEEKING! Resetting Buffer"); DLog(@"SEEKING! Resetting Buffer");
amountInBuffer = 0;
[self resetBuffer]; [self resetBuffer];
[output reset];
[converter resetBuffer]; [converter resetBuffer];
[converter inputFormatDidChange:[[[controller controller] bufferChain] inputFormat]]; [converter inputFormatDidChange:[[[controller controller] bufferChain] inputFormat]];

View File

@ -30,7 +30,6 @@
- (void)process; - (void)process;
- (void)close; - (void)close;
- (void)seek:(double)time; - (void)seek:(double)time;
- (void)reset;
- (int)readData:(void *)ptr amount:(int)amount; - (int)readData:(void *)ptr amount:(int)amount;

View File

@ -51,13 +51,6 @@
[output resume]; [output resume];
} }
- (void)reset
{
[output setup];
if (!paused)
[output start];
}
- (int)readData:(void *)ptr amount:(int)amount - (int)readData:(void *)ptr amount:(int)amount
{ {
@autoreleasepool { @autoreleasepool {