Skip to content

Commit 6573c26

Browse files
committed
0.31.12
1 parent cbe832c commit 6573c26

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

buildspec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
"uuids": {
4848
"windowsApp": "ad885c58-5ca9-44de-8f4f-1c12676626a9"
4949
},
50-
"version": "0.31.11",
50+
"version": "0.31.12",
5151
"website": "https://www.atkaudio.com"
5252
}

lib/atkaudio/src/atkaudio/DeviceIo/DeviceIoApp.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,13 @@ class DeviceIoApp final
133133
toObsBuffer.write(inputChannelData, numInputChannels, numSamples, currentSampleRate);
134134

135135
if (numOutputChannels > 0 && outputChannelData != nullptr)
136+
{
137+
// Clear output first to ensure silence if read fails
138+
for (int ch = 0; ch < numOutputChannels; ++ch)
139+
juce::FloatVectorOperations::clear(outputChannelData[ch], numSamples);
140+
136141
fromObsBuffer.read(outputChannelData, numOutputChannels, numSamples, currentSampleRate);
142+
}
137143
}
138144

139145
void audioDeviceAboutToStart(juce::AudioIODevice* device) override

linux-cross-compile.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ git config --global --add safe.directory /workspace
5151
if [ "${CROSS_COMPILE}" = "true" ]; then
5252
echo "=== Setting up cross-compilation for ${TARGET_ARCH} ==="
5353

54+
# Detect Ubuntu codename dynamically
55+
UBUNTU_CODENAME=$(. /etc/os-release && echo "$VERSION_CODENAME")
56+
echo "Detected Ubuntu codename: ${UBUNTU_CODENAME}"
57+
5458
# Restrict default sources to amd64 (Ubuntu 24.04+ DEB822 format)
5559
for sources_file in /etc/apt/sources.list.d/*.sources; do
5660
[ -f "$sources_file" ] && sed -i '/^Types: deb$/a Architectures: amd64' "$sources_file"
@@ -62,7 +66,7 @@ if [ "${CROSS_COMPILE}" = "true" ]; then
6266
Types: deb
6367
Architectures: ${DEBIAN_ARCH}
6468
URIs: http://ports.ubuntu.com/ubuntu-ports
65-
Suites: noble noble-updates noble-backports noble-security
69+
Suites: ${UBUNTU_CODENAME} ${UBUNTU_CODENAME}-updates ${UBUNTU_CODENAME}-backports ${UBUNTU_CODENAME}-security
6670
Components: main restricted universe multiverse
6771
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
6872
EOF
@@ -133,6 +137,8 @@ if [ "${CROSS_COMPILE}" = "true" ]; then
133137
export PKG_CONFIG_LIBDIR="/usr/lib/${CROSS_TRIPLE}/pkgconfig:/usr/share/pkgconfig"
134138

135139
# Create CMake toolchain file (based on ReaPack's approach)
140+
# NOTE: CMAKE_SYSTEM_PROCESSOR is hardcoded to arm64 as that's currently the only
141+
# cross-compile target. If adding other architectures, use ${CMAKE_SYSTEM_PROCESSOR} instead.
136142
cat > /tmp/toolchain.cmake <<EOF
137143
set(CMAKE_SYSTEM_NAME Linux)
138144
set(CMAKE_SYSTEM_PROCESSOR arm64)

0 commit comments

Comments
 (0)