亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? development.dbk

?? PDA上的X86模擬器
?? DBK
?? 第 1 頁 / 共 4 頁
字號:
<section><title>Files</title><para>The main include file is <emphasis>bochs.h</emphasis>. It has all definitions for the system-independent functions that the SB16 emulation uses, whichare defined in <emphasis>sb16.h</emphasis>.</para><para>Additionally, every output driver will have an include file, whichshould be included at the end of sb16.h to allow the emulatorto use that driver.</para><para>To actually make the emulator use any specific driver, <emphasis>BX_SOUND_OUTPUT_C</emphasis> has to be set to the name of the respectiveoutput class.</para><para>Note that if your class contains any system-specific statements,include-files and so on, you should enclose both the include-file andthe CC-file in an <emphasis>#if defined</emphasis> (OS-define) construct.Also don't forget to add your file to the object list iniodev/Makefile and iodev/Makefile.in.</para></section><section><title>Classes</title><para>The following classes are involved with the SB16 emulation:</para><itemizedlist><listitem><para><emphasis>bx_sb16_c</emphasis> is the class containing the emulator itself, thatis the part acting on port accesses by the application, handling theDMA transfers and so on. It also prepares the data for the outputclasses.</para></listitem><listitem><para><emphasis>bx_sound_output_c</emphasis> is the base output class. It has allthe methods used by the emulator, but only as stubs and does notactually produce any output. These methods are then called bythe emulator whenever output is necessary.</para></listitem><listitem><para><emphasis>bx_sound_OS_c</emphasis> is derived from <emphasis>bx_sound_output_c</emphasis>. It contains the code to generate output for the <emphasis>OS</emphasis> operating system. It is necessary to override allthe methods defined in the base class, unless virtual functionsare used. Note that this should remain an option, so try tooverride all methods, even if only as stubs. They should bedeclared <emphasis>virtual</emphasis> if and only if <emphasis>BX_USE_SOUND_VIRTUAL</emphasis>is defined, just as in the examples. The constructor should call the inherited constructoras usual, even though the current constructor does not doanything yet.</para></listitem></itemizedlist></section><section><title>Methods</title><para>The following are the methods that the output class has to override.All but constructor and destructor have to return either<emphasis>BX_SOUND_OUTPUT_OK</emphasis> <emphasis>(0)</emphasis> if the function was successful, or <emphasis>BX_SOUND_OUTPUT_ERR</emphasis> <emphasis>(1)</emphasis> if not. If any of the initializationfunctions fail, output to that device is disabled until the emulator is restarted.</para></section><section><title>bx_sound_OS_c(bx_sb16_c*sb16)</title><para>The emulator instantiates the class at the initialization of Bochs.</para><para>Description of the parameter:</para><itemizedlist><listitem><para><emphasis>sb16</emphasis> is a pointer to the emulator class. This pointer can then be used to access for example the <emphasis>writelog</emphasis> function to generatesound-related log messages. Apart from that, no access to the emulatorshould be necessary.</para></listitem><listitem><para>The constructor should <emphasis>not</emphasis> allocate the output devices. This shouldn't be done until the actual output occurs; in either <emphasis>initmidioutput()</emphasis> or <emphasis>initwaveoutput()</emphasis>.Otherwise it would be impossible to have two copies of Bochs running concurrently (if anybody ever wants to do this).</para></listitem></itemizedlist></section><section><title>~bx_sound_OS_c()</title><para>The instance is destroyed just before Bochs ends.</para></section><section><title>int openmidioutput(char *device)</title><itemizedlist><listitem><para><emphasis>openmidioutput()</emphasis> is called when the first midi output starts.It is only called if the midi output mode is 1 (midimode 1). It shouldprepare the given MIDI hardware for receiving midi commands.</para></listitem><listitem><para><emphasis>openmidioutput()</emphasis> will always be called before <emphasis>openwaveoutput()</emphasis>,and <emphasis>closemidioutput()</emphasis>will always be called before <emphasis>closewaveoutput()</emphasis>, but not in all cases will both functions be called.</para></listitem></itemizedlist></section><section><title>Description of the parameters:</title><itemizedlist><listitem><para><emphasis>device</emphasis> is a system-dependent variable.It contains the value of the <emphasis>MIDI=device</emphasis> configuration option.</para></listitem><listitem><para>Note that only one midi output device will be used at any one time.<emphasis>device</emphasis>may not have the same value throughout one session, but it will be closedbefore it is changed.</para></listitem></itemizedlist></section><section><title>int midiready()</title><para><emphasis>midiready()</emphasis> is called whenever the applications asks if themidi queue can accept more data. </para><para>Return values:</para><itemizedlist><listitem><para><emphasis>BX_SOUND_OUTPUT_OK</emphasis> if the midi output device is ready.  </para></listitem><listitem><para><emphasis>BX_SOUND_OUTPUT_ERR</emphasis> if it isn't ready.  </para></listitem></itemizedlist><para><emphasis>Note: </emphasis><emphasis>midiready()</emphasis> will be called a few times<emphasis>before</emphasis> the device is opened. If this is the case, it shouldalways report that it is ready, otherwise the application (not Bochs)will hang.</para></section><section><title>int sendmidicommand(int delta, int command, int length, Bit8u data[])</title><para><emphasis>sendmidicommand()</emphasis>is called whenever a complete midi command hasbeen written to the emulator. It should then send the given midi command to the midi hardware.It will only be called after the midi output has been opened. Note thatif at all possible it should not wait for the completion of the commandand instead indicate that the device is not ready during the executionof the command. This is to avoid delays in the program while it isgenerating midi output.</para><para>Description of the parameters:</para><itemizedlist><listitem><para><emphasis>delta</emphasis> is the number of delta ticks thathave passed since the last command has been issued. It is always zero forthe first command. There are 24 delta ticks per quarter, and 120 quartersper minute, thus 48 delta ticks per second.</para></listitem><listitem><para><emphasis>command</emphasis> is the midi command byte (sometimescalled status byte), in the usual range of 0x80..0xff. For more informationplease see the midi standard specification.</para></listitem><listitem><para><emphasis>length</emphasis> is the number of data bytes thatare contained in the data structure. This does <emphasis>not</emphasis> include the statusbyte which is not replicated in the data array. It can only be greaterthan 3 for SysEx messages (commands <emphasis>0xF0</emphasis> and <emphasis>0xF7</emphasis>)</para></listitem><listitem><para><emphasis>data[]</emphasis> is the array of these data bytes,in the order they have in the standard MIDI specification.Note, it might be <emphasis>NULL</emphasis> if length==0.</para></listitem></itemizedlist></section><section><title>int closemidioutput()</title><para><emphasis>closemidioutput()</emphasis> is called before shutting down Bochs or when theemulator gets the <emphasis>stop_output</emphasis> command through the emulator port.After this, no more output will be necessary until <emphasis>openmidioutput()</emphasis>is called again, but <emphasis>midiready()</emphasis> might still be called. It should do the following:</para><itemizedlist><listitem><para>Wait for all remaining messages to be completed</para></listitem><listitem><para>Reset and close the midi output device</para></listitem></itemizedlist></section><section><title>int openwaveoutput(char *device)</title><para><emphasis>openwaveoutput()</emphasis> is called when the first wave output occurs,and only if the selected wavemode is 1. It should do the following:</para><itemizedlist><listitem><para>Open the given device, and prepare it for wave output</para></listitem></itemizedlist><para><emphasis>or</emphasis></para><itemizedlist><listitem><para>Store the device name so that the device can be opened in <emphasis>startplayback()</emphasis>.</para></listitem></itemizedlist><para><emphasis>openmidioutput()</emphasis> will always be called before <emphasis>openwaveoutput()</emphasis>,and <emphasis>closemidioutput()</emphasis>will always be called before <emphasis>closewaveoutput()</emphasis>, but not in all cases will both functions be called.</para><para><emphasis>openwaveoutput()</emphasis> will typically be called once, whereas<emphasis>startplayback()</emphasis> is called for every new DMA transfer to the SB16 emulation. If feasible,it could be useful to open and/or lock the output device in<emphasis>startplayback()</emphasis> as opposed to <emphasis>openwaveoutput()</emphasis>to ensure that it can be used by other applications while Bochs doesn'tneed it.</para><para>However, many older applications don't use the auto-init DMAmode, which means that they start a new DMA transfer for every singleblock of output, which means usually for every 2048 bytes or so.Unfortunately there is no way of knowing whether the application willrestart an expired DMA transfer soon, so that in these cases the<emphasis>startwaveplayback</emphasis> function will be called very often, and itisn't a good idea to have it reopen the device every time.</para><para>The buffer when writing to the device should not be overly large.Usually about four buffers of 4096 bytes produce best results. Smallerbuffers could mean too much overhead, while larger buffers contributeto the fact that the actual output will always be late when the applicationtries to synchronize it with for example graphics.</para><para>The parameters are the following: </para><itemizedlist><listitem><para><emphasis>device</emphasis> is the wave device selected bythe user. It is strictly system-dependent. The value is that of the<emphasis>WAVE=device</emphasis>configuration option.</para></listitem></itemizedlist><para>Note that only one wave output device will be used at any one time.<emphasis>device</emphasis> may not have the same value throughout one session, but it will be closedbefore it is changed.</para></section><section><title>int startwaveplayback(int frequency, int bits, int stereo, int format)</title><para>This function is called whenever the application starts a new DMA transfer.  It should do the following:</para><itemizedlist><listitem><para>Open the wave output device, unless <emphasis>openwaveoutput()</emphasis> did thatalready</para></listitem><listitem><para>Prepare the device for data and set the device parameters to those givenin the function call</para></listitem></itemizedlist><para>The parameters are the following:</para><itemizedlist><listitem><para><emphasis>frequency</emphasis> is the desired frequency of theoutput. Because of the capabities of the SB16, it can have any value between5000 and 44,100.</para></listitem><listitem><para><emphasis>bits</emphasis> is either 8 or 16, denoting the resolutionof one sample.</para></listitem><listitem><para><emphasis>stereo</emphasis> is either 1 for stereo output, or 0 for mono output.</para></listitem><listitem><para><emphasis>format</emphasis> is a bit-coded value (see below).</para></listitem></itemizedlist><para><table>   <title>format bits</title><tgroup cols="2"><thead><row><entry>Bit number</entry><entry>Meaning</entry></row></thead><tbody><row> <entry> 0 (LSB)  </entry><entry><para> 0: unsigned data </para><para>                                            1: signed data </para></entry> </row><row> <entry> 1..6     </entry><entry> Type of codec (see below) </entry> </row><row> <entry> 7        </entry><entry><para> 0: no reference byte </para><para>                                             1: with reference byte </para></entry> </row><row> <entry> 8..x     </entry><entry> reserved (0) </entry> </row></tbody></tgroup></table><table>   <title>codecs</title><tgroup cols="2"><thead><row><entry>Value</entry><entry>Meaning</entry></row></thead><tbody><row> <entry> 0 </entry><entry> PCM (raw data) </entry> </row><row> <entry> 1 </entry><entry> reserved </entry> </row><row> <entry> 2 </entry><entry> 2-bit ADPCM (Creative Labs format) </entry> </row><row> <entry> 3 </entry><entry> 2.4-bit (3-bit) ADPCM (Creative Labs format) </entry> </row><row> <entry> 4 </entry><entry> 4-bit ADPCM (Creative Labs format) </entry> </row></tbody></tgroup></table></para><para>Other codecs are not supported by the SB hardware. In fact, most applications willtranslate their data into raw data, so that in most cases the codec will be zero.</para><para>The number of bytes per sample can be calculated from this as (bits / 8) * (stereo + 1).</para></section><section><title>int waveready()</title><para>This is called whenever the emulator has another output buffer readyand would like to pass it to the output class. This happens every<emphasis>BX_SOUND_OUTPUT_WAVEPACKETSIZE</emphasis> bytes, or whenever a DMA transferis done or aborted.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人免费在线视频| 91精品国产手机| 久久综合九色综合97婷婷女人| 日韩精品久久久久久| 国产亚洲欧美日韩俺去了| 国产成人综合网站| 色偷偷久久人人79超碰人人澡| 欧美日韩在线精品一区二区三区激情| 欧美大片日本大片免费观看| 久久色成人在线| 9i在线看片成人免费| 国产精品高潮呻吟| 国产成人精品免费网站| 国产精品色在线观看| 97se狠狠狠综合亚洲狠狠| 综合色中文字幕| 欧美性一二三区| 舔着乳尖日韩一区| 欧美大片在线观看一区二区| 日韩专区在线视频| 欧美日韩免费在线视频| 亚洲欧美一区二区三区孕妇| 天堂影院一区二区| 欧美色网一区二区| 国产精品久久久久久久久免费相片 | 麻豆国产精品官网| 欧美性三三影院| 国产精品视频一二三区| av动漫一区二区| 欧美一级日韩免费不卡| 国产中文字幕精品| 国产精品五月天| 91精品1区2区| 欧美国产欧美综合| 在线免费不卡电影| 日本一区二区三级电影在线观看 | 欧美国产成人在线| 韩国成人在线视频| 男女男精品网站| 五月综合激情婷婷六月色窝| 亚洲成人av一区| 亚洲午夜在线视频| 午夜伊人狠狠久久| 日本不卡123| 日本亚洲视频在线| 六月丁香综合在线视频| 久久精品免费看| 久久精品国产999大香线蕉| 久久成人av少妇免费| 韩国精品免费视频| 懂色av噜噜一区二区三区av| av在线不卡电影| 色综合久久久久网| 欧美老人xxxx18| 欧美一区二区在线观看| 欧美大片在线观看一区| 国产欧美一区二区精品久导航 | 日韩avvvv在线播放| 午夜影院久久久| 久久精品国产秦先生| 国产精品中文字幕一区二区三区| 国产精品亚洲成人| 99精品视频一区| 欧美日韩成人一区| 精品国产伦理网| 亚洲色图视频免费播放| 性感美女极品91精品| 麻豆成人av在线| 成人一级视频在线观看| 91蜜桃传媒精品久久久一区二区| 在线观看免费视频综合| 欧美一区三区四区| 亚洲国产成人私人影院tom| 亚洲在线免费播放| 国产一区二区三区免费看| 97精品久久久久中文字幕| 欧美私人免费视频| 久久久久久久久久电影| 亚洲激情成人在线| 精品亚洲成a人| 一本到不卡精品视频在线观看| 在线播放欧美女士性生活| 久久精品视频免费| 亚洲电影在线免费观看| 国产黄色精品视频| 欧美日韩成人高清| 中文字幕免费观看一区| 青青草原综合久久大伊人精品| 成人午夜伦理影院| 7777精品伊人久久久大香线蕉完整版 | 精品国产成人在线影院| 中文字幕亚洲欧美在线不卡| 日本在线不卡视频| www.日韩av| 欧美va在线播放| 一区二区三区中文字幕精品精品| 国产精品一区在线观看你懂的| 欧美午夜精品久久久| 国产日本一区二区| 美国十次了思思久久精品导航| 91在线视频播放| 久久久久国产一区二区三区四区| 亚洲高清在线视频| av电影天堂一区二区在线观看| 日韩一区二区三| 亚洲一区二区三区四区五区中文| 国产一区二区91| 91精品国产乱码| 洋洋av久久久久久久一区| 国产成人在线色| 精品国产电影一区二区| 免费视频一区二区| 精品视频资源站| 最近日韩中文字幕| 福利电影一区二区三区| 欧美精品一区二区三区蜜桃视频| 午夜精品久久一牛影视| 91网上在线视频| 中文字幕在线不卡| 粉嫩蜜臀av国产精品网站| 日韩你懂的在线观看| 天堂午夜影视日韩欧美一区二区| 色妞www精品视频| 中文字幕一区二区三区视频| 国产精品亚洲一区二区三区妖精| 欧美一级欧美三级| 午夜精品久久久久久久蜜桃app| 91蜜桃在线观看| 亚洲精品亚洲人成人网在线播放| 大白屁股一区二区视频| 亚洲va在线va天堂| 久久精品国产亚洲一区二区三区| 在线这里只有精品| 午夜精品一区二区三区电影天堂| 欧美日韩www| 国产在线视视频有精品| 国产精品高潮久久久久无| 色综合视频一区二区三区高清| 亚洲精品免费在线| 欧美一级片在线观看| 成人免费视频网站在线观看| 国产视频911| 一级精品视频在线观看宜春院 | 大尺度一区二区| 欧美激情一区二区三区在线| 国产高清不卡二三区| 国产女同性恋一区二区| 国产成人av影院| 亚洲欧洲av另类| 色8久久精品久久久久久蜜| 亚洲一区视频在线观看视频| 在线观看91视频| 日韩av一区二区三区| 日韩欧美色综合| 国产乱码精品一区二区三区五月婷| 欧美极品xxx| 91影视在线播放| 亚洲1区2区3区视频| 欧美一区二区三区在线电影| 国产美女主播视频一区| 国产精品国产精品国产专区不片| 99re这里都是精品| 亚洲高清久久久| 26uuu亚洲婷婷狠狠天堂| 9l国产精品久久久久麻豆| 亚洲不卡在线观看| 精品国产一区二区三区忘忧草| 懂色av一区二区夜夜嗨| 亚洲伊人伊色伊影伊综合网| 日韩欧美一级片| 99久久精品免费看国产| 亚洲v日本v欧美v久久精品| 精品91自产拍在线观看一区| 99视频国产精品| 日韩电影免费一区| 中文无字幕一区二区三区| 欧美三级欧美一级| 国产精品中文欧美| 亚洲国产毛片aaaaa无费看| 久久亚洲欧美国产精品乐播| 日本精品一区二区三区高清 | 亚洲色大成网站www久久九九| 在线成人小视频| 成人精品视频网站| 日本亚洲一区二区| 国产精品美日韩| 日韩免费高清视频| 色综合久久久久久久| 国产一区二区三区免费看| 亚洲午夜电影网| 国产日韩三级在线| 91.com在线观看| 91年精品国产| 国产黄色精品网站| 日本一不卡视频| 亚洲国产精品久久久久婷婷884| 91精品国产色综合久久久蜜香臀| 午夜国产精品影院在线观看| 黄页视频在线91| 欧美一级搡bbbb搡bbbb|