Python 标准库参考指南 2.7.18 ossaudiodev supersedes. ossaudiodev.openmixer([device]) Open a mixer device and return an OSS mixer device object. device is the mixer device filename to use. If it is not specified, this module first looks in the environment variable MIXERDEV for a device to use. If not found, it falls back to /dev/mixer. 21.10.1 Audio Device Objects Before you can write to or read from an audio device, you must call 21.10.2 Mixer Device Objects The mixer object provides two file-like methods: oss_mixer_device.close() This method closes the open mixer device file. Any further attempts to use the mixer after this0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 ossaudiodev supersedes. ossaudiodev.openmixer([device]) Open a mixer device and return an OSS mixer device object. device is the mixer device filename to use. If it is not specified, this module first looks in the environment variable MIXERDEV for a device to use. If not found, it falls back to /dev/mixer. 21.10.1 Audio Device Objects Before you can write to or read from an audio device, you must call 21.10.2 Mixer Device Objects The mixer object provides two file-like methods: oss_mixer_device.close() This method closes the open mixer device file. Any further attempts to use the mixer after this0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 ossaudiodev supersedes. ossaudiodev.openmixer([device]) Open a mixer device and return an OSS mixer device object. device is the mixer device filename to use. If it is not specified, this module first looks in the environment variable MIXERDEV for a device to use. If not found, it falls back to /dev/mixer. 21.10.1 Audio Device Objects Before you can write to or read from an audio device, you must call 21.10.2 Mixer Device Objects The mixer object provides two file-like methods: oss_mixer_device.close() This method closes the open mixer device file. Any further attempts to use the mixer after this0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 3.6.15 ossaudiodev supersedes. ossaudiodev.openmixer([device]) Open a mixer device and return an OSS mixer device object. device is the mixer device filename to use. If it is not specified, this module first looks in the environment variable MIXERDEV for a device to use. If not found, it falls back to /dev/mixer. 22.9.1 Audio Device Objects Before you can write to or read from an audio device, you must call 22.9.2 Mixer Device Objects The mixer object provides two file-like methods: oss_mixer_device.close() This method closes the open mixer device file. Any further attempts to use the mixer after this0 码力 | 1886 页 | 8.95 MB | 9 月前3
Python 标准库参考指南 3.6.15 ossaudiodev supersedes. ossaudiodev.openmixer([device]) Open a mixer device and return an OSS mixer device object. device is the mixer device filename to use. If it is not specified, this module first looks in the environment variable MIXERDEV for a device to use. If not found, it falls back to /dev/mixer. 22.9.1 Audio Device Objects Before you can write to or read from an audio device, you must call 22.9.2 Mixer Device Objects The mixer object provides two file-like methods: oss_mixer_device.close() This method closes the open mixer device file. Any further attempts to use the mixer after this0 码力 | 1886 页 | 8.95 MB | 9 月前3
Python 标准库参考指南 3.7.13 打开一个混音设备并返回 OSS 混音设备对象。device 是要使用的混音设备文件名。如果未指定,则 此模块会先在环境变量 MIXERDEV 中查找要使用的设备。如果未找到,它将回退为 /dev/mixer。 23.9.1 音频设备对象 在你写入或读取音频设备之前,你必须按照正确的顺序调用三个方法: 1. setfmt() 设置输出格式 2. channels() 设置声道数量 3. speed() 混音器对象提供了两个文件类方法: oss_mixer_device.close() 此方法会关闭打开的混音器设备文件。在文件被关闭后任何继续使用混音器的尝试都将引 发OSError。 oss_mixer_device.fileno() 返回打开的混音器设备文件的文件处理句柄号。 在 3.2 版更改: 混音器设备还支持上下文管理协议。 其余方法都是混音专属的: oss_mixer_device.controls() 道”, 例 如 SOUND_MIXER_PCM 或 SOUND_MIXER_SYNTH)。该掩码会指定所有可用混音控件的一个子集 - -- 它们是在模块层级上定义的 SOUND_MIXER_* 常量。举例来说,要确定当前混音器对象是否支 持 PCM 混音器,就使用以下 Python 代码: mixer=ossaudiodev.openmixer() if mixer.controls() & (10 码力 | 1846 页 | 9.09 MB | 9 月前3
Python 标准库参考指南 3.7.13 打开一个混音设备并返回 OSS 混音设备对象。device 是要使用的混音设备文件名。如果未指定,则此 模块会先在环境变量 MIXERDEV 中查找要使用的设备。如果未找到,它将回退为 /dev/mixer。 23.9. ossaudiodev --- 访问兼容 OSS 的音频设备 1265 The Python Library Reference, 发布 3.7.13 23.9.1 音频设备对象 混音器对象提供了两个文件类方法: oss_mixer_device.close() 此方法会关闭打开的混音器设备文件。在文件被关闭后任何继续使用混音器的尝试都将引发OSError。 oss_mixer_device.fileno() 返回打开的混音器设备文件的文件处理句柄号。 在 3.2 版更改: 混音器设备还支持上下文管理协议。 其余方法都是混音专属的: oss_mixer_device.controls() 道”, 例 如 SOUND_MIXER_PCM 或 SOUND_MIXER_SYNTH)。该掩码会指定所有可用混音控件的一个子集 --- 它们 是在模块层级上定义的 SOUND_MIXER_* 常量。举例来说,要确定当前混音器对象是否支持 PCM 混 音器,就使用以下 Python 代码: mixer=ossaudiodev.openmixer() if mixer.controls() & (10 码力 | 1961 页 | 9.14 MB | 9 月前3
Python 标准库参考指南 3.8.20 打开一个混音设备并返回 OSS 混音设备对象。device 是要使用的混音设备文件名。如果未指定,则 此模块会先在环境变量 MIXERDEV 中查找要使用的设备。如果未找到,它将回退为 /dev/mixer。 22.9.1 音频设备对象 在你写入或读取音频设备之前,你必须按照正确的顺序调用三个方法: 1. setfmt() 设置输出格式 2. channels() 设置声道数量 3. speed() 混音器对象提供了两个文件类方法: oss_mixer_device.close() 此方法会关闭打开的混音器设备文件。在文件被关闭后任何继续使用混音器的尝试都将引 发OSError。 oss_mixer_device.fileno() 返回打开的混音器设备文件的文件句柄号。 在 3.2 版更改: 混音器设备还支持上下文管理协议。 其余方法都是混音专属的: oss_mixer_device.controls() 道”, 例 如 SOUND_MIXER_PCM 或 SOUND_MIXER_SYNTH)。该掩码会指定所有可用混音控件的一个子集 - -- 它们是在模块层级上定义的 SOUND_MIXER_* 常量。举例来说,要确定当前混音器对象是否支 持 PCM 混音器,就使用以下 Python 代码: mixer=ossaudiodev.openmixer() if mixer.controls() & (10 码力 | 1927 页 | 9.69 MB | 9 月前3
Python 标准库参考指南 3.8.20 打开一个混音设备并返回 OSS 混音设备对象。device 是要使用的混音设备文件名。如果未指定,则 此模块会先在环境变量 MIXERDEV 中查找要使用的设备。如果未找到,它将回退为 /dev/mixer。 22.9.1 音频设备对象 在你写入或读取音频设备之前,你必须按照正确的顺序调用三个方法: 1. setfmt() 设置输出格式 2. channels() 设置声道数量 3. speed() 混音器对象提供了两个文件类方法: oss_mixer_device.close() 此方法会关闭打开的混音器设备文件。在文件被关闭后任何继续使用混音器的尝试都将引 发OSError。 oss_mixer_device.fileno() 返回打开的混音器设备文件的文件句柄号。 在 3.2 版更改: 混音器设备还支持上下文管理协议。 其余方法都是混音专属的: oss_mixer_device.controls() 道”, 例 如 SOUND_MIXER_PCM 或 SOUND_MIXER_SYNTH)。该掩码会指定所有可用混音控件的一个子集 - -- 它们是在模块层级上定义的 SOUND_MIXER_* 常量。举例来说,要确定当前混音器对象是否支 持 PCM 混音器,就使用以下 Python 代码: mixer=ossaudiodev.openmixer() if mixer.controls() & (10 码力 | 1927 页 | 9.69 MB | 9 月前3
Python 标准库参考指南 3.8.20 打开一个混音设备并返回 OSS 混音设备对象。device 是要使用的混音设备文件名。如果未指定,则此 模块会先在环境变量 MIXERDEV 中查找要使用的设备。如果未找到,它将回退为 /dev/mixer。 22.9. ossaudiodev --- 访问兼容 OSS 的音频设备 1333 The Python Library Reference, 发布 3.8.20 22.9.1 音频设备对象 混音器对象提供了两个文件类方法: oss_mixer_device.close() 此方法会关闭打开的混音器设备文件。在文件被关闭后任何继续使用混音器的尝试都将引发OSError。 oss_mixer_device.fileno() 返回打开的混音器设备文件的文件句柄号。 在 3.2 版更改: 混音器设备还支持上下文管理协议。 其余方法都是混音专属的: oss_mixer_device.controls() 道”, 例 如 SOUND_MIXER_PCM 或 SOUND_MIXER_SYNTH)。该掩码会指定所有可用混音控件的一个子集 --- 它们 是在模块层级上定义的 SOUND_MIXER_* 常量。举例来说,要确定当前混音器对象是否支持 PCM 混 音器,就使用以下 Python 代码: mixer=ossaudiodev.openmixer() if mixer.controls() & (10 码力 | 2052 页 | 9.74 MB | 9 月前3
共 18 条
- 1
- 2













