Skip to content

fix(audio_file): _generate_chunks source function returns a ControlPa… - #167

Merged
b3by merged 1 commit into
meetecho:mainfrom
LucaPerotti:bugfix/audio_file_node_self_stop
Apr 23, 2026
Merged

fix(audio_file): _generate_chunks source function returns a ControlPa…#167
b3by merged 1 commit into
meetecho:mainfrom
LucaPerotti:bugfix/audio_file_node_self_stop

Conversation

@LucaPerotti

@LucaPerotti LucaPerotti commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Description

This PR fixes the AudioFile node not stopping correctly once the file is fully transmitted to downstream nodes.
fixes #159

PR type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test update
  • Build/CI configuration change
  • Other (please describe):

Key modifications and changes

  • _generate_chunks source function now returns a ControlPayload instead of None if there are no more audio chunks to process
  • _get_audio_chunks made a generator and renamed to _iter_audio_chunks for clarity
  • removed internal property _transmitted, no longer useful

Affected components

Built-in node juturna/nodes/source/_audio_file/audio_file.py

@b3by

b3by commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

Super, thank you!

@b3by
b3by merged commit 4f5cbb4 into meetecho:main Apr 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

audio_file source node fails to stop the pipeline once the file is processed

2 participants