Hopefully fix glitching on seeking
parent
486352ea72
commit
c1c21ec84f
|
@ -121,12 +121,11 @@
|
|||
{
|
||||
if (shouldSeek == YES)
|
||||
{
|
||||
OutputNode *output = [[controller controller] output];
|
||||
ConverterNode *converter = [[[controller controller] bufferChain] converter];
|
||||
DLog(@"SEEKING! Resetting Buffer");
|
||||
|
||||
amountInBuffer = 0;
|
||||
[self resetBuffer];
|
||||
[output reset];
|
||||
[converter resetBuffer];
|
||||
[converter inputFormatDidChange:[[[controller controller] bufferChain] inputFormat]];
|
||||
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
- (void)process;
|
||||
- (void)close;
|
||||
- (void)seek:(double)time;
|
||||
- (void)reset;
|
||||
|
||||
- (int)readData:(void *)ptr amount:(int)amount;
|
||||
|
||||
|
|
|
@ -51,13 +51,6 @@
|
|||
[output resume];
|
||||
}
|
||||
|
||||
- (void)reset
|
||||
{
|
||||
[output setup];
|
||||
if (!paused)
|
||||
[output start];
|
||||
}
|
||||
|
||||
- (int)readData:(void *)ptr amount:(int)amount
|
||||
{
|
||||
@autoreleasepool {
|
||||
|
|
Loading…
Reference in New Issue