Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 86de416

Browse files
[po] auto sync
1 parent 18cd0de commit 86de416

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

library/ossaudiodev.po

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ msgid ""
208208
"usual Unix device semantics). If the device is in non-blocking mode, some "
209209
"data may not be written---see :meth:`writeall`."
210210
msgstr ""
211+
"将一个 :term:`bytes-like object` *data* 写入音频设备并返回写入的字节数。 "
212+
"如果音频设备处于阻塞模式(默认),则总是会写入完整数据(这还是不同于通常的 Unix 设备语义)。 如果设备处于非阻塞模式,则可能会有部分数据未被写入 "
213+
"--- 参见 :meth:`writeall`。"
211214

212215
#: ../../library/ossaudiodev.rst:158 ../../library/ossaudiodev.rst:172
213216
msgid "Writable :term:`bytes-like object` is now accepted."
@@ -223,12 +226,16 @@ msgid ""
223226
" return value, since the amount of data written is always equal to the "
224227
"amount of data supplied."
225228
msgstr ""
229+
"将一个 :term:`bytes-like object` *data* "
230+
"写入音频设备:等待直到音频设备能够接收数据,将根据其所能接收的数据量尽可能多地写入,并重复操作直至 *data* 被完全写入。 "
231+
"如果设备处于阻塞模式(默认),则其效果与 :meth:`write` 相同;:meth:`writeall` 仅适用于非阻塞模式。 "
232+
"它没有返回值,因为写入的数据量总是等于所提供的数据量。"
226233

227234
#: ../../library/ossaudiodev.rst:176
228235
msgid ""
229236
"Audio device objects also support the context management protocol, i.e. they"
230237
" can be used in a :keyword:`with` statement."
231-
msgstr ""
238+
msgstr "音频设备对象还支持上下文管理协议,就是说它们可以在 :keyword:`with` 语句中使用。"
232239

233240
#: ../../library/ossaudiodev.rst:181
234241
msgid ""
@@ -238,18 +245,21 @@ msgid ""
238245
"(this can be useful when consulting the OSS documentation). If the "
239246
"underlying :c:func:`ioctl` fails, they all raise :exc:`OSError`."
240247
msgstr ""
248+
"下列方法各自映射一个 :c:func:`ioctl` 系统调用。 对应关系很明显:例如,:meth:`setfmt` 对应 "
249+
"``SNDCTL_DSP_SETFMT`` ioctl,而 :meth:`sync` 对应 ``SNDCTL_DSP_SYNC`` (这在查阅 OSS "
250+
"文档时很有用)。 如果下层的 :c:func:`ioctl` 失败,它们将引发 :exc:`OSError`。"
241251

242252
#: ../../library/ossaudiodev.rst:190
243253
msgid ""
244254
"Put the device into non-blocking mode. Once in non-blocking mode, there is "
245255
"no way to return it to blocking mode."
246-
msgstr ""
256+
msgstr "将设备转为非阻塞模式。 一旦处于非阻塞模式,将无法将其转回阻塞模式。"
247257

248258
#: ../../library/ossaudiodev.rst:196
249259
msgid ""
250260
"Return a bitmask of the audio output formats supported by the soundcard. "
251261
"Some of the formats supported by OSS are:"
252-
msgstr ""
262+
msgstr "返回声卡所支持的音频输出格式的位掩码。 OSS 支持的一部分格式如下:"
253263

254264
#: ../../library/ossaudiodev.rst:200
255265
msgid "Format"
@@ -266,15 +276,15 @@ msgstr ":const:`AFMT_MU_LAW`"
266276
#: ../../library/ossaudiodev.rst:202
267277
msgid ""
268278
"a logarithmic encoding (used by Sun ``.au`` files and :file:`/dev/audio`)"
269-
msgstr ""
279+
msgstr "一种对数编码格式(被 Sun ``.au`` 文件和 :file:`/dev/audio` 所使用)"
270280

271281
#: ../../library/ossaudiodev.rst:205
272282
msgid ":const:`AFMT_A_LAW`"
273283
msgstr ":const:`AFMT_A_LAW`"
274284

275285
#: ../../library/ossaudiodev.rst:205
276286
msgid "a logarithmic encoding"
277-
msgstr ""
287+
msgstr "一种对数编码格式"
278288

279289
#: ../../library/ossaudiodev.rst:207
280290
msgid ":const:`AFMT_IMA_ADPCM`"
@@ -283,15 +293,15 @@ msgstr ":const:`AFMT_IMA_ADPCM`"
283293
#: ../../library/ossaudiodev.rst:207
284294
msgid ""
285295
"a 4:1 compressed format defined by the Interactive Multimedia Association"
286-
msgstr ""
296+
msgstr "一种 4:1 压缩格式,由 Interactive Multimedia Association 定义"
287297

288298
#: ../../library/ossaudiodev.rst:210
289299
msgid ":const:`AFMT_U8`"
290300
msgstr ":const:`AFMT_U8`"
291301

292302
#: ../../library/ossaudiodev.rst:210
293303
msgid "Unsigned, 8-bit audio"
294-
msgstr ""
304+
msgstr "无符号的 8 位音频"
295305

296306
#: ../../library/ossaudiodev.rst:212
297307
msgid ":const:`AFMT_S16_LE`"

0 commit comments

Comments
 (0)