Skip to content

Expose wave height property #1

@iDevelopper

Description

@iDevelopper

Hi,

Awesome, thanks for this library!

Can the height of the wave be exposed as a configuration property instead of using an arbitrary value (frame.height * 0.5)?

    func loadWaveformData(from audioURL: URL) {
        loadState.loading = true
        ASAudioWaveformDataFactory.loadAudioWaveformData(from: audioURL, formateSize: (waveformConfig.maxSamplesCount, frame.height * 0.5), timeRange: waveformConfig.timeRange) { (samples, assetData) in
            self.loadState = (true, false)
            self.filteredSamples = samples
            self.drawWaveform()
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions