-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #399 from shuchitak/mixer_fix
refactor the mixer threads
- Loading branch information
Showing
12 changed files
with
191 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@startuml | ||
|
||
|
||
participant audiohub as audiohub | ||
participant mixer1 as mixer1 | ||
participant mixer2 as mixer2 | ||
participant decoupler as decoupler | ||
|
||
|
||
title "Mixer: MAX_MIX_COUNT > 0" | ||
loop while(1) | ||
audiohub -> mixer1 : receive request | ||
mixer1 -> decoupler : forward request | ||
mixer1 -> mixer1 : do mixer control | ||
|
||
alt decoupler responds with command | ||
decoupler -> mixer1 : get command | ||
mixer1 -> audiohub : forward command | ||
audiohub -> mixer1 : receive handshake | ||
mixer1 -> decoupler : forward handshake | ||
else decoupler responds with data | ||
mixer2 -> mixer1 : synchronise | ||
mixer1 -> audiohub : give samples | ||
mixer1 <- audiohub : get samples | ||
mixer1 <- decoupler : get samples | ||
mixer1 -> decoupler : give samples | ||
mixer1 -> mixer2 : trigger | ||
par | ||
mixer2 -> mixer2 : doMix | ||
mixer1 -> mixer1 : doMix | ||
end | ||
end | ||
end | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@startuml | ||
|
||
participant audiohub as audiohub | ||
participant mixer1 as mixer1 | ||
participant decoupler as decoupler | ||
|
||
|
||
title "Mixer: MAX_MIX_COUNT = 0" | ||
loop while(1) | ||
audiohub -> mixer1 : receive request | ||
mixer1 -> decoupler : forward request | ||
|
||
alt decoupler responds with command | ||
decoupler -> mixer1 : get command | ||
mixer1 -> audiohub : forward command | ||
audiohub -> mixer1 : receive handshake | ||
mixer1 -> decoupler : forward handshake | ||
else decoupler responds with data | ||
mixer1 -> audiohub : give samples | ||
mixer1 <- audiohub : get samples | ||
mixer1 <- decoupler : get samples | ||
mixer1 -> decoupler : give samples | ||
end | ||
end | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.