Re: Sound Libraries in python
The same mixer deals with sound (loaded before playing) and music (loaded while playing).In Python, a module is actually imported the first time only. The next times the module is only linked.The module should import pygame and eventually initialize it in the
Re: Sound Libraries in python
The same mixer deals with sound (loaded before playing) and music (loaded while playing).In Python, a module is actually imported the first time only. The next times the module is only linked.The module should import pygame and eventually initialize it in the
Re: Sound Libraries in python
About the delay in pygame:https://bitbucket.org/pygame/pygame/iss … ted-momentIn short, the default value for the buffer has been changed in version 1.8 to a huge value to avoid any scratchy sound while playing music. The trouble is that this value is not suited
Re: Sound Libraries in python
About the delay in pygame:https://bitbucket.org/pygame/pygame/iss … ted-momentIn short, the default value for the buffer has been changed in version 1.8 to a huge value to avoid any scratchy sound. The trouble is that this value is not suited for games. Solution:
Re: Sound Libraries in python
This is fantastic thank you! I must have missed the description of the buffer size as I dont understand any of the arguments in the pre_init call. I reduced the first numbers, but never could find what the last number did. This is great!Do you know if it is better
Re: Sound Libraries in python
About the separate sound module, its your choice. Add a module if you really need it. Keep it simple.But the mixer should be initialized at the beginning, at least before the game loop starts. Initializing the mixer all the time would be useless, or worse.You will
Re: Sound Libraries in python
Yes, I used those when I was first messing around with pygame. They were very helpful!Do you know if there is any good way to have a module get the focus, while of the key commands without importing pygame again? Currently I have a menu module that imports pygame
Re: Sound Libraries in python
Yes, I used those when I was first messing around with pygame. They were very helpful!Does the music section of the mixer then get the same buffer size as the sound effects? I have music that can have the huge buffer size, but I only want the music to have that
Re: Sound Libraries in python
[[wow]], I just read clientmediasound.py.That is complex! Have you considered making it into a package and placing it on the pygame website? There is maybe 1 audio package on there and it doesnt do anything useful from what I could tell.Having a package that can
Sound Libraries in python
Hello,Ive been asking around on the audio game developers email list, but Ive not really found any quality sound libraries for python.Im using pygame in my programming, but Im having the problem in pygame that:1. the sound has a major delay (500ths of a second, but
10 matches
Mail list logo