Re: [pygame] vista testing...

2008-03-25 Thread Lenard Lindstrom
The 1.7 and 1.8 dependencies are linked to a different C library, msvcrt.dll and msvcr71.dll respectively. It is quite likely they will not work together. Lenard Bo Jangeborg wrote: I have dropped in newer versions of sdl.dll in pygame 1.7 other times and that has worked. However the new

Re: [pygame] vista testing...

2008-03-25 Thread Lenard Lindstrom
Without calling pygame.mixer.pre_init the mixer defaults to a 22050 sample rate and a 3072 byte buffer. The following test program played the attached wave file with problem. import pygame pygame.init() sound = pygame.mixer.Sound(Awes.wav) sound.play() while pygame.mixer.get_busy():

Re: [pygame] vista testing...

2008-03-25 Thread Brian Fisher
with the release version, pygame 1.7 links to msvcr71.dll while the sdl dlls link to msvcrt.dll, and they run together fine except for opening things from file-like objects, so as long as you don't do that, the sdl version should be interoperable Here are builds of the same versions of sdl that

Re: [pygame] vista testing...

2008-03-25 Thread FT
Hi Lenard your not going to believe this after extensive testing, what was needed was the import os.path for that file and only that file would not play without the path. I am not joking about this, for I tested all the files inside the data folder from the folder above and all would

Re: [pygame] vista testing...

2008-03-25 Thread Douglas S. Blank
Bruce, It looks like you are mixing Windows paths (backslash) with Python strings. \awe means something different from \\awe. Python strings are pretty smart in figuring out what you mean, but can't do it in all cases. \a means, I think, ring the bell; \n is newline, etc. I think if you use

Re: [pygame] vista testing...

2008-03-25 Thread FT
Hi Doug, Of course, I forgot! How stupid, just one of those UNIX things that when never using that stuff any more, you forget. I should have known, but when half asleep when writing it and testing it, it is easy to forget. It had been months since I had an issue of using control chars and

Re: [pygame] vista testing...

2008-03-25 Thread Lenard Lindstrom
Hi Bo, SDL 1.2 uses DirectX 5. This may not be properly supported on Vista. I am surprised SDL audio defaults to it rather than waveout. Anyway, to check if it is a Pygame problem it would be useful if you could test SDL directly. I understand you have downloaded the prebuilts from

Re: [pygame] shadow demo

2008-03-25 Thread Casey Duncan
On Mar 23, 2008, at 10:49 PM, Ian Mallett wrote: This particular instance is interesting, as I want to use shadows for an outdoor scene with directional lighting. I just need the shadows in a small area right around the camera, but they must be very high resolution. The ground,

Re: [pygame] shadow demo

2008-03-25 Thread Ian Mallett
Cool! Does this work for self-shadowing?

Re: [pygame] vista testing...

2008-03-25 Thread René Dudfield
Hello, Yeah, it would be very useful if you could try the playmus program to try and reproduce your problem. This will help with a bug report to SDL. It would also help if we could summarise all your testing to make a better SDL bug report. eg. I tried this, then this, then this, then this,

Re: [pygame] vista testing...

2008-03-25 Thread Bo Jangeborg
playmus plays ok here Opened audio at 44100 Hz 16 bit stereo (LE), 3072 bytes audio buffer Playing Intro_Theme.ogg Does it default to dsound ? I tried to set the computer enviroment variable to SDL_AUDIODRIVER dsound. Is there another place were I should set it ? Lenard Lindstrom skrev: Hi

Re: [pygame] vista testing...

2008-03-25 Thread Lenard Lindstrom
Audio defaults to dsound (DirectX). The other available Windows setting for SDL_AUDIODRIVER is waveout *. What playmus tells us is streaming audio (pygame.mixer.music) is working for SDL. I have another program, playwave, that tests channels (pygame.mixer). I have uploaded it to my site where

Re: [pygame] vista testing...

2008-03-25 Thread Lenard Lindstrom
Two things I noted with playmus. First it initializes SDL with SDL_Init(SDL_INIT_AUDIO). Second it starts playback with Mix_FadeInMusic(music,looping,2000). It lacks a feature to start playback in the middle of a song unfortunately. Lenard René Dudfield wrote: Hello, Yeah, it would be

Re: [pygame] vista testing...

2008-03-25 Thread Brian Fisher
the fact that playmus SDL_Init(SDL_INIT_AUDIO) is interesting - I wonder if having a window or not affects whether playmus can use the dsound backend? How would one figure out what audio backend SDL chose? On Tue, Mar 25, 2008 at 5:06 PM, Lenard Lindstrom [EMAIL PROTECTED] wrote: Two things I

Re: [pygame] vista testing...

2008-03-25 Thread René Dudfield
Cool. Seems like we're getting closer to figuring this thing out... Two more tests to try: 1. Try with the dummy video driver to see if there are still scratchy noises. import os os.environ['SDL_VIDEODRIVER'] = 'dummy' This will tell us if a video driver is having an effect. 2. try pygame

Re: [pygame] vista testing...

2008-03-25 Thread Lenard Lindstrom
To answer Brian, the default audio driver is dsound. SDL exports function SDL_AudioDriverName. Maybe Pygame should wrap it. I found and compiled a C space aliens game* that uses SDL, SDL_image and SDL_mixer. I altered it to use frequency 44100, format AUDIO_S16, channels 2, chunk size 3072. It