This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
abi [2019/02/13 17:16] Redetzky [05: A_RESAMPLE] [wip] a_resample |
abi [2019/02/13 19:56] (current) Redetzky [01: A_ADPCM] fix typo |
||
---|---|---|---|
Line 15: | Line 15: | ||
''01 <color #22b14c>FF</color> <color #ed1c24>GGGG</color> <color #A946F2>SS</color> <color #ff7f27>AAAAAA</color>'' | ''01 <color #22b14c>FF</color> <color #ed1c24>GGGG</color> <color #A946F2>SS</color> <color #ff7f27>AAAAAA</color>'' | ||
- | This command produces 16-bit samples from a binary stream. The <color #22b14c>flag</color> byte accepts the arguments listed later below that control its behavior, the <color #ed1c24>gain</color> byte controls the volume of the samples, the <color #A946F2>segment</color> and <color #ff7f27>address</color> bytes control where to read the samples in DRAM. | + | This command produces 16-bit samples from a binary stream. The <color #22b14c>flag</color> byte accepts the arguments listed later below that control its behavior, the <color #ed1c24>gain</color> bytes controls the volume of the samples, the <color #A946F2>segment</color> and <color #ff7f27>address</color> bytes control where to read the samples in DRAM. |
Line 21: | Line 21: | ||
This command accepts two flags that control its behavior, these flags are listed in the table below: | This command accepts two flags that control its behavior, these flags are listed in the table below: | ||
- | | <color #22b14c>A_INIT (''0x01'')</color> | The seg+address field field is used to restore state at the beginning of the command. If not set the pointer to state is ignored upon initiation, however, state is saved to this address at the end of processing. | | + | | <color #22b14c>A_INIT (''0x01'')</color> | The <color #A946F2>seg</color>+<color #ff7f27>address</color> field field is used to restore state at the beginning of the command. If not set the pointer to state is ignored upon initiation, however, state is saved to this address at the end of processing. | |
- | | <color #22b14c>A_MIX (''0x10'')</color> | The results are mixed into the output buffer. If not set results are put into the output buffer. | | + | | <color #22b14c>A_MIX (''0x10'')</color> | The results are mixed into the output buffer. If not set results are put into the output buffer. | |
==== 02: A_CLEARBUFF ==== | ==== 02: A_CLEARBUFF ==== | ||
Line 38: | Line 38: | ||
''05 <color #22b14c>FF</color> <color #ed1c24>PPPP</color> <color #A946F2>SS</color> <color #ff7f27>AAAAAA</color>'' | ''05 <color #22b14c>FF</color> <color #ed1c24>PPPP</color> <color #A946F2>SS</color> <color #ff7f27>AAAAAA</color>'' | ||
- | This command allows for pitch shifting/resampling the samples set by ''A_SETBUFF''. <color #ed1c24>PPPP</color> controls how much to pitchshift the samples by, where | + | This command allows for pitch shifting/resampling samples set by the ''A_SETBUFF'' command. The <color #22b14c>FF</color> byte accepts two inputs listed below that control its behavior, the <color #ed1c24>PPPP</color> bytes control how much to pitch shift/resample the samples by, and the <color #A946F2>SS</color> <color #ff7f27>AAAAAA</color> bytes control where to read in RDRAM. |
- | The <color #22b14c>FF</color> parameter accepts two inputs: | + | This command accepts two flags that control its behavior, these flags are listed in the table below: |
- | | A_INIT | The seg+address field field is used to restore state at the beginning of the command. If not set the pointer to state is ignored upon initiation, however, state is saved to this address at the end of processing. | | + | | <color #22b14c>A_INIT (''0x01'')</color> | The <color #A946F2>seg</color>+<color #ff7f27>address</color> field field is used to restore state at the beginning of the command. If not set the pointer to state is ignored upon initiation, however, state is saved to this address at the end of processing. | |
+ | | <color #22b14c>A_MIX (''0x10'')</color> | The results are mixed into the output buffer. If not set results are put into the output buffer. | | ||
==== 06: A_SAVEBUFF ==== | ==== 06: A_SAVEBUFF ==== | ||
==== 07: A_SEGMENT ==== | ==== 07: A_SEGMENT ==== |