Skip to content

Comments

Soxr resample stream#341

Open
Gautzilla wants to merge 9 commits intoProject-OSmOSE:mainfrom
Gautzilla:soxr-resample-stream
Open

Soxr resample stream#341
Gautzilla wants to merge 9 commits intoProject-OSmOSE:mainfrom
Gautzilla:soxr-resample-stream

Conversation

@Gautzilla
Copy link
Contributor

@Gautzilla Gautzilla commented Feb 17, 2026

This PR reworks the AudioData.get_value() backend to lazily fetch/resample data.

Before that, the hwole value of each AudioItem was fetched before being downsampled.

Now, the AudioItem data is streamed (seamlessly across items) and resampled on the go, so that the RAM usage is optimized.

I kinda tweeked the stream process in the MSEED backend, as obspy doesn't seem to provide streaming methods. All the old test cases pass, so I guess I didn't break anything!

image

@Gautzilla Gautzilla self-assigned this Feb 17, 2026
@Gautzilla Gautzilla changed the title [DRAFT] Soxr resample stream Soxr resample stream Feb 18, 2026
@Gautzilla Gautzilla changed the title Soxr resample stream [DRAFT] Soxr resample stream Feb 18, 2026
@Gautzilla Gautzilla changed the title [DRAFT] Soxr resample stream Soxr resample stream Feb 19, 2026
@Gautzilla Gautzilla marked this pull request as ready for review February 19, 2026 10:43
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.

1 participant