dmrschmidt / DSWaveformImage

Generate waveform images from audio files on iOS, macOS & visionOS in Swift. Native SwiftUI & UIKit views.
MIT License
978 stars 109 forks source link

Error installing with SPM #50

Closed hoangnam714 closed 1 year ago

hoangnam714 commented 1 year ago
Screen Shot 2022-11-21 at 17 12 01

Cannot find type 'SCAudioManager' in scope I used SPM to install DSWaveformImage, but I can't find SCAudioManager xcode Version 14.1 (14B47b), UIKit

dmrschmidt commented 1 year ago

Hey @hoangnam714,

that's correct. SCAudioManager is not part of the library and only referenced in the docs to show an example for live recording. Feel free to use it, the source code is in the example project: https://github.com/dmrschmidt/DSWaveformImage/blob/main/Example/DSWaveformImageExample-iOS/SCAudioManager.m

It's really old Objective-C though and you are very likely to have different requirements for your use case, so I would not recommend it. I can also not provide guidance for this class, as it is outside of the scope of the library. Feel free to use it as inspiration though.

hoangnam714 commented 1 year ago

@dmrschmidt ops..., so that's it Thank you, have a nice day