(self, start_index, metadata=None)
Insert capture info for sample starting at start_index.
        If there is already capture info for this index, metadata will be merged
        with the existing metadata, overwriting keys if they were previously
        set.
Insert capture info for sample starting at start_index.
        If there is already capture info for this index, metadata will be merged
        with the existing metadata, overwriting keys if they were previously
        set.
Insert capture info for sample starting at start_index . If there is already capture info for this index metadata will be merged with the existing metadata overwriting keys if they were previously set .
def add_capture(self, start_index, metadata=None):
        """
        Insert capture info for sample starting at start_index.
        If there is already capture info for this index, metadata will be merged
        with the existing metadata, overwriting keys if they were previously
        set.
        """
        assert start_index >= self._get_start_offset()
        metadata = metadata or {}
        self._validate_dict_in_section(metadata, self.CAPTURE_KEY)
        metadata[self.START_INDEX_KEY] = start_index
        self._metadata[self.CAPTURE_KEY] = insert_sorted_dict_list(
            self._metadata.get(self.CAPTURE_KEY, []),
            metadata,
            self.START_INDEX_KEY,
        )
def add_capture ( self , start_index , metadata = None ) : assert start_index >= self . _get_start_offset ( ) metadata = metadata or { } self . _validate_dict_in_section ( metadata , self . CAPTURE_KEY ) metadata [ self . START_INDEX_KEY ] = start_index self . _metadata [ self . CAPTURE_KEY ] = insert_sorted_dict_list ( self . _metadata . get ( self . CAPTURE_KEY , [ ] ) , metadata , self . START_INDEX_KEY , )