Hopefully fix glitching on seeking
parent
486352ea72
commit
c1c21ec84f
|
@ -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]];
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue