source: ammosreader/sample_scripts/audio_reader.py@ 72b50cd

AmmosSource guix
Last change on this file since 72b50cd was 72b50cd, checked in by Enrico Schwass <ennoausberlin@…>, 3 years ago

size() method for AmmosContainer fixed

  • Property mode set to 100644
File size: 365 bytes
RevLine 
[1e781ba]1import sys
2import os
[bec3119]3sys.path.append('../src/')
[1e781ba]4
[ec7df22]5from ammosreader.AmmosAudioReader import AmmosAudioReader
[1e781ba]6
7if __name__ == '__main__':
8
9 if len(sys.argv) != 2:
10 sys.exit()
11
12 file_name = sys.argv[1]
13
14 print("File name:", file_name)
15
16 dat_file = AmmosAudioReader(file_name)
17
18 dat_file.read_all_frames_left()
[72b50cd]19 print(dat_file.container.size())
Note: See TracBrowser for help on using the repository browser.