-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
I open a 8-bit mono wav file using 'RAW' format.
However buffer_read() method has some weird behaviour:
- needs the data type (one of the 'float64', 'float32', 'int32', 'int16').
Very odd, given the fact that SoundFile knows EXACTLY the sample bit length, in both RAW (explicitly given by the caller) and automatic detection. So, why the caller must pass the datatype and re-inventing the wheel of the subtype / data type relation? At least make it optional.
PCM_16 is 2 bytes (int16), PCM_32 is 4 bytes (int32), etc.
- cannot read an even number of 8-bit MONO frames.
SoundFile instance is created with required parameters (format='RAW', subtype='PCM_U8', channels=1, samplerate='44100').
What's the point of the RAW format if it cannot support 8-bit MONO files? Is it a limitation of the wrapped libsndfile or smth else?
PCM_U8 is a valid subtype. Do I have alternatives?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels