AmmosSource
guix
Rev | Line | |
---|
[1e781ba] | 1 | import sys
|
---|
| 2 | import os
|
---|
[bec3119] | 3 | sys.path.append('../src/')
|
---|
[1e781ba] | 4 |
|
---|
[ec7df22] | 5 | from ammosreader.AmmosAudioReader import AmmosAudioReader
|
---|
[1e781ba] | 6 |
|
---|
| 7 | if __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.