Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add audio state transitions 2,3 -> 0 to disableDMA() #837

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Emulator/Components/Paula/Audio/StateMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ StateMachine<nr>::disableDMA()

move_001_000();
break;

case 0b010:

move_010_000();
break;

case 0b011:

move_011_000();
break;

case 0b101:

Expand Down Expand Up @@ -309,6 +319,18 @@ StateMachine<nr>::move_010_011() {
penlo();
}

template <isize nr> void
StateMachine<nr>::move_010_000() {

trace(AUD_DEBUG, "move_010_000\n");

constexpr EventSlot slot = (EventSlot)(SLOT_CH0 + nr);
agnus.cancel<slot>();

intreq2 = false;
state = 0b000;
}

template <isize nr> void
StateMachine<nr>::move_011_000() {

Expand Down
1 change: 1 addition & 0 deletions Emulator/Components/Paula/Audio/StateMachine.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ class StateMachine : public SubComponent, public Inspectable<StateMachineInfo> {
void move_101_010();
void move_010_011();
void move_011_000();
void move_010_000();
void move_011_010();


Expand Down
Loading