diff --git a/RealityMixer.xcodeproj/project.pbxproj b/RealityMixer.xcodeproj/project.pbxproj index 15f774d..2617b7c 100644 --- a/RealityMixer.xcodeproj/project.pbxproj +++ b/RealityMixer.xcodeproj/project.pbxproj @@ -752,7 +752,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 17; + CURRENT_PROJECT_VERSION = 18; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; HEADER_SEARCH_PATHS = ""; INFOPLIST_FILE = "$(SRCROOT)/RealityMixer/Info.plist"; @@ -779,7 +779,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CLANG_ENABLE_MODULES = YES; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 17; + CURRENT_PROJECT_VERSION = 18; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; HEADER_SEARCH_PATHS = ""; INFOPLIST_FILE = "$(SRCROOT)/RealityMixer/Info.plist"; diff --git a/RealityMixer/Capture/Audio/AudioManager.swift b/RealityMixer/Capture/Audio/AudioManager.swift index b19a5a0..7e06c3b 100644 --- a/RealityMixer/Capture/Audio/AudioManager.swift +++ b/RealityMixer/Capture/Audio/AudioManager.swift @@ -50,14 +50,17 @@ final class AudioManager { return } - let sampleTime = AVAudioFramePosition(Double(timestamp)/1_000_000 * currentAudioFormat.sampleRate) - - let audioTime = AVAudioTime( - sampleTime: sampleTime, - atRate: currentAudioFormat.sampleRate - ) + // FIXME +// let sampleTime = AVAudioFramePosition(Double(timestamp)/1_000_000 * currentAudioFormat.sampleRate) +// +// let audioTime = AVAudioTime( +// sampleTime: sampleTime, +// atRate: currentAudioFormat.sampleRate +// ) +// +// audioPlayer?.scheduleBuffer(audio, at: audioTime, options: .interruptsAtLoop, completionHandler: nil) - audioPlayer?.scheduleBuffer(audio, at: audioTime, options: .interruptsAtLoop, completionHandler: nil) + audioPlayer?.scheduleBuffer(audio, at: nil, options: [], completionHandler: nil) } func invalidate() {