My apologies; wavfile_source does not inherit from file_source, so my answer does not apply.
---
Jim Melton
From: Jim Melton
Sent: Monday, February 13, 2023 10:23
To: 'discuss-gnuradio@gnu.org' <discuss-gnuradio@gnu.org>
Subject: RE: [EXTERNAL] Wav source: playing speed and playing startup instant
I would add that "playback speed" will be determined either by upstream blocks, or a Throttle block that you add after the file.
---
Jim Melton
From: Jim Melton
Sent: Monday, February 13, 2023 10:20
To: discuss-gnuradio@gnu.org
Subject: RE: [EXTERNAL] Wav source: playing speed and playing startup instant
If your question is how to subset the file, see https://wiki.gnuradio.org/index.php/File_Source Offset and Length parameters.
If your question is how to use a GUI slider to accomplish this, I'll defer to others.
---
Jim Melton
From: discuss-gnuradio-bounces+jim.melton=sncorp.com@gnu.org <discuss-gnuradio-bounces+jim.melton=sncorp.com@gnu.org> On Behalf Of Giovanni Parodi
Sent: Monday, February 13, 2023 06:00
To: discuss-gnuradio@gnu.org
Subject: [EXTERNAL] Wav source: playing speed and playing startup instant
Good morning,
I'm a gnuradio beginner, and I'm trying to better understand some topics related to source and sink.
I implemented a very easy SW that allows me selecting a file from filesystem and then I provide the filename to the C++ source implementation, by calling the function:
blocks::wavfile_source::make
The implementation works fine, but I have an issue.
Since sometimes I need to perform audio analysis on files that are quite long, I would like to have a way to use something like a timeslider to move on a specific time instant on the wav file, or at least to change playing speed of file.
I found no property (looking both in C++ and Python generated code) to achieve this target.
Is there any way to perform this operation?
Best regards
No comments:
Post a Comment