resonance 1.0.1
Loading...
Searching...
No Matches
SoundDriverCommand Struct Reference

Command block the sound driver reads a bank transfer out of. More...

#include <midi_main.h>

Public Attributes

int mBankAddress
int mStagingAddress
int mLength
int mDest
int mTag
char mPayload [kSoundDriverCommandPayloadSize]

Detailed Description

Command block the sound driver reads a bank transfer out of.

Two blocks of this shape exist, one per selector, and the shape is recovered from the two together rather than from either alone. The chunk block writes mStagingAddress and clears mBankAddress; the bank block writes mBankAddress and never touches mStagingAddress. All three of mLength, mDest and mTag sit at the same offset in both, and both have a payload at +0x14, which is what identifies the header as shared.

The 0x80-byte total is the consumer's figure rather than the writers'. SubmitSoundDriverRequest() sends exactly 0x80 bytes from the caller's block for a selector with bit 0x1000 set, which both bank selectors have. The chunk path clearing 0x6c bytes above the header agrees with it.

Member Data Documentation

◆ mBankAddress

int SoundDriverCommand::mBankAddress

◆ mStagingAddress

int SoundDriverCommand::mStagingAddress

◆ mLength

int SoundDriverCommand::mLength

◆ mDest

int SoundDriverCommand::mDest

◆ mTag

int SoundDriverCommand::mTag

◆ mPayload

char SoundDriverCommand::mPayload[kSoundDriverCommandPayloadSize]

The documentation for this struct was generated from the following file: