Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/units/?format=api&page=52
https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/units/?format=api&page=53", "previous": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/units/?format=api&page=51", "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "There are two main interfaces that a sound driver will usually provide: <emphasis>CHANNEL</emphasis> and either <emphasis>MIXER</emphasis> or <emphasis>AC97</emphasis>." ], "previous_source": "", "target": [ "声音驱动程序通常提供两种主要的接口: <emphasis>CHANNEL</emphasis>以及 <emphasis>MIXER</emphasis>或<emphasis>AC97</emphasis>。" ], "id_hash": -2890464868740654349, "content_hash": -2890464868740654349, "location": "book.translate.xml:23037", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2585, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/104715/?format=api", "priority": 100, "id": 36796, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=57e3018426f79af3", "url": "https://translate-dev.freebsd.org/api/units/36796/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:15.975816Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The <emphasis>AC97</emphasis> interface is a very small hardware access (register read/write) interface, implemented by drivers for hardware with an AC97 codec. In this case, the actual MIXER interface is provided by the shared AC97 code in <filename>pcm</filename>." ], "previous_source": "", "target": [ "<emphasis>AC97</emphasis>是一个很小的硬件访问(寄存器读/写) 接口,由驱动程序为带AC97编码解码器的硬件来实现。这种情况下,实际的 MIXER接口由<filename>pcm</filename>中共享的AC97代码提供。" ], "id_hash": -8139956712936060000, "content_hash": -8139956712936060000, "location": "book.translate.xml:23041", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2586, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 37, "source_unit": "https://translate-dev.freebsd.org/api/units/104716/?format=api", "priority": 100, "id": 36797, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=0f09107f3663cba0", "url": "https://translate-dev.freebsd.org/api/units/36797/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:15.988747Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The CHANNEL Interface" ], "previous_source": "", "target": [ "CHANNEL接口" ], "id_hash": 631691397171440830, "content_hash": 631691397171440830, "location": "book.translate.xml:23048", "context": "", "note": "(itstool) path: sect2/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2587, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/104717/?format=api", "priority": 100, "id": 36798, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=88c437fa9812ecbe", "url": "https://translate-dev.freebsd.org/api/units/36798/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.003301Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Common Notes for Function Parameters" ], "previous_source": "", "target": [ "函数参数的通常注意事项" ], "id_hash": -8102721298539143296, "content_hash": -8102721298539143296, "location": "book.translate.xml:23051", "context": "", "note": "(itstool) path: sect3/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2588, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/104718/?format=api", "priority": 100, "id": 36799, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=0f8d59e8b6951f80", "url": "https://translate-dev.freebsd.org/api/units/36799/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.016816Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Sound drivers usually have a private data structure to describe their device, and one structure for each play and record data channel that it supports." ], "previous_source": "", "target": [ "声音驱动程序通常用一个私有数据结构来描述他们的设备,驱动 程序所支持的播放和录音数据通道各有一个。" ], "id_hash": 5075167779305697810, "content_hash": 5075167779305697810, "location": "book.translate.xml:23053", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2589, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/104719/?format=api", "priority": 100, "id": 36800, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=c66e9e34b5063212", "url": "https://translate-dev.freebsd.org/api/units/36800/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.022634Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "For all CHANNEL interface functions, the first parameter is an opaque pointer." ], "previous_source": "", "target": [ "对于所有的CHANNEL接口函数,第一个参数是一个不透明的指针。" ], "id_hash": 5933796081458489770, "content_hash": 5933796081458489770, "location": "book.translate.xml:23057", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2590, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/104720/?format=api", "priority": 100, "id": 36801, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=d2591418f4f029aa", "url": "https://translate-dev.freebsd.org/api/units/36801/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.034906Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The second parameter is a pointer to the private channel data structure, except for <function>channel_init()</function> which has a pointer to the private device structure (and returns the channel pointer for further use by <filename>pcm</filename>)." ], "previous_source": "", "target": [ "第二个参数是指向私有的通道数据结构的指针, <function>channel_init()</function>是个例外,它的指针指向私有 设备结构(并返回由<filename>pcm</filename>以后使用的通道指针)。" ], "id_hash": -5890962207269254501, "content_hash": -5890962207269254501, "location": "book.translate.xml:23060", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2591, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 34, "source_unit": "https://translate-dev.freebsd.org/api/units/104721/?format=api", "priority": 100, "id": 36802, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=2e3f19158a770a9b", "url": "https://translate-dev.freebsd.org/api/units/36802/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.042986Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Overview of Data Transfer Operations" ], "previous_source": "", "target": [ "数据传输操作概览" ], "id_hash": -8974872802251669552, "content_hash": -8974872802251669552, "location": "book.translate.xml:23069", "context": "", "note": "(itstool) path: sect3/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2592, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/104722/?format=api", "priority": 100, "id": 36803, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=0372d8bcbd797fd0", "url": "https://translate-dev.freebsd.org/api/units/36803/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.049055Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "For sound data transfers, the <filename>pcm</filename> core and the sound drivers communicate through a shared memory area, described by a <varname remap=\"structname\">struct snd_dbuf</varname>." ], "previous_source": "", "target": [ "对于声音数据传输,<filename>pcm</filename>核心与声音驱动 程序是通过一个由<varname remap=\"structname\">struct snd_dbuf</varname>描述的 共享内存区域进行通信的。" ], "id_hash": 4729945075218481736, "content_hash": 4729945075218481736, "location": "book.translate.xml:23071", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2593, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 23, "source_unit": "https://translate-dev.freebsd.org/api/units/104723/?format=api", "priority": 100, "id": 36804, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=c1a423fc4f818248", "url": "https://translate-dev.freebsd.org/api/units/36804/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.064040Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<varname remap=\"structname\">struct snd_dbuf</varname> is private to <filename>pcm</filename>, and sound drivers obtain values of interest by calls to accessor functions (<function>sndbuf_getxxx()</function>)." ], "previous_source": "", "target": [ "<varname remap=\"structname\">struct snd_dbuf</varname>是 <filename>pcm</filename>私有的,声音驱动程序通过调用访问者 函数(<function>sndbuf_getxxx()</function>)来获得感兴趣的值。" ], "id_hash": 3259159571470467317, "content_hash": 3259159571470467317, "location": "book.translate.xml:23077", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2594, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate-dev.freebsd.org/api/units/104724/?format=api", "priority": 100, "id": 36805, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=ad3adc5ccbcfc0f5", "url": "https://translate-dev.freebsd.org/api/units/36805/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.074370Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The shared memory area has a size of <function>sndbuf_getsize()</function> and is divided into fixed size blocks of <function>sndbuf_getblksz()</function> bytes." ], "previous_source": "", "target": [ "共享内存区域的大小等于 <function>sndbuf_getsize()</function>,并被分割为大小固定,且等于 <function>sndbuf_getblksz()</function>字节的很多块。" ], "id_hash": 6692355417098420087, "content_hash": 6692355417098420087, "location": "book.translate.xml:23082", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2595, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/104725/?format=api", "priority": 100, "id": 36806, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=dce005cb52cfff77", "url": "https://translate-dev.freebsd.org/api/units/36806/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.090428Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "When playing, the general transfer mechanism is as follows (reverse the idea for recording):" ], "previous_source": "", "target": [ "当播放时,常规的传输机制如下(将意思反过来就是录音):" ], "id_hash": -6243340340314989916, "content_hash": -6243340340314989916, "location": "book.translate.xml:23087", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2596, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/104726/?format=api", "priority": 100, "id": 36807, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=295b330a03a89aa4", "url": "https://translate-dev.freebsd.org/api/units/36807/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.097168Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<filename>pcm</filename> initially fills up the buffer, then calls the sound driver's <link linkend=\"channel-trigger\"> <function>xxxchannel_trigger()</function></link> function with a parameter of PCMTRIG_START." ], "previous_source": "", "target": [ "<filename>pcm</filename>开始时填充缓冲区,然后以 参数PCMTRIG_START调用声音驱动程序的<link linkend=\"channel-trigger\"> <function>xxxchannel_trigger()</function></link> 。" ], "id_hash": -8941926655204358951, "content_hash": -8941926655204358951, "location": "book.translate.xml:23092", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2597, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate-dev.freebsd.org/api/units/104727/?format=api", "priority": 100, "id": 36808, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=03e7e5155cf284d9", "url": "https://translate-dev.freebsd.org/api/units/36808/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.103554Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The sound driver then arranges to repeatedly transfer the whole memory area (<function>sndbuf_getbuf()</function>, <function>sndbuf_getsize()</function>) to the device, in blocks of <function>sndbuf_getblksz()</function> bytes. It calls back the <function>chn_intr()</function> <filename>pcm</filename> function for each transferred block (this will typically happen at interrupt time)." ], "previous_source": "", "target": [ "声音驱动程序接着安排以 <function>sndbuf_getblksz()</function>字节大小为块,重复将 整个内存区域(<function>sndbuf_getbuf()</function>, <function>sndbuf_getsize()</function>)传输到设备。对于每个 传输块回调<filename>pcm</filename>函数 <function>chn_intr()</function>(这通常在中断时间发生)。" ], "id_hash": -8789663190299851974, "content_hash": -8789663190299851974, "location": "book.translate.xml:23099", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2598, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 40, "source_unit": "https://translate-dev.freebsd.org/api/units/104728/?format=api", "priority": 100, "id": 36809, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=0604d7e5e6d9c33a", "url": "https://translate-dev.freebsd.org/api/units/36809/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.109694Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<function>chn_intr()</function> arranges to copy new data to the area that was transferred to the device (now free), and make appropriate updates to the <varname remap=\"structname\">snd_dbuf</varname> structure." ], "previous_source": "", "target": [ "<function>chn_intr()</function>安排将新数据拷贝到那些 数据已传输到设备(现在空闲)的区域,并对 <varname remap=\"structname\">snd_dbuf</varname>结构进行适当的更新。" ], "id_hash": 6194495832447415910, "content_hash": 6194495832447415910, "location": "book.translate.xml:23111", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2599, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 26, "source_unit": "https://translate-dev.freebsd.org/api/units/104729/?format=api", "priority": 100, "id": 36810, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=d5f74523c7aa7666", "url": "https://translate-dev.freebsd.org/api/units/36810/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.133122Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "channel_init" ], "previous_source": "", "target": [ "channel_init" ], "id_hash": -8606830002198920789, "content_hash": -8606830002198920789, "location": "book.translate.xml:23120", "context": "", "note": "(itstool) path: sect3/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2600, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/104730/?format=api", "priority": 100, "id": 36811, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=088e65b6c4c241ab", "url": "https://translate-dev.freebsd.org/api/units/36811/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.156913Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<function>xxxchannel_init()</function> is called to initialize each of the play or record channels. The calls are initiated from the sound driver attach routine. (See the <link linkend=\"pcm-probe-and-attach\">probe and attach section</link>)." ], "previous_source": "", "target": [ "调用<function>xxxchannel_init()</function>来初始化每个播放 和录音通道。这个调用从声音驱动程序的连接例程中发起。(参看 <link linkend=\"pcm-probe-and-attach\">探测和连接</link>一节)。" ], "id_hash": -8048752731196082746, "content_hash": -8048752731196082746, "location": "book.translate.xml:23122", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2601, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 29, "source_unit": "https://translate-dev.freebsd.org/api/units/104731/?format=api", "priority": 100, "id": 36812, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=104d1608fc1a35c6", "url": "https://translate-dev.freebsd.org/api/units/36812/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.182869Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ " static void *\n xxxchannel_init(kobj_t obj, void *data,\n struct snd_dbuf *b, struct pcm_channel *c, int dir)<co xml:id=\"co-chinit-params\"/>\n {\n struct xxx_info *sc = data;\n struct xxx_chinfo *ch;\n ...\n return ch;<co xml:id=\"co-chinit-return\"/>\n }" ], "previous_source": "", "target": [ " static void *\n xxxchannel_init(kobj_t obj, void *data,\n struct snd_dbuf *b, struct pcm_channel *c, int dir)<co xml:id=\"co-chinit-params\"/>\n {\n struct xxx_info *sc = data;\n struct xxx_chinfo *ch;\n ...\n return ch;<co xml:id=\"co-chinit-return\"/>\n }" ], "id_hash": -2292294492663591861, "content_hash": -2292294492663591861, "location": "book.translate.xml:23128", "context": "", "note": "(itstool) path: sect3/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2602, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 30, "source_unit": "https://translate-dev.freebsd.org/api/units/104732/?format=api", "priority": 100, "id": 36813, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=6030224dd433cc4b", "url": "https://translate-dev.freebsd.org/api/units/36813/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.204530Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<varname>b</varname> is the address for the channel <varname remap=\"structname\">struct snd_dbuf</varname>. It should be initialized in the function by calling <function>sndbuf_alloc()</function>. The buffer size to use is normally a small multiple of the 'typical' unit transfer size for your device." ], "previous_source": "", "target": [ "<varname>b</varname>为通道 <varname remap=\"structname\">struct snd_dbuf</varname>的地址。它应当在 函数中通过调用<function>sndbuf_alloc()</function>来初始化。 所用的缓冲区大小通常是设备'典型'传输大小的一个较小的倍数。" ], "id_hash": 2146477230393176507, "content_hash": 2146477230393176507, "location": "book.translate.xml:23140", "context": "", "note": "(itstool) path: callout/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2603, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 39, "source_unit": "https://translate-dev.freebsd.org/api/units/104733/?format=api", "priority": 100, "id": 36814, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=9dc9d1ab240cb1bb", "url": "https://translate-dev.freebsd.org/api/units/36814/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.258769Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<varname>c</varname> is the <filename>pcm</filename> channel control structure pointer. This is an opaque object. The function should store it in the local channel structure, to be used in later calls to <filename>pcm</filename> (ie: <function>chn_intr(c)</function>)." ], "previous_source": "", "target": [ "<varname>c</varname>为 <filename>pcm</filename>通道控制结构的指针。这是个不透明 指针。函数应当将它保存到局部通道结构中,在后面调用 <filename>pcm</filename>函数(例如: <function>chn_intr(c)</function>)时会使用它。" ], "id_hash": 1446931208690529447, "content_hash": 1446931208690529447, "location": "book.translate.xml:23147", "context": "", "note": "(itstool) path: callout/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2604, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 33, "source_unit": "https://translate-dev.freebsd.org/api/units/104734/?format=api", "priority": 100, "id": 36815, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=94148844a46cf4a7", "url": "https://translate-dev.freebsd.org/api/units/36815/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.272357Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<varname>dir</varname> indicates the channel direction (<literal>PCMDIR_PLAY</literal> or <literal>PCMDIR_REC</literal>)." ], "previous_source": "", "target": [ "<varname>dir</varname>指示通道方向 (<literal>PCMDIR_PLAY</literal>或 <literal>PCMDIR_REC</literal>)。" ], "id_hash": 2834234962373057165, "content_hash": 2834234962373057165, "location": "book.translate.xml:23154", "context": "", "note": "(itstool) path: callout/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2605, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/104735/?format=api", "priority": 100, "id": 36816, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=a75539ae8e3d1a8d", "url": "https://translate-dev.freebsd.org/api/units/36816/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.288746Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The function should return a pointer to the private area used to control this channel. This will be passed as a parameter to other channel interface calls." ], "previous_source": "", "target": [ "函数应当返回一个指针,此指针指向用于控制此通道的私有 区域。它将作为参数被传递到对其他通道接口的调用。" ], "id_hash": 6321371077314978555, "content_hash": 6321371077314978555, "location": "book.translate.xml:23160", "context": "", "note": "(itstool) path: callout/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2606, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 27, "source_unit": "https://translate-dev.freebsd.org/api/units/104736/?format=api", "priority": 100, "id": 36817, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=d7ba0580b4c9a2fb", "url": "https://translate-dev.freebsd.org/api/units/36817/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.299251Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "channel_setformat" ], "previous_source": "", "target": [ "channel_setformat" ], "id_hash": -4983776624909490924, "content_hash": -4983776624909490924, "location": "book.translate.xml:23168", "context": "", "note": "(itstool) path: sect3/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2607, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/104737/?format=api", "priority": 100, "id": 36818, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=3ad61190985fe514", "url": "https://translate-dev.freebsd.org/api/units/36818/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.310400Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<function>xxxchannel_setformat()</function> should set up the hardware for the specified channel for the specified sound format." ], "previous_source": "", "target": [ "<function>xxxchannel_setformat()</function>应当按特定通道, 特定声音格式设置硬件。" ], "id_hash": 4635014092059374334, "content_hash": 4635014092059374334, "location": "book.translate.xml:23170", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2608, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 15, "source_unit": "https://translate-dev.freebsd.org/api/units/104738/?format=api", "priority": 100, "id": 36819, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=c052e0c26620f2fe", "url": "https://translate-dev.freebsd.org/api/units/36819/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.322418Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ " static int\n xxxchannel_setformat(kobj_t obj, void *data, u_int32_t format)<co xml:id=\"co-chsetformat-params\"/>\n {\n struct xxx_chinfo *ch = data;\n ...\n return 0;\n }" ], "previous_source": "", "target": [ " static int\n xxxchannel_setformat(kobj_t obj, void *data, u_int32_t format)<co xml:id=\"co-chsetformat-params\"/>\n {\n struct xxx_chinfo *ch = data;\n ...\n return 0;\n }" ], "id_hash": 9085625097429686289, "content_hash": 9085625097429686289, "location": "book.translate.xml:23174", "context": "", "note": "(itstool) path: sect3/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2609, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/104739/?format=api", "priority": 100, "id": 36820, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=fe169fe36eab9811", "url": "https://translate-dev.freebsd.org/api/units/36820/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.332759Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<varname>format</varname> is specified as an <literal>AFMT_XXX value</literal> (<filename>soundcard.h</filename>)." ], "previous_source": "", "target": [ "<varname>format</varname>为 <literal>AFMT_XXX value</literal>值之一 (<filename>soundcard.h</filename>)。" ], "id_hash": -637874407223390931, "content_hash": -637874407223390931, "location": "book.translate.xml:23184", "context": "", "note": "(itstool) path: callout/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2610, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/104740/?format=api", "priority": 100, "id": 36821, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=7725d09b32230d2d", "url": "https://translate-dev.freebsd.org/api/units/36821/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.344966Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "channel_setspeed" ], "previous_source": "", "target": [ "channel_setspeed" ], "id_hash": 8875849505874032607, "content_hash": 8875849505874032607, "location": "book.translate.xml:23192", "context": "", "note": "(itstool) path: sect3/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2611, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/104741/?format=api", "priority": 100, "id": 36822, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=fb2d5a196d72b7df", "url": "https://translate-dev.freebsd.org/api/units/36822/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.355745Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<function>xxxchannel_setspeed()</function> sets up the channel hardware for the specified sampling speed, and returns the possibly adjusted speed." ], "previous_source": "", "target": [ "<function>xxxchannel_setspeed()</function>按指定的取样速度 设置通道硬件,并返回返回可能调整过的速度。" ], "id_hash": 1167467696209968244, "content_hash": 1167467696209968244, "location": "book.translate.xml:23194", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2612, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 17, "source_unit": "https://translate-dev.freebsd.org/api/units/104742/?format=api", "priority": 100, "id": 36823, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=9033adaf2756bc74", "url": "https://translate-dev.freebsd.org/api/units/36823/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.362143Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ " static int\n xxxchannel_setspeed(kobj_t obj, void *data, u_int32_t speed)\n {\n struct xxx_chinfo *ch = data;\n ...\n return speed;\n }" ], "previous_source": "", "target": [ " static int\n xxxchannel_setspeed(kobj_t obj, void *data, u_int32_t speed)\n {\n struct xxx_chinfo *ch = data;\n ...\n return speed;\n }" ], "id_hash": 7032241264079828350, "content_hash": 7032241264079828350, "location": "book.translate.xml:23198", "context": "", "note": "(itstool) path: sect3/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2613, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/104743/?format=api", "priority": 100, "id": 36824, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=e1978a2bd852757e", "url": "https://translate-dev.freebsd.org/api/units/36824/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.370794Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "channel_setblocksize" ], "previous_source": "", "target": [ "channel_setblocksize" ], "id_hash": -9172613124623593607, "content_hash": -9172613124623593607, "location": "book.translate.xml:23208", "context": "", "note": "(itstool) path: sect3/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2614, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/104744/?format=api", "priority": 100, "id": 36825, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=00b454f634b98f79", "url": "https://translate-dev.freebsd.org/api/units/36825/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.379699Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<function>xxxchannel_setblocksize()</function> sets the block size, which is the size of unit transactions between <filename>pcm</filename> and the sound driver, and between the sound driver and the device. Typically, this would be the number of bytes transferred before an interrupt occurs. During a transfer, the sound driver should call <filename>pcm</filename>'s <function>chn_intr()</function> every time this size has been transferred." ], "previous_source": "", "target": [ "<function>xxxchannel_setblocksize()</function>设置块大小, 这是<filename>pcm</filename>与声音驱动程序,以及声音驱动 程序与设备之间的传输单位的大小。传输期间,每次传输这样大小的 数据后,声音驱动程序都应当调用<filename>pcm</filename>的 <function>chn_intr()</function>。" ], "id_hash": 2226493555830359447, "content_hash": 2226493555830359447, "location": "book.translate.xml:23210", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2615, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 56, "source_unit": "https://translate-dev.freebsd.org/api/units/104745/?format=api", "priority": 100, "id": 36826, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=9ee61817b1f70597", "url": "https://translate-dev.freebsd.org/api/units/36826/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.387665Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "Most sound drivers only take note of the block size here, to be used when an actual transfer will be started." ], "previous_source": "", "target": [ "大多数驱动程序只注意这儿的块大小,因为当实际传输开始时应该 使用这个值。" ], "id_hash": -6076281981536503412, "content_hash": -6076281981536503412, "location": "book.translate.xml:23220", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2616, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 21, "source_unit": "https://translate-dev.freebsd.org/api/units/104746/?format=api", "priority": 100, "id": 36827, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=2bacb5bb3768f98c", "url": "https://translate-dev.freebsd.org/api/units/36827/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.399160Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ " static int\n xxxchannel_setblocksize(kobj_t obj, void *data, u_int32_t blocksize)\n {\n struct xxx_chinfo *ch = data;\n ...\n return blocksize;<co xml:id=\"co-chsetblocksize-return\"/>\n }" ], "previous_source": "", "target": [ " static int\n xxxchannel_setblocksize(kobj_t obj, void *data, u_int32_t blocksize)\n {\n struct xxx_chinfo *ch = data;\n ...\n return blocksize;<co xml:id=\"co-chsetblocksize-return\"/>\n }" ], "id_hash": -4356396836410568449, "content_hash": -4356396836410568449, "location": "book.translate.xml:23224", "context": "", "note": "(itstool) path: sect3/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2617, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/104747/?format=api", "priority": 100, "id": 36828, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=438af828911cd0ff", "url": "https://translate-dev.freebsd.org/api/units/36828/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.409478Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The function returns the possibly adjusted block size. In case the block size is indeed changed, <function>sndbuf_resize()</function> should be called to adjust the buffer." ], "previous_source": "", "target": [ "函数返回可能调整过的块大小。如果块大小真的变化了, 这种情况下应当调用<function>sndbuf_resize()</function>调整 缓冲区的大小。" ], "id_hash": -4169473792440740341, "content_hash": -4169473792440740341, "location": "book.translate.xml:23234", "context": "", "note": "(itstool) path: callout/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2618, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/104748/?format=api", "priority": 100, "id": 36829, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=46230dad3544d60b", "url": "https://translate-dev.freebsd.org/api/units/36829/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.423183Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "channel_trigger" ], "previous_source": "", "target": [ "channel_trigger" ], "id_hash": 4695482778303010005, "content_hash": 4695482778303010005, "location": "book.translate.xml:23243", "context": "", "note": "(itstool) path: sect3/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2619, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/104749/?format=api", "priority": 100, "id": 36830, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=c129b4b589b714d5", "url": "https://translate-dev.freebsd.org/api/units/36830/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.439125Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<function>xxxchannel_trigger()</function> is called by <filename>pcm</filename> to control data transfer operations in the driver." ], "previous_source": "", "target": [ "<function>xxxchannel_trigger()</function>由 <filename>pcm</filename>来控制驱动程序中的实际传输操作。" ], "id_hash": -5395858353026359583, "content_hash": -5395858353026359583, "location": "book.translate.xml:23245", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2620, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/104750/?format=api", "priority": 100, "id": 36831, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=351e0f6a998a1ee1", "url": "https://translate-dev.freebsd.org/api/units/36831/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.452331Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ " static int\n xxxchannel_trigger(kobj_t obj, void *data, int go)<co xml:id=\"co-chtrigger-params\"/>\n {\n struct xxx_chinfo *ch = data;\n ...\n return 0;\n }" ], "previous_source": "", "target": [ " static int\n xxxchannel_trigger(kobj_t obj, void *data, int go)<co xml:id=\"co-chtrigger-params\"/>\n {\n struct xxx_chinfo *ch = data;\n ...\n return 0;\n }" ], "id_hash": 1653580199360720350, "content_hash": 1653580199360720350, "location": "book.translate.xml:23249", "context": "", "note": "(itstool) path: sect3/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2621, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/104751/?format=api", "priority": 100, "id": 36832, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=96f2b26e2683edde", "url": "https://translate-dev.freebsd.org/api/units/36832/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.467402Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<varname>go</varname> defines the action for the current call. The possible values are:" ], "previous_source": "", "target": [ "<varname>go</varname>定义当前调用的动作。可能的值为:" ], "id_hash": 6270205843346318665, "content_hash": 6270205843346318665, "location": "book.translate.xml:23259", "context": "", "note": "(itstool) path: callout/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2622, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/104752/?format=api", "priority": 100, "id": 36833, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=d7043efe593c6549", "url": "https://translate-dev.freebsd.org/api/units/36833/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.482701Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<literal>PCMTRIG_START</literal>: the driver should start a data transfer from or to the channel buffer. If needed, the buffer base and size can be retrieved through <function>sndbuf_getbuf()</function> and <function>sndbuf_getsize()</function>." ], "previous_source": "", "target": [ "<literal>PCMTRIG_START</literal>:驱动程序应当 启动从/到通道缓冲区的数据传输。如果需要,应当通过 <function>sndbuf_getbuf()</function>和 <function>sndbuf_getsize()</function>检取缓冲区的 基地址和大小。" ], "id_hash": 2240339068148128930, "content_hash": 2240339068148128930, "location": "book.translate.xml:23264", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2623, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 28, "source_unit": "https://translate-dev.freebsd.org/api/units/104753/?format=api", "priority": 100, "id": 36834, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=9f1748833d661ca2", "url": "https://translate-dev.freebsd.org/api/units/36834/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.490052Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<literal>PCMTRIG_EMLDMAWR</literal> / <literal>PCMTRIG_EMLDMARD</literal>: this tells the driver that the input or output buffer may have been updated. Most drivers just ignore these calls." ], "previous_source": "", "target": [ "<literal>PCMTRIG_EMLDMAWR</literal> / <literal>PCMTRIG_EMLDMARD</literal>:告诉驱动程序, 输入或输出缓冲区可能已被更新过了。大多数驱动程序只是 忽略这些调用。" ], "id_hash": -7162736842176843728, "content_hash": -7162736842176843728, "location": "book.translate.xml:23273", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2624, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 23, "source_unit": "https://translate-dev.freebsd.org/api/units/104754/?format=api", "priority": 100, "id": 36835, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=1c98d8cab6723030", "url": "https://translate-dev.freebsd.org/api/units/36835/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.498288Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<literal>PCMTRIG_STOP</literal> / <literal>PCMTRIG_ABORT</literal>: the driver should stop the current transfer." ], "previous_source": "", "target": [ "<literal>PCMTRIG_STOP</literal> / <literal>PCMTRIG_ABORT</literal>:驱动程序应当停止当前 的传输。" ], "id_hash": 656560761985483245, "content_hash": 656560761985483245, "location": "book.translate.xml:23281", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2625, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/104755/?format=api", "priority": 100, "id": 36836, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=891c9288cf9ac1ed", "url": "https://translate-dev.freebsd.org/api/units/36836/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.504482Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "If the driver uses ISA DMA, <function>sndbuf_isadma()</function> should be called before performing actions on the device, and will take care of the DMA chip side of things." ], "previous_source": "", "target": [ "如果驱动程序使用ISA DMA,则应当在设备上执行动作前 调用<function>sndbuf_isadma()</function>,并处理DMA芯片一方的 事情。" ], "id_hash": 5083299756967890167, "content_hash": 5083299756967890167, "location": "book.translate.xml:23290", "context": "", "note": "(itstool) path: note/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2626, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 27, "source_unit": "https://translate-dev.freebsd.org/api/units/104756/?format=api", "priority": 100, "id": 36837, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=c68b82324ce68cf7", "url": "https://translate-dev.freebsd.org/api/units/36837/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.512016Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "channel_getptr" ], "previous_source": "", "target": [ "channel_getptr" ], "id_hash": 6181833333382622325, "content_hash": 6181833333382622325, "location": "book.translate.xml:23298", "context": "", "note": "(itstool) path: sect3/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2627, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/104757/?format=api", "priority": 100, "id": 36838, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=d5ca48a9f8f0ac75", "url": "https://translate-dev.freebsd.org/api/units/36838/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.520908Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<function>xxxchannel_getptr()</function> returns the current offset in the transfer buffer. This will typically be called by <function>chn_intr()</function>, and this is how <filename>pcm</filename> knows where it can transfer new data." ], "previous_source": "", "target": [ "<function>xxxchannel_getptr()</function>返回传输缓冲区中 当前的缓冲。它通常由<function>chn_intr()</function>调用,而且 这也是为什么<filename>pcm</filename>知道它应当往哪儿传送 新数据。" ], "id_hash": -8983619042384885384, "content_hash": -8983619042384885384, "location": "book.translate.xml:23300", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2628, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 28, "source_unit": "https://translate-dev.freebsd.org/api/units/104758/?format=api", "priority": 100, "id": 36839, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=0353c6140536c978", "url": "https://translate-dev.freebsd.org/api/units/36839/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.534320Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "channel_free" ], "previous_source": "", "target": [ "channel_free" ], "id_hash": -987137224766470186, "content_hash": -987137224766470186, "location": "book.translate.xml:23308", "context": "", "note": "(itstool) path: sect3/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2629, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/104759/?format=api", "priority": 100, "id": 36840, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=724cfbec953ac7d6", "url": "https://translate-dev.freebsd.org/api/units/36840/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.542169Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "<function>xxxchannel_free()</function> is called to free up channel resources, for example when the driver is unloaded, and should be implemented if the channel data structures are dynamically allocated or if <function>sndbuf_alloc()</function> was not used for buffer allocation." ], "previous_source": "", "target": [ "调用<function>xxxchannel_free()</function>来释放通道资源, 例如当驱动程序卸载时,并且如果通道数据结构是动态分配的,或者 如果不使用<function>sndbuf_alloc()</function>进行缓冲区分配, 则应当实现这个函数。" ], "id_hash": -8673722314626814405, "content_hash": -8673722314626814405, "location": "book.translate.xml:23310", "context": "", "note": "(itstool) path: sect3/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2630, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 36, "source_unit": "https://translate-dev.freebsd.org/api/units/104760/?format=api", "priority": 100, "id": 36841, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=07a0bf829c4a2e3b", "url": "https://translate-dev.freebsd.org/api/units/36841/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.550594Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "channel_getcaps" ], "previous_source": "", "target": [ "channel_getcaps" ], "id_hash": -286120970678393719, "content_hash": -286120970678393719, "location": "book.translate.xml:23319", "context": "", "note": "(itstool) path: sect3/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2631, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/104761/?format=api", "priority": 100, "id": 36842, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=7c077e7e3beca489", "url": "https://translate-dev.freebsd.org/api/units/36842/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.564390Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ " struct pcmchan_caps *\n xxxchannel_getcaps(kobj_t obj, void *data)\n {\n return &xxx_caps;<co xml:id=\"co-chgetcaps-return\"/>\n }" ], "previous_source": "", "target": [ " struct pcmchan_caps *\n xxxchannel_getcaps(kobj_t obj, void *data)\n {\n return &xxx_caps;<co xml:id=\"co-chgetcaps-return\"/>\n }" ], "id_hash": -638272988360078440, "content_hash": -638272988360078440, "location": "book.translate.xml:23321", "context": "", "note": "(itstool) path: sect3/programlisting", "flags": "no-wrap", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2632, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/104762/?format=api", "priority": 100, "id": 36843, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=772466194b120b98", "url": "https://translate-dev.freebsd.org/api/units/36843/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.572405Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "The routine returns a pointer to a (usually statically-defined) <varname remap=\"structname\">pcmchan_caps</varname> structure (defined in <filename>sound/pcm/channel.h</filename>. The structure holds the minimum and maximum sampling frequencies, and the accepted sound formats. Look at any sound driver for an example." ], "previous_source": "", "target": [ "这个例程返回指向(通常静态定义的) <varname remap=\"structname\">pcmchan_caps</varname>结构的指针(在 <filename>sound/pcm/channel.h</filename>中定义)。这个结构 保存着最小和最大采样频率和被接受的声音格式。任何声音驱动 程序都可以作为一个范例。" ], "id_hash": 7090370957751271509, "content_hash": 7090370957751271509, "location": "book.translate.xml:23330", "context": "", "note": "(itstool) path: callout/para", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2633, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 37, "source_unit": "https://translate-dev.freebsd.org/api/units/104763/?format=api", "priority": 100, "id": 36844, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=e2660ed1d682c055", "url": "https://translate-dev.freebsd.org/api/units/36844/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.594927Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_arch-handbook/zh_CN/?format=api", "source": [ "More Functions" ], "previous_source": "", "target": [ "更多函数" ], "id_hash": -2525724919505312342, "content_hash": -2525724919505312342, "location": "book.translate.xml:23341", "context": "", "note": "(itstool) path: sect3/title", "flags": "", "labels": [], "state": 20, "fuzzy": false, "translated": true, "approved": false, "position": 2634, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/104764/?format=api", "priority": 100, "id": 36845, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_arch-handbook/zh_CN/?checksum=5cf2d2914c88a5aa", "url": "https://translate-dev.freebsd.org/api/units/36845/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2019-10-20T12:22:16.605205Z" } ] }{ "count": 2721, "next": "