py/sample_looper.py : Fixed reported sample width from bytes to bits.
This commit is contained in:
parent
63b5fff619
commit
0047881c8a
@ -22,7 +22,7 @@ def parse_marker_file( marker_fname ):
|
|||||||
def parse_audio_file( audio_fname ):
|
def parse_audio_file( audio_fname ):
|
||||||
|
|
||||||
with w.open(audio_fname,"rb") as f:
|
with w.open(audio_fname,"rb") as f:
|
||||||
print(f"ch:{f.getnchannels()} bits:{f.getsampwidth()} srate:{f.getframerate()} frms:{f.getnframes()}")
|
print(f"ch:{f.getnchannels()} bits:{f.getsampwidth()*8} srate:{f.getframerate()} frms:{f.getnframes()}")
|
||||||
|
|
||||||
srate = f.getframerate()
|
srate = f.getframerate()
|
||||||
frmN = f.getnframes()
|
frmN = f.getnframes()
|
||||||
|
Loading…
Reference in New Issue
Block a user