We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) { guard mixer?.useSampleBuffer(sampleBuffer: sampleBuffer, mediaType: AVMediaType.audio) == true else { return } appendSampleBuffer(sampleBuffer) }
func useSampleBuffer(sampleBuffer: CMSampleBuffer, mediaType: AVMediaType) -> Bool { switch mediaSync { case .video: if mediaType == .audio { return !videoTimeStamp.seconds.isZero && videoTimeStamp.seconds <= sampleBuffer.presentationTimeStamp.seconds } if videoTimeStamp == CMTime.zero { videoTimeStamp = sampleBuffer.presentationTimeStamp } return true case .audio: if mediaType == .video { return !audioTimeStamp.seconds.isZero && audioTimeStamp.seconds <= sampleBuffer.presentationTimeStamp.seconds } if audioTimeStamp == CMTime.zero { audioTimeStamp = sampleBuffer.presentationTimeStamp } return true default: return true } }
Use only the attachAudio function and do not use attachVideo.
The sample buffer should be published when using audio only
1.2.6
No response
The text was updated successfully, but these errors were encountered:
refs #1027
cd57a82
Thank you for feedback. I fixed it cd57a82.
Sorry, something went wrong.
Merge pull request #1030 from shogo4405/feature/fix-noaudio
9f29a1f
@shogo4405 Thank you for fixed it I'll look forward to the version being updated
closed as fixed and released 1.2.7
No branches or pull requests
Describe the bug
To Reproduce
Use only the attachAudio function and do not use attachVideo.
Expected behavior
The sample buffer should be published when using audio only
Version
1.2.6
Smartphone info.
No response
Additional context
No response
Screenshots
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: