Changeset 72b50cd in ammosreader


Ignore:
Timestamp:
06/28/22 13:11:17 (3 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
6059ec7
Parents:
57c81ef
Message:

size() method for AmmosContainer fixed

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ammosreader/AmmosAudioReader.py

    r57c81ef r72b50cd  
    145145            print("Can not read all", total, "bytes of data body")
    146146            return None
    147         print([hex(c) for c in byte_string])
     147        # print([hex(c) for c in byte_string])
    148148        return byte_string
    149149
  • ammosreader/AmmosContainer.py

    r57c81ef r72b50cd  
    1515
    1616    def size(self):
    17         len(self.global_frames)
     17        return sum([each.global_frame_header.frame_length for each in self.global_frames])
    1818
    1919    def frequencies(self):
  • sample_scripts/audio_reader.py

    r57c81ef r72b50cd  
    1717
    1818    dat_file.read_all_frames_left()
    19     print(dat_file.container)
     19    print(dat_file.container.size())
  • sample_scripts/iqdw_reader.py

    r57c81ef r72b50cd  
    1919
    2020    dat_file.read_all_frames_left()
    21     print(dat_file.container)
     21    print(dat_file.container.size())
    2222
    23     for each in dat_file.container.global_frames:
    24         print(each)
     23#    for each in dat_file.container.global_frames:
     24#        print(each)
Note: See TracChangeset for help on using the changeset viewer.