Changeset 961:fd26a8f057b1
- Timestamp:
- 05/14/19 18:00:10 (6 years ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/sound.py
r919 r961 43 43 """Send the given command to the MCI.""" 44 44 buffer = c_buffer(255) 45 errorCode = self.w32mci(str(command) , buffer, 254, 0)45 errorCode = self.w32mci(str(command).encode(), buffer, 254, 0) 46 46 if errorCode: 47 47 raise MCIException(self, command, errorCode) … … 137 137 lengthBuffer = self._mci.send("status %s length" % \ 138 138 (alias,)) 139 lengthBuffer = str(lengthBuffer, "ascii") 139 140 self._mci.send("play %s from 0 to %s" % \ 140 141 (alias, lengthBuffer))
Note:
See TracChangeset
for help on using the changeset viewer.