Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flow3r
flow3r firmware
Commits
940d38f8
Commit
940d38f8
authored
6 months ago
by
moon2
Browse files
Options
Downloads
Patches
Plain Diff
bl00mbox callbacks/weak references/backend rewrite
parent
c3388838
No related branches found
No related tags found
No related merge requests found
Pipeline
#13120
passed
6 months ago
Stage: check
Stage: build
Changes
22
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
python_payload/st3m/ui/mixer.py
+4
-10
4 additions, 10 deletions
python_payload/st3m/ui/mixer.py
sim/fakes/bl00mbox.py
+10
-6
10 additions, 6 deletions
sim/fakes/bl00mbox.py
with
14 additions
and
16 deletions
python_payload/st3m/ui/mixer.py
+
4
−
10
View file @
940d38f8
...
@@ -5,12 +5,9 @@ import media
...
@@ -5,12 +5,9 @@ import media
def
recall_blm_channel_stats
(
blm_chan
):
def
recall_blm_channel_stats
(
blm_chan
):
print
(
blm_chan
)
if
blm_chan
.
free
:
if
blm_chan
.
free
:
print
(
"
wha-!
"
)
return
return
if
blm_chan
.
name
in
session_channel_vol_mute
:
if
blm_chan
.
name
in
session_channel_vol_mute
:
print
(
"
whee
"
)
chan
=
bl00mboxChannel
(
bl00mbox
.
SysChannel
(
blm_chan
))
chan
=
bl00mboxChannel
(
bl00mbox
.
SysChannel
(
blm_chan
))
vol
,
mute
=
session_channel_vol_mute
[
chan
.
get_name
()]
vol
,
mute
=
session_channel_vol_mute
[
chan
.
get_name
()]
if
mute
:
if
mute
:
...
@@ -185,11 +182,8 @@ class AudioMixer(Responder):
...
@@ -185,11 +182,8 @@ class AudioMixer(Responder):
def
_refresh
(
self
):
def
_refresh
(
self
):
self
.
_chans
=
[
mediaChannel
()]
self
.
_chans
=
[
mediaChannel
()]
for
c
in
bl00mbox
.
active
_channels
():
for
c
in
bl00mbox
.
Sys
.
collect
_channels
(
True
):
chan
=
bl00mboxChannel
(
c
)
chan
=
bl00mboxChannel
(
c
)
if
not
chan
.
blm
.
free
and
(
chan
.
blm
.
foreground
or
chan
.
blm
.
background_mute_override
):
chan
.
prev_compute_rms
=
chan
.
blm
.
compute_rms
chan
.
prev_compute_rms
=
chan
.
blm
.
compute_rms
chan
.
blm
.
compute_rms
=
True
chan
.
blm
.
compute_rms
=
True
self
.
_chans
+=
[
chan
]
self
.
_chans
+=
[
chan
]
...
...
This diff is collapsed.
Click to expand it.
sim/fakes/bl00mbox.py
+
10
−
6
View file @
940d38f8
...
@@ -29,12 +29,16 @@ class _mock(list):
...
@@ -29,12 +29,16 @@ class _mock(list):
return
_mock
()
return
_mock
()
def
all_channels
():
class
Sys
:
yield
Channel
(
0
)
@staticmethod
def
collect_channels
(
active
):
if
False
:
def
active_channels
():
yield
None
yield
Channel
(
0
)
@staticmethod
def
collect_active_callbacks
():
if
False
:
yield
None
class
Channel
:
class
Channel
:
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment