From 1960d6e08a949ceed50e6a18240d40a7ecee879c Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Sun, 3 Nov 2019 14:14:26 -0500 Subject: Revert "Issue #1267 - Part 1: Update libcubeb to a1200c34." This reverts commit d162ecbaffe845c9707da5d2f6cab11f343ef00e. --- media/libcubeb/src/cubeb_utils.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 media/libcubeb/src/cubeb_utils.cpp (limited to 'media/libcubeb/src/cubeb_utils.cpp') diff --git a/media/libcubeb/src/cubeb_utils.cpp b/media/libcubeb/src/cubeb_utils.cpp deleted file mode 100644 index 85572a9fe..000000000 --- a/media/libcubeb/src/cubeb_utils.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright © 2018 Mozilla Foundation - * - * This program is made available under an ISC-style license. See the - * accompanying file LICENSE for details. - */ - -#include "cubeb_utils.h" - -size_t cubeb_sample_size(cubeb_sample_format format) -{ - switch (format) { - case CUBEB_SAMPLE_S16LE: - case CUBEB_SAMPLE_S16BE: - return sizeof(int16_t); - case CUBEB_SAMPLE_FLOAT32LE: - case CUBEB_SAMPLE_FLOAT32BE: - return sizeof(float); - default: - // should never happen as all cases are handled above. - assert(false); - } -} -- cgit v1.2.3