summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2017-12-14 10:55:30 -0500
committerJoel Fischer <joeljfischer@gmail.com>2017-12-14 10:55:30 -0500
commit292ec9fc92a62bbddde870d4c22beed93ebe65e4 (patch)
treeb2cacee8817c98da07f5842506c1b8a0977266ee
parent9250c99e4f89f6984cfab5fd4c125b7210b1979e (diff)
downloadsdl_ios-feature/issue_795_AudioStreamingManager.tar.gz
-rwxr-xr-xSmartDeviceLink/SDLAudioStreamManager.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLAudioStreamManager.m b/SmartDeviceLink/SDLAudioStreamManager.m
index e3373e1a8..654f2451b 100755
--- a/SmartDeviceLink/SDLAudioStreamManager.m
+++ b/SmartDeviceLink/SDLAudioStreamManager.m
@@ -108,7 +108,7 @@ NSString *const SDLErrorDomainAudioStreamManager = @"com.sdl.extension.pcmAudioS
__block BOOL success = [self.streamManager sendAudioData:audioData];
self.playing = YES;
- float audioLengthSecs = (float)audioData.length / 32000.0;
+ float audioLengthSecs = (float)audioData.length / (float)32000.0;
__weak typeof(self) weakself = self;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(audioLengthSecs * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
weakself.playing = NO;