Bump to 1.3.3 and add PCM layout streaming input
ci / ubuntu-latest (push) Failing after 14s
ci / macos-latest (push) Canceled after 0s
ci / windows-latest (push) Canceled after 0s
ci / release (push) Canceled after 0s

- Add JOC_STREAM_IN_PCM_LAYOUT for interleaved 48 kHz float32 PCM with
  2.0/5.1/7.1 auto layout detection.
- Isolate PCM channel mapping and fixed object positions in the new
  virtual_speaker module; the stream only schedules it.
- Apply the master gain once inside virtual_speaker for the PCM path, while
  the E-AC-3/JOC path keeps its existing rebuild gain.
- Add the multichannel binaural CLI, rational resampler and float32 WAV I/O.
- Extend tests for the multichannel/resampling paths.
This commit is contained in:
TheM14 committed 2026-11-12 14:31:43 +08:00
1 parent 787984afe5
commit 6edcabf777
16 files changed
+1170 -9

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
// Minimal RIFF/WAVE reader and float32 writer for the multichannel binaural
// frontend. It accepts the formats ffmpeg writes for PCM input: 16/24/32-bit
// integer, 32/64-bit float, including WAVE_FORMAT_EXTENSIBLE.
#pragma once
#include <cstdint>
#include <string>
#include <vector>
#include "foundation/status.h"
namespace joc::io {
struct WavAudio {
std::uint32_t sample_rate = 0;
std::uint16_t channels = 0;
std::vector<float> samples; // interleaved
};
Status read_wav_file(const std::string& path, WavAudio* out);
Status write_wav_float32(const std::string& path, std::uint32_t sample_rate,
std::uint16_t channels, const float* interleaved, std::size_t frames);
} // namespace joc::io