Skip to content

Fix sdl_sound missing definitions in macro context - #2093

Merged
joshtynjala merged 1 commit into
openfl:developfrom
tobil4sk:fix/sdl-sound-macro
Aug 25, 2026
Merged

Fix sdl_sound missing definitions in macro context#2093
joshtynjala merged 1 commit into
openfl:developfrom
tobil4sk:fix/sdl-sound-macro

Conversation

@tobil4sk

Copy link
Copy Markdown
Member

Without these guards, there are errors about the NativeCFFI functions not being defined:

.../lime/src/lime/_internal/backend/native/NativeAudioSource.hx:354: characters 15-42 : Class<lime._internal.backend.native.NativeCFFI> has no field lime_sdl_sound_stream_clear
.../lime/src/lime/_internal/backend/native/NativeAudioSource.hx:391: characters 32-64 : Class<lime._internal.backend.native.NativeCFFI> has no field lime_sdl_sound_stream_from_bytes
.../lime/src/lime/_internal/backend/native/NativeAudioSource.hx:395: characters 32-63 : Class<lime._internal.backend.native.NativeCFFI> has no field lime_sdl_sound_stream_from_file
.../lime/src/lime/_internal/backend/native/NativeAudioSource.hx:457: characters 36-64 : Class<lime._internal.backend.native.NativeCFFI> has no field lime_sdl_sound_stream_rewind
.../lime/src/lime/_internal/backend/native/NativeAudioSource.hx:467: characters 35-61 : Class<lime._internal.backend.native.NativeCFFI> has no field lime_sdl_sound_stream_seek
.../lime/src/lime/_internal/backend/native/NativeAudioSource.hx:735: characters 25-51 : Class<lime._internal.backend.native.NativeCFFI> has no field lime_sdl_sound_stream_read
.../lime/src/lime/system/Clipboard.hx:27: characters 31-54 : Unknown<0> cannot be constructed

Without these guards, there are errors about the NativeCFFI functions
not being defined:

```
.../lime/src/lime/_internal/backend/native/NativeAudioSource.hx:354: characters 15-42 : Class<lime._internal.backend.native.NativeCFFI> has no field lime_sdl_sound_stream_clear
.../lime/src/lime/_internal/backend/native/NativeAudioSource.hx:391: characters 32-64 : Class<lime._internal.backend.native.NativeCFFI> has no field lime_sdl_sound_stream_from_bytes
.../lime/src/lime/_internal/backend/native/NativeAudioSource.hx:395: characters 32-63 : Class<lime._internal.backend.native.NativeCFFI> has no field lime_sdl_sound_stream_from_file
.../lime/src/lime/_internal/backend/native/NativeAudioSource.hx:457: characters 36-64 : Class<lime._internal.backend.native.NativeCFFI> has no field lime_sdl_sound_stream_rewind
.../lime/src/lime/_internal/backend/native/NativeAudioSource.hx:467: characters 35-61 : Class<lime._internal.backend.native.NativeCFFI> has no field lime_sdl_sound_stream_seek
.../lime/src/lime/_internal/backend/native/NativeAudioSource.hx:735: characters 25-51 : Class<lime._internal.backend.native.NativeCFFI> has no field lime_sdl_sound_stream_read
.../lime/src/lime/system/Clipboard.hx:27: characters 31-54 : Unknown<0> cannot be constructed
```
@joshtynjala
joshtynjala merged commit 41c428e into openfl:develop Aug 25, 2026
33 checks passed
@tobil4sk
tobil4sk deleted the fix/sdl-sound-macro branch August 25, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants