Skip to content

Commit

Permalink
Reverting change
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio914 committed Aug 19, 2021
1 parent 372b8ac commit 60e2da1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions RealityMixer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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";
Expand Down
17 changes: 10 additions & 7 deletions RealityMixer/Capture/Audio/AudioManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 60e2da1

Please sign in to comment.