def target_audio_format(self): """The desired audio format to open the device with Defaults to 44100Hz, signed 16-bit int, stereo These are preferences; if a setting cannot be used, a substitute will be used instead. `actual_audio_format` is set to the actual values. """ fmt, _ = AudioFormat._from_obj(self._obj.target_audio_format) return fmt
def target_audio_format(self): fmt_obj = ffi.addressof(self._obj.target_audio_format) fmt, _ = AudioFormat._from_obj(fmt_obj) return fmt
def actual_audio_format(self): fmt_obj = ffi.addressof(self._obj.actual_audio_format) fmt, _ = AudioFormat._from_obj(fmt_obj) return fmt
def audio_format(self): audio_format = AudioFormat() lib.groove_file_audio_format(self._obj, audio_format._obj) return audio_format
def actual_audio_format(self): """Set to the actual audio format you get when you open the device""" fmt, _ = AudioFormat._from_obj(self._obj.actual_audio_format) return fmt