Skip to content

Native Dylibs outdated [MacOS] #155

@3llomi

Description

@3llomi

I noticed that I didn't push the native dylibs in my PR #148

Currently when trying to build using
./gradlew buildNativeLibraries

It throws an error

> Task :mediaplayer:buildNativeMacX64 FAILED
mediaplayer/src/jvmMain/kotlin/io/github/kdroidfilter/composemediaplayer/mac/native/NativeVideoPlayer.swift:1075:97: error: cannot convert value of type 'Unmanaged<MTAudioProcessingTap>?' to expected argument type 'MTAudioProcessingTap?'
1073 |             // Create the audio processing tap
1074 |             let status = MTAudioProcessingTapCreate(
1075 |                 kCFAllocatorDefault, &callbacks, kMTAudioProcessingTapCreationFlag_PostEffects, &tap
     |                     |- error: cannot convert value of type 'Unmanaged<MTAudioProcessingTap>?' to expected argument type 'MTAudioProcessingTap?'
     |        - note: arguments to generic parameter 'Wrapped' ('Unmanaged<MTAudioProcessingTap>' and 'MTAudioProcessingTap') are expected to be equal
1076 |             )
1077 |             if status == noErr, let tap = tap {

Related to these lines in NativeVideoPlayer.swift

  var tap: Unmanaged<MTAudioProcessingTap>?
            // Create the audio processing tap
            let status = MTAudioProcessingTapCreate(
                kCFAllocatorDefault, &callbacks, kMTAudioProcessingTapCreationFlag_PostEffects, &tap
            )

Not sure if there is an issue on my end or not.

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