From 817116ceb7f4d47cb60b26ec93bc46890ae681b4 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Thu, 8 Feb 2024 20:39:08 -0500 Subject: [PATCH] whitespace, and removed unnededed public vars --- project/src/media/openal/OpenALBindings.cpp | 3 +-- src/lime/_internal/backend/native/NativeAudioSource.hx | 4 ++-- src/lime/_internal/backend/native/NativeCFFI.hx | 6 +++--- src/lime/media/OpenALAudioContext.hx | 6 ------ 4 files changed, 6 insertions(+), 13 deletions(-) diff --git a/project/src/media/openal/OpenALBindings.cpp b/project/src/media/openal/OpenALBindings.cpp index 93390cf3eb..ffdc62a76e 100644 --- a/project/src/media/openal/OpenALBindings.cpp +++ b/project/src/media/openal/OpenALBindings.cpp @@ -2118,7 +2118,7 @@ namespace lime { } HL_PRIM varray* HL_NAME(hl_al_get_sourcedv_soft) (HL_CFFIPointer* source, int param, int count) - { + { #ifdef LIME_OPENALSOFT ALuint id = (ALuint)(uintptr_t)source->ptr; varray* result = hl_alloc_array(&hlt_f64, count); @@ -2222,7 +2222,6 @@ namespace lime { } - value lime_al_get_string (int param) { const char* result = alGetString (param); diff --git a/src/lime/_internal/backend/native/NativeAudioSource.hx b/src/lime/_internal/backend/native/NativeAudioSource.hx index 46ed12d864..99ac69e263 100644 --- a/src/lime/_internal/backend/native/NativeAudioSource.hx +++ b/src/lime/_internal/backend/native/NativeAudioSource.hx @@ -3,12 +3,12 @@ package lime._internal.backend.native; import haxe.Int64; import haxe.Timer; import lime.math.Vector4; -import lime.media.AudioManager; -import lime.media.AudioSource; import lime.media.openal.AL; import lime.media.openal.ALBuffer; import lime.media.openal.ALSource; import lime.media.vorbis.VorbisFile; +import lime.media.AudioManager; +import lime.media.AudioSource; import lime.utils.UInt8Array; #if !lime_debug diff --git a/src/lime/_internal/backend/native/NativeCFFI.hx b/src/lime/_internal/backend/native/NativeCFFI.hx index de8e00d6c8..b7b7f95a4e 100644 --- a/src/lime/_internal/backend/native/NativeCFFI.hx +++ b/src/lime/_internal/backend/native/NativeCFFI.hx @@ -1,14 +1,14 @@ package lime._internal.backend.native; import haxe.io.Bytes; -import lime.graphics.Image; -import lime.graphics.ImageBuffer; import lime.graphics.opengl.GLBuffer; import lime.graphics.opengl.GLFramebuffer; import lime.graphics.opengl.GLProgram; import lime.graphics.opengl.GLRenderbuffer; import lime.graphics.opengl.GLShader; import lime.graphics.opengl.GLTexture; +import lime.graphics.Image; +import lime.graphics.ImageBuffer; import lime.math.Rectangle; import lime.media.openal.ALAuxiliaryEffectSlot; import lime.utils.DataPointer; @@ -18,9 +18,9 @@ import lime.graphics.cairo.CairoGlyph; import lime.graphics.opengl.GL; import lime.math.Matrix3; import lime.math.Vector2; -import lime.media.AudioBuffer; import lime.media.openal.ALContext; import lime.media.openal.ALDevice; +import lime.media.AudioBuffer; import lime.system.DisplayMode; import lime.utils.ArrayBufferView; #end diff --git a/src/lime/media/OpenALAudioContext.hx b/src/lime/media/OpenALAudioContext.hx index 66dc30c8a9..a6fdd9b3e1 100644 --- a/src/lime/media/OpenALAudioContext.hx +++ b/src/lime/media/OpenALAudioContext.hx @@ -91,12 +91,6 @@ class OpenALAudioContext public var DEFAULT_ALL_DEVICES_SPECIFIER:Int = 0x1012; public var ALL_DEVICES_SPECIFIER:Int = 0x1013; - public var DEVICE_CLOCK_SOFT:Int = 0x1600; - public var DEVICE_LATENCY_SOFT:Int = 0x1601; - public var DEVICE_CLOCK_LATENCY_SOFT:Int = 0x1602; - - public var SEC_OFFSET_LATENCY_SOFT:Int = 0x1201; - public var SEC_OFFSET_CLOCK_SOFT:Int = 0x1203; @:noCompletion private function new() {}