Closed GoogleCodeExporter closed 9 years ago
> This is Pyglet 1.4 alpha1 running on Windows Vista Home Basic SP2, Python
2.7.3. Using AVbin 11.
This was 1.2 alpha1, sorry :)
Original comment by useboxnet
on 23 May 2013 at 1:33
I also encountered this issue and could fix it.
Fix:
* Open "Python27\lib\site-packages\pyglet\media\drivers\directsound\__init__.
py"
* Go to the "set_pitch" function around line 425
* Change this: frequency = int(pitch * self.audio_format.sample_rate)
* ..to this: frequency = int(pitch * self.source_group.audio_format.sample_rate)
The problem was that audio_format is not a direct member of "self" but belongs
to self.source_group.
Greetings,
Hauke
Original comment by basspl...@d-lab42.com
on 21 Oct 2013 at 9:48
Good stuff! Thanks, I'll check it when I have some time.
Original comment by useboxnet
on 21 Oct 2013 at 9:50
This issue was closed by revision f85d0596a569.
Original comment by useboxnet
on 21 Oct 2013 at 4:46
Thanks again for the patch!
I didn't see what was the problem when I reported the issue and because I use
OpenAL, I didn't investigate any further :)
Original comment by useboxnet
on 21 Oct 2013 at 4:48
Glad I could help :). Thanks for your work!
Original comment by basspl...@d-lab42.com
on 21 Oct 2013 at 6:26
Original issue reported on code.google.com by
useboxnet
on 24 Mar 2013 at 8:24