2022-01-23 15:21:56 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, kleines Filmröllchen <filmroellchen@serenityos.org>.
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Types.h>
|
2025-08-07 14:33:22 -07:00
|
|
|
#include <LibMedia/Export.h>
|
2022-01-23 15:21:56 +01:00
|
|
|
|
|
|
|
|
namespace Audio {
|
|
|
|
|
|
|
|
|
|
// Supported PCM sample formats.
|
2022-03-17 14:38:24 -06:00
|
|
|
enum class PcmSampleFormat : u8 {
|
2022-01-23 15:21:56 +01:00
|
|
|
Uint8,
|
|
|
|
|
Int16,
|
|
|
|
|
Int24,
|
|
|
|
|
Int32,
|
|
|
|
|
Float32,
|
|
|
|
|
Float64,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Most of the read code only cares about how many bits to read or write
|
2025-08-07 14:33:22 -07:00
|
|
|
MEDIA_API u16 pcm_bits_per_sample(PcmSampleFormat format);
|
2024-09-30 14:49:59 +02:00
|
|
|
|
2022-01-23 15:21:56 +01:00
|
|
|
}
|