Skip to content

SAPI 5: percent to rate/pitch must return an integer - #9699

Merged
michaelDCurran merged 1 commit into
nvaccess:threshold_py3_stagingfrom
josephsl:py3divisionOperatorSapi5
Jun 9, 2019
Merged

SAPI 5: percent to rate/pitch must return an integer#9699
michaelDCurran merged 1 commit into
nvaccess:threshold_py3_stagingfrom
josephsl:py3divisionOperatorSapi5

Conversation

@josephsl

@josephsl josephsl commented Jun 8, 2019

Copy link
Copy Markdown
Contributor

Link to issue number:

None, although a follow-up to a previous division operator pull request

Summary of the issue:

SAPI 5 synth cannot be used in Python 3 mode because pitch/rate is seen as a float.

Description of how this pull request fixes the issue:

Changed one slash to two slashes in percent to pitch/rate methods to make sure these values are returned as integers.

Testing performed:

Tested with source code copy (Python 2 and 3) and comparing results of these method calls.

Known issues with pull request:

None

Change log entry:

None

@josephsl
josephsl requested a review from michaelDCurran June 8, 2019 22:20
… Re nvaccess#9641.

Runtime test result: SAPI5 synth driver did not load in Python 3 mode because percentage to rate/pitch were returning floats instead of integers. This has been corrected.
@josephsl
josephsl force-pushed the py3divisionOperatorSapi5 branch from 360b34c to 88724bc Compare June 8, 2019 22:22
@michaelDCurran
michaelDCurran merged commit 61e66ec into nvaccess:threshold_py3_staging Jun 9, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Jun 9, 2019
@josephsl
josephsl deleted the py3divisionOperatorSapi5 branch September 16, 2019 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants