Commit 7f6b5439 authored by Matthew Gregan's avatar Matthew Gregan Committed by Pier Angelo Vendrame
Browse files

Bug 2029281 - Update libcubeb to 626d7d9f906e9f3cfb70be9e58af0f5a5f399a74. ...

Bug 2029281 - Update libcubeb to 626d7d9f906e9f3cfb70be9e58af0f5a5f399a74.  r=cubeb-reviewers,pehrsons

Differential Revision: https://phabricator.services.mozilla.com/D292234
parent a76c0b82
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -9,8 +9,8 @@ origin:
  description: "Cross platform audio library"
  url: https://github.com/mozilla/cubeb
  license: ISC
  release: f8633c0c9217ed5499fdda391946d416c52e6809 (2025-03-10T14:18:35Z).
  revision: f8633c0c9217ed5499fdda391946d416c52e6809
  release: 626d7d9f906e9f3cfb70be9e58af0f5a5f399a74 (2026-04-06T09:02:00Z).
  revision: 626d7d9f906e9f3cfb70be9e58af0f5a5f399a74

vendoring:
  url: https://github.com/mozilla/cubeb
+13 −2
Original line number Diff line number Diff line
@@ -405,12 +405,15 @@ cbjack_process(jack_nframes_t nframes, void * arg)

  for (int j = 0; j < MAX_STREAMS; j++) {
    cubeb_stream * stm = &ctx->streams[j];
    float * bufs_out[stm->out_params.channels];
    float * bufs_in[stm->in_params.channels];

    if (!stm->in_use)
      continue;

    float * bufs_out[MAX_CHANNELS] = {};
    float * bufs_in[MAX_CHANNELS] = {};
    XASSERT(stm->out_params.channels <= MAX_CHANNELS);
    XASSERT(stm->in_params.channels <= MAX_CHANNELS);

    // handle xruns by skipping audio that should have been played
    stm->position += t_jack_xruns * ctx->fragment_size * stm->ratio;

@@ -851,6 +854,14 @@ cbjack_stream_init(cubeb * context, cubeb_stream ** stream,
    return CUBEB_ERROR_INVALID_FORMAT;
  }

  if ((output_stream_params &&
       (output_stream_params->channels < 1 ||
        output_stream_params->channels > MAX_CHANNELS)) ||
      (input_stream_params && (input_stream_params->channels < 1 ||
                               input_stream_params->channels > MAX_CHANNELS))) {
    return CUBEB_ERROR_INVALID_FORMAT;
  }

  if ((input_device && input_device != JACK_DEFAULT_IN) ||
      (output_device && output_device != JACK_DEFAULT_OUT)) {
    return CUBEB_ERROR_NOT_SUPPORTED;