From c78a553532782fb774f0da84bec6492994538be2 Mon Sep 17 00:00:00 2001 From: vspader Date: Thu, 1 May 2008 23:34:23 +0000 Subject: [PATCH] Bug fix for cue sheet changes. --- Audio/Chain/InputNode.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Audio/Chain/InputNode.m b/Audio/Chain/InputNode.m index 7e42281b1..fa6933eb7 100644 --- a/Audio/Chain/InputNode.m +++ b/Audio/Chain/InputNode.m @@ -46,9 +46,15 @@ NSLog(@"Opening with old decoder: %@", d); decoder = d; [decoder retain]; + + NSDictionary *properties = [decoder properties]; + int bitsPerSample = [[properties objectForKey:@"bitsPerSample"] intValue]; + int channels = [[properties objectForKey:@"channels"] intValue]; + + bytesPerFrame = (bitsPerSample/8) * channels; [self registerObservers]; - + shouldContinue = YES; shouldSeek = NO;