Bounded recorder with deterministic chunk handling.
More...
Bounded recorder with deterministic chunk handling.
◆ __init__()
| None sdrforge.weather.same_stream.StreamingSameCapture.__init__ |
( |
| self, |
|
|
int | sample_rate, |
|
|
* | , |
|
|
float | max_seconds = 15.0 ) |
Provide init behavior.
- Parameters
-
| self | The current instance. |
| sample_rate | The sample rate value. |
| max_seconds | The max seconds value. |
◆ buffered_samples()
| int sdrforge.weather.same_stream.StreamingSameCapture.buffered_samples |
( |
| self | ) |
|
Provide buffered samples behavior.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ feed()
| None sdrforge.weather.same_stream.StreamingSameCapture.feed |
( |
| self, |
|
|
np.ndarray | pcm ) |
Provide feed behavior.
- Parameters
-
| self | The current instance. |
| pcm | The pcm value. |
◆ flush()
Provide flush behavior.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ reset()
| None sdrforge.weather.same_stream.StreamingSameCapture.reset |
( |
| self | ) |
|
Provide reset behavior.
- Parameters
-
| self | The current instance. |
◆ truncated()
| bool sdrforge.weather.same_stream.StreamingSameCapture.truncated |
( |
| self | ) |
|
Provide truncated behavior.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ _chunks
| list sdrforge.weather.same_stream.StreamingSameCapture._chunks = [] |
|
protected |
◆ _length
| int sdrforge.weather.same_stream.StreamingSameCapture._length = 0 |
|
protected |
◆ _truncated
| bool sdrforge.weather.same_stream.StreamingSameCapture._truncated = False |
|
protected |
◆ max_samples
| sdrforge.weather.same_stream.StreamingSameCapture.max_samples = max(1, int(sample_rate * max_seconds)) |
◆ sample_rate
| sdrforge.weather.same_stream.StreamingSameCapture.sample_rate = sample_rate |
The documentation for this class was generated from the following file: