Renamed func params to something more natural

This commit is contained in:
emeric
2026-02-17 23:15:44 +01:00
parent 6742c99ed8
commit cea3cad6e1
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ extern "C"
namespace lms::audio
{
std::unique_ptr<IPcmDecoder> createPcmDecoder(const std::filesystem::path& filePath, const PcmDecoderParameters& parameters)
std::unique_ptr<IPcmDecoder> createPcmDecoder(const std::filesystem::path& filePath, const PcmOutputParameters& parameters)
{
return std::make_unique<ffmpeg::PcmDecoder>(filePath, parameters);
}
@@ -69,7 +69,7 @@ namespace lms::audio::ffmpeg
}
} // namespace
PcmDecoder::PcmDecoder(const std::filesystem::path& filePath, const PcmDecoderParameters& parameters)
PcmDecoder::PcmDecoder(const std::filesystem::path& filePath, const PcmOutputParameters& parameters)
: _parameters{ parameters }
{
if (_parameters.channelCount > AV_NUM_DATA_POINTERS)
+2 -2
View File
@@ -28,7 +28,7 @@ namespace lms::audio::ffmpeg
class PcmDecoder : public IPcmDecoder
{
public:
PcmDecoder(const std::filesystem::path& filePath, const PcmDecoderParameters& parameters);
PcmDecoder(const std::filesystem::path& filePath, const PcmOutputParameters& parameters);
~PcmDecoder() override;
PcmDecoder(const PcmDecoder&) = delete;
@@ -43,7 +43,7 @@ namespace lms::audio::ffmpeg
std::size_t drainResampler(std::span<WritableBuffer> outputChannelBuffers, std::size_t maxSamplesPerChannel);
std::size_t getEstimatedResamplerAvailableSamples() const;
const PcmDecoderParameters _parameters;
const PcmOutputParameters _parameters;
bool _finished{};
bool _eof{};
+2 -2
View File
@@ -35,7 +35,7 @@ namespace lms::audio
Float64,
};
struct PcmDecoderParameters
struct PcmOutputParameters
{
unsigned channelCount;
unsigned sampleRate;
@@ -61,5 +61,5 @@ namespace lms::audio
};
// Throw on error
std::unique_ptr<IPcmDecoder> createPcmDecoder(const std::filesystem::path& filePath, const PcmDecoderParameters& parameters);
std::unique_ptr<IPcmDecoder> createPcmDecoder(const std::filesystem::path& filePath, const PcmOutputParameters& parameters);
} // namespace lms::audio