2ship2harkinian/Dockerfile
Kenix3 912d46761b Audio Works (#180)
* initial audio work

* Implements caching and fixes a ton of issues with audio

* Uses correct memory sizes in mixer.c

* Resets mixer values

* Actually correct dmem buff values in mixer.c

* Remove breakpoints

* Fix sequences not playing

* The forbidden type.

* Forbidden TYPES?!

* Thanks Louis

* Thanks Louis Part 2

* Fix garbled audio

* Fixed ADSR bugs

* Fixes ASAN crash in loading samples.

This code is causing the game to attempt to read sample data beyond the actual sample data.

* Comments out the sample clamping since we aren't affecting the rest of the calculations in the function.

* Fixes crashing while loading audio samples.

Additionally, lowers the log level for audio commands.

* Textbox SFX UB Fix

* Decreases priority of more debug messages

* Fixed a couple uintptr_t issues

* Adds context to Jack's hack of shortcutting later loading sequences.

* Audio corruption fix

* Few uintptr_t fixes

* Fix build on linux

* Fix build on mac

* call audio exit

* fix sfx in dialog

* unstub more audio funcs

---------

Co-authored-by: Random06457 <28494085+Random06457@users.noreply.github.com>
Co-authored-by: Nicholas Estelami <NEstelami@users.noreply.github.com>
Co-authored-by: louis <35883445+louist103@users.noreply.github.com>
Co-authored-by: Adam Bird <archez39@me.com>
2024-05-22 09:05:01 -05:00

62 lines
1.6 KiB
Docker

FROM ubuntu:latest
ARG MY_XAUTH_COOKIE
ENV LANG C.UTF-8
ARG DEBIAN_FRONTEND=noninteractive
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y \
binutils:i386 \
gcc-12:i386 \
g++-12:i386 && \
ln -sf /usr/bin/python3.10 /usr/bin/python3 && \
ln -s /usr/bin/gcc-12 /usr/bin/gcc && \
ln -s /usr/bin/gcc-12 /usr/bin/cc && \
ln -s /usr/bin/g++-12 /usr/bin/g++ && \
ln -s /usr/bin/g++-12 /usr/bin/c++
RUN apt-get install -y \
libsdl2-dev:i386 \
zlib1g-dev:i386 \
libbz2-dev:i386 \
libpng-dev:i386 \
libboost-dev:i386 \
libgles2-mesa-dev
RUN apt-get install -y \
make \
cmake \
git \
gdb \
lld \
python3.10 \
ninja-build \
lsb-release \
clang-format
RUN git clone https://github.com/Perlmint/glew-cmake.git && \
cmake -B glew-cmake/builddir -S glew-cmake -GNinja && \
cmake --build glew-cmake/builddir && \
cmake --install glew-cmake/builddir --prefix /usr && \
mv /usr/lib/libglew-shared.so /usr/lib/libglew.so
RUN git clone https://github.com/libsdl-org/SDL_net.git -b SDL2 && \
cmake -B SDL_net/build -S SDL_net -DCMAKE_BUILD_TYPE=Release && \
cmake --build SDL_net/build --config Release --parallel && \
cmake --install SDL_net/build --config Release
RUN git clone https://github.com/libsdl-org/SDL.git -b SDL2 && \
cmake -B SDL/build -S SDL -DCMAKE_BUILD_TYPE=Release && \
cmake --build SDL/build --config Release --parallel && \
cmake --install SDL/build --config Release
RUN touch /root/.Xauthority && \
xauth add $MY_XAUTH_COOKIE
RUN mkdir /2ship
WORKDIR /2ship