Skip to content

Commit

Permalink
Libsndfile Sink and Source
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrick87 committed Dec 16, 2023
0 parents commit 2f72148
Show file tree
Hide file tree
Showing 908 changed files with 155,308 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
#
---
BasedOnStyle: WebKit # http://www.webkit.org/coding/coding-style.html

Standard: Cpp03

UseTab: Never
IndentWidth: 4
ColumnLimit: 90
MaxEmptyLinesToKeep: 1
PenaltyBreakComment: 0

AllowShortFunctionsOnASingleLine: None
AllowShortBlocksOnASingleLine: Never

NamespaceIndentation: None

BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Attach

ConstructorInitializerAllOnOneLineOrOnePerLine: false
KeepEmptyLinesAtTheStartOfBlocks: false
SpaceInEmptyBlock: false
SpaceAfterCStyleCast: false

BinPackArguments: true
BinPackParameters: false

AlignAfterOpenBracket: true
AlignTrailingComments: true

FixNamespaceComments: true
4 changes: 4 additions & 0 deletions .fmtignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
src/internal_modules/roc_audio/pcm_format.cpp
src/internal_modules/roc_core/target_libatomic_ops/roc_core/atomic_ops.h
src/tests/roc_audio/test_samples/*.h
src/tests/roc_rtp/test_packets/*.h
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/internal_modules/**/*.h linguist-language=C++
3 changes: 3 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Contributing

Please refer to [Contribution guidelines](https://roc-streaming.org/toolkit/docs/development/contribution_guidelines.html) page for instructions!
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
open_collective: roc-streaming
liberapay: roc-streaming
17 changes: 17 additions & 0 deletions .github/workflows/assign_project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "assign_project"

on:
issues:
types:
- opened

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: alex-page/[email protected]
continue-on-error: true
with:
repo-token: "${{ secrets.REPO_MANAGEMENT }}"
project: "kanban board"
column: "Frontlog"
18 changes: 18 additions & 0 deletions .github/workflows/assign_project_columns.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "assign_project_columns"

on:
issues:
types:
- labeled

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: konradpabjan/[email protected]
continue-on-error: true
with:
action-token: "${{ secrets.REPO_MANAGEMENT }}"
project-url: "https://github.com/roc-streaming/roc-toolkit/projects/2"
column-name: "Help wanted"
label-name: "help wanted"
311 changes: 311 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,311 @@
name: "build"

on:
push:
branches:
- master
- develop
tags:
- v*
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:

linux-x86_64:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- script: linux-x86_64/ubuntu-22.04
image: rocstreaming/env-ubuntu:22.04

- script: linux-x86_64/ubuntu-20.04
image: rocstreaming/env-ubuntu:20.04

- script: linux-x86_64/ubuntu-18.04
image: rocstreaming/env-ubuntu:18.04

- script: linux-x86_64/ubuntu-16.04
image: rocstreaming/env-ubuntu:16.04

- script: linux-x86_64/ubuntu-14.04
image: rocstreaming/env-ubuntu:14.04

- script: linux-x86_64/debian
image: rocstreaming/env-debian

- script: linux-x86_64/fedora
image: rocstreaming/env-fedora

- script: linux-x86_64/opensuse
image: rocstreaming/env-opensuse

- script: linux-x86_64/archlinux
image: rocstreaming/env-archlinux

- script: linux-x86_64/alpine
image: rocstreaming/env-alpine

name: ${{ matrix.script }}
steps:
- name: Pull docker image
run: docker pull ${{ matrix.image }}

- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Build and test
run: |
scripts/ci_checks/docker.sh ${{ matrix.image }} scripts/ci_checks/${{ matrix.script }}.sh
- name: Handle failure
if: failure()
run: |
scripts/ci_checks/failure.sh
linux-arm:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- script: linux-arm/aarch64-linux-gnu-gcc-7.4
image: rocstreaming/toolchain-aarch64-linux-gnu:gcc-7.4

- script: linux-arm/arm-linux-gnueabihf-gcc-4.9
image: rocstreaming/toolchain-arm-linux-gnueabihf:gcc-4.9

- script: linux-arm/arm-bcm2708hardfp-linux-gnueabi-gcc-4.7
image: rocstreaming/toolchain-arm-bcm2708hardfp-linux-gnueabi:gcc-4.7

name: ${{ matrix.script }}
steps:
- name: Pull docker image
run: docker pull ${{ matrix.image }}

- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Build and test
run: |
scripts/ci_checks/docker.sh ${{ matrix.image }} scripts/ci_checks/${{ matrix.script }}.sh
- name: Handle failure
if: failure()
run: |
scripts/ci_checks/failure.sh
linux-checks:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- script: linux-checks/conditional-build
image: rocstreaming/env-ubuntu:nolibs

- script: linux-checks/static-shared
image: rocstreaming/env-ubuntu:nolibs

- script: linux-checks/debug-build
image: rocstreaming/env-ubuntu:nolibs

- script: linux-checks/sanitizers
image: rocstreaming/env-ubuntu

- script: linux-checks/valgrind
image: rocstreaming/env-ubuntu

- script: linux-checks/check-formatting
image: rocstreaming/env-ubuntu

- script: linux-checks/pulseaudio-versions
image: rocstreaming/env-ubuntu

name: ${{ matrix.script }}
steps:
- name: Pull docker image
run: docker pull ${{ matrix.image }}

- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Build and test
run: |
scripts/ci_checks/docker.sh ${{ matrix.image }} scripts/ci_checks/${{ matrix.script }}.sh
- name: Handle failure
if: failure()
run: |
scripts/ci_checks/failure.sh
android-linux:
strategy:
fail-fast: false
matrix:
include:
- image: rocstreaming/toolchain-linux-android:ndk21
toolchain: aarch64-linux-android29
shortname: android29-aarch64

- image: rocstreaming/toolchain-linux-android:ndk21
toolchain: armv7a-linux-androideabi29
shortname: android29-armv7a

- image: rocstreaming/toolchain-linux-android:ndk21
toolchain: x86_64-linux-android29
shortname: android29-x86_64

- image: rocstreaming/toolchain-linux-android:ndk21
toolchain: i686-linux-android29
shortname: android29-i686

runs-on: ubuntu-latest

name: ${{ matrix.shortname }}/linux
steps:
- name: Pull docker image
run: docker pull ${{ matrix.image }}

- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Build
run: |
scripts/ci_checks/docker.sh ${{ matrix.image }} \
scripts/ci_checks/android/linux.sh ${{ matrix.toolchain }}
- name: Handle failure
if: failure()
run: |
scripts/ci_checks/failure.sh
android-macos:
strategy:
fail-fast: false
matrix:
include:
- abi: x86_64
api: 29
ndk: 25.2.9519653
build_tools: 28.0.3
cmake: 3.10.2.4988404
avd_abi: x86_64
avd_img: default

runs-on: macos-latest

env:
ABI: ${{ matrix.abi }}
API: ${{ matrix.api }}
NDK_VERSION: ${{ matrix.ndk }}

name: android${{ matrix.api }}-${{ matrix.abi }}/macos
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Android components
uses: maxim-lobanov/setup-android-tools@v1
with:
cache: true
packages: |
platforms;android-${{ matrix.api }}
build-tools;${{ matrix.build_tools }}
ndk;${{ matrix.ndk }}
cmake;${{ matrix.cmake }}
system-images;android-${{ matrix.api }};${{ matrix.avd_img }};${{ matrix.avd_abi }}
emulator
- name: Install system dependencies
run: |
scripts/ci_checks/android/macos.sh
- name: Build
run: |
scripts/android_emu/run.sh build
- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api }}
arch: ${{ matrix.avd_abi }}
target: ${{ matrix.avd_img }}
avd-name: roc_device
ndk: ${{ matrix.ndk }}
cmake: ${{ matrix.cmake }}
force-avd-creation: false
emulator-options: -no-audio -no-boot-anim -no-window
disable-animations: true
script: |
scripts/android_emu/run.sh prep
scripts/android_emu/run.sh test
- name: Handle failure
if: failure()
run: |
scripts/ci_checks/failure.sh
macos:
strategy:
fail-fast: false
matrix:
include:
- macos-arch: x86_64
macos-version: 11
script: standard-build

- macos-arch: x86_64
macos-version: 12
script: standard-build

- macos-arch: x86_64
macos-version: 13
script: standard-build

- macos-arch: x86_64
macos-version: 13
script: build-3rdparty

- macos-arch: x86_64
macos-version: 13
script: universal-binaries

runs-on: macos-${{ matrix.macos-version }}

name: macos${{ matrix.macos-version }}-${{ matrix.macos-arch }}/${{ matrix.script }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Build and test
run: |
scripts/ci_checks/macos/${{ matrix.script }}.sh
- name: Handle failure
if: failure()
run: |
scripts/ci_checks/failure.sh
Loading

0 comments on commit 2f72148

Please sign in to comment.