py/sample_looper.py : Fixed reported sample width from bytes to bits.

This commit is contained in:
kevin 2024-09-05 10:01:35 -04:00
parent 63b5fff619
commit 0047881c8a

View File

@ -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()