tpSound类
ExternUtils
2025-07-05
基础信息
头文件: | include <tpSound.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | |
派生类: |
Public 成员函数
tpSound(const tpString &name) | ||
---|---|---|
tpSound(tpAudioInterface *audio) | ||
~tpSound() | ||
setAudio(tpAudioInterface *audio) | 设置绑定的应用,如果社设置应用音量需要绑定应用或者在构造的时候绑定 | |
tpAudioInterface * | getAudio() | 获取已经绑定的应用 |
setVolume(tpUInt8 volume) | 设置应用音量 | |
getVolume() | 获取应用音量 | |
setSystemVolume(tpUInt8 volume) | 设置系统音量 | |
getSystemVolume() | 获取系统音量 | |
static tpList< tpString > | getDevices() | 获取本机声卡设备列表,可直接使用返回的名字创建音频类(内部直接使用tpAudioInterface) |
static tpString | getUsedDevice() | 获取使用中的设备 |
setUsedDevice(const tpString &name) | 设置使用的声卡设备 |
成员函数说明
tpSound::tpSound(const tpString &name)
暂无注释...
tpSound::tpSound(tpAudioInterface *audio)
暂无注释...
tpSound::~tpSound()
暂无注释...
int tpSound::setAudio(tpAudioInterface *audio)
点击查看...
设置绑定的应用,如果社设置应用音量需要绑定应用或者在构造的时候绑定
返回值:
linebreak
tpAudioInterface * tpSound::getAudio()
点击查看...
获取已经绑定的应用
返回值:
linebreak
int tpSound::setVolume(tpUInt8 volume)
点击查看...
设置应用音量
返回值:
linebreak
int tpSound::getVolume()
点击查看...
获取应用音量
返回值:
linebreak
int tpSound::setSystemVolume(tpUInt8 volume)
点击查看...
设置系统音量
返回值:
linebreak
int tpSound::getSystemVolume()
点击查看...
获取系统音量
返回值:
linebreak
static tpList< tpString > tpSound::getDevices()
点击查看...
获取本机声卡设备列表,可直接使用返回的名字创建音频类(内部直接使用tpAudioInterface)
返回值:
linebreak
static tpString tpSound::getUsedDevice()
点击查看...
获取使用中的设备
返回值:
linebreak
static tpBool tpSound::setUsedDevice(const tpString &name)
点击查看...
设置使用的声卡设备
返回值:
linebreak