Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
 def target_audio_format(self):
     fmt_obj = ffi.addressof(self._obj.target_audio_format)
     fmt, _ = AudioFormat._from_obj(fmt_obj)
     return fmt
Ejemplo n.º 3
0
 def actual_audio_format(self):
     fmt_obj = ffi.addressof(self._obj.actual_audio_format)
     fmt, _ = AudioFormat._from_obj(fmt_obj)
     return fmt
Ejemplo n.º 4
0
 def target_audio_format(self):
     fmt_obj = ffi.addressof(self._obj.target_audio_format)
     fmt, _ = AudioFormat._from_obj(fmt_obj)
     return fmt
Ejemplo n.º 5
0
 def actual_audio_format(self):
     fmt_obj = ffi.addressof(self._obj.actual_audio_format)
     fmt, _ = AudioFormat._from_obj(fmt_obj)
     return fmt
Ejemplo n.º 6
0
 def audio_format(self):
     audio_format = AudioFormat()
     lib.groove_file_audio_format(self._obj, audio_format._obj)
     return audio_format
Ejemplo n.º 7
0
 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