CFW/ftrobopy 1.62: Sound im Direct-Mode tut nicht
Verfasst: 08 Jan 2017, 15:37
Hallo Torsten,
ich bin gerade dabei, die aktuelle Version von ftrobopy (1.62) und spidev (3.2) in die CFW zu integrieren. Allerdings funktioniert damit bei mir im direct-Mode der Sound trotzdem nicht. Mit einem unveränderten ftrobopy 1.62 passiert (als ftc auf dem TXT mit CFW) das hier:
Und wenn ich in ftrobopy.py Zeile 794 auf
ändere, dann bekomme ich zwar eine Audio-Ausgabe, die ist aber komplett verzerrt.
Hast Du eine Ahnung, was da schiefläuft?
Liebe Grüße,
Richard
ich bin gerade dabei, die aktuelle Version von ftrobopy (1.62) und spidev (3.2) in die CFW zu integrieren. Allerdings funktioniert damit bei mir im direct-Mode der Sound trotzdem nicht. Mit einem unveränderten ftrobopy 1.62 passiert (als ftc auf dem TXT mit CFW) das hier:
Code: Alles auswählen
$ python
Python 3.5.2 (default, Dec 19 2016, 21:26:20)
[GCC 5.3.1 20160113] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ftrobopy
>>> txt = ftrobopy.ftrobopy('auto')
Connected to TXT direct firmware version not detected
>>> txt.play_sound(7)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.5/site-packages/ftrobopy.py", line 2575, in play_sound
self.setSoundIndex(idx)
File "/usr/lib/python3.5/site-packages/ftrobopy.py", line 794, in setSoundIndex
self._sound_data = [ord(x) for x in buf[44:]]
File "/usr/lib/python3.5/site-packages/ftrobopy.py", line 794, in <listcomp>
self._sound_data = [ord(x) for x in buf[44:]]
TypeError: ord() expected string of length 1, but int found
>>>
Code: Alles auswählen
self._sound_data = [x for x in buf[44:]]
Hast Du eine Ahnung, was da schiefläuft?
Liebe Grüße,
Richard