tpBluetoothAudioDevice类
ExternUtils
2025-07-05
介绍
本机蓝牙连接蓝牙音频设备并播放音频
基础信息
头文件: | include <tpBluetoothAudioDevice.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | |
派生类: |
Public 类型
enum tpAudioProfileType {
TP_PROFILE_AUDIO_SOURCE, TP_PROFILE_AUDIO_SINK, TP_PROFILE_AUDIO_HEADSET
}
Public 成员函数
tpBluetoothAudioDevice(const tpString &local, const tpBluetoothDevice &other) | ||
---|---|---|
tpBluetoothAudioDevice(const tpString &local, const tpBluetoothAddress &address) | ||
~tpBluetoothAudioDevice() | ||
connectToDevice() | 连接到蓝牙多媒体设备 | |
disconnectDevice() | 和蓝牙多媒体设备断开连接 | |
tpString | getDevice() | 获取连接的设备名 |
成员枚举类型说明
enum tpBluetoothAudioDevice::tpAudioProfileType
名称 | 值 | 描述 |
---|---|---|
TP_PROFILE_AUDIO_SOURCE | 0 | |
TP_PROFILE_AUDIO_SINK | 1 | |
TP_PROFILE_AUDIO_HEADSET | 2 |
成员函数说明
tpBluetoothAudioDevice::tpBluetoothAudioDevice(const tpString &local, const tpBluetoothDevice &other)
暂无注释...
tpBluetoothAudioDevice::tpBluetoothAudioDevice(const tpString &local, const tpBluetoothAddress &address)
暂无注释...
tpBluetoothAudioDevice::~tpBluetoothAudioDevice()
暂无注释...
int tpBluetoothAudioDevice::connectToDevice()
点击查看...
连接到蓝牙多媒体设备
返回值:
linebreak
int tpBluetoothAudioDevice::disconnectDevice()
点击查看...
和蓝牙多媒体设备断开连接
返回值:
linebreak
tpString tpBluetoothAudioDevice::getDevice()
点击查看...
获取连接的设备名
返回值:
linebreak