def get(self, key, mem_map=True):
        """
        Return the samples for the given key and the sampling-rate.

        Args:
            key (str): The key to read the data from.
            mem_map (bool): If ``True`` returns the data as
                            memory-mapped array, otherwise a copy is returned.

        Note:
            The container has to be opened in advance.

        Returns:
            tuple: A tuple containing the samples as numpy array
                   with ``np.float32`` [-1.0,1.0] and the sampling-rate.
        """
        self.raise_error_if_not_open()

        if key in self._file:
            data = self._file[key]
            sampling_rate = data.attrs[SAMPLING_RATE_ATTR]

            if not mem_map:
                data = data[()]

            data = np.float32(data) / MAX_INT16_VALUE

            return data, sampling_rate
Return the samples for the given key and the sampling-rate.

        Args:
            key (str): The key to read the data from.
            mem_map (bool): If ``True`` returns the data as
                            memory-mapped array, otherwise a copy is returned.

        Note:
            The container has to be opened in advance.

        Returns:
            tuple: A tuple containing the samples as numpy array
                   with ``np.float32`` [-1.0,1.0] and the sampling-rate.