def write_frames(self, data) -> int:
    "Add some data to the file.\n\n        Parameters\n        ----------\n        data : bytes-like object\n            The user must ensure that the data's format matches the file's!\n\n        Returns\n        -------\n        int : the number of frames written\n\n        "
    pos = self._filehandle.tell()
    self._filehandle.writeframes(data)
    return (self._filehandle.tell() - pos)
Add some data to the file.

Parameters
----------
data : bytes-like object
    The user must ensure that the data's format matches the file's!

Returns
-------
int : the number of frames written
def write_frames(self, data) -> int:
    "Add some data to the file.\n\n        Parameters\n        ----------\n        data : bytes-like object\n            The user must ensure that the data's format matches the file's!\n\n        Returns\n        -------\n        int : the number of frames written\n\n        "
    pos = self._filehandle.tell()
    self._filehandle.writeframes(data)
    return (self._filehandle.tell() - pos)