// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "Profile.hpp"
namespace audio
{
class ProfileRecordingBluetoothHSP : public Profile
{
public:
ProfileRecordingBluetoothHSP(std::function<int32_t()> callback, Gain gain)
: Profile(
"Recording Bluetooth HSP",
Type::RecordingHeadphones,
bsp::AudioDevice::Format{.sampleRate_Hz = 8000,
.bitWidth = 16,
.flags = static_cast<uint32_t>(
bsp::AudioDevice::Flags::InputLeft), // microphone use left audio channel
.outputVolume = 0,
.inputGain = static_cast<float>(gain),
.inputPath = bsp::AudioDevice::InputPath::BluetoothHSP,
.outputPath = bsp::AudioDevice::OutputPath::None},
bsp::AudioDevice::Type::Bluetooth,
callback)
{}
};
} // namespace audio