Re: AW: SDL::Mixer::Channels

2011-07-21 Thread Anjali Menon
Ok just when you guys thought my questions were over, I had another issue with the code. All I am doing is playing the same chunk of sound three times using play_channel. Its fine the first two time but it refuses to play the sound for the third time. What am I missing here? use SDL; use SDL::Mix

Re: AW: SDL::Mixer::Channels

2011-07-21 Thread Anjali Menon
No problem. Just relieved that its finally working! On Thu, Jul 21, 2011 at 12:16 PM, My wrote: > Ah anjali my mistake I forgot to mention effects ... my mistake. > > Kartik Thakore > > On 2011-07-21, at 10:02 PM, "Tobias Leich" wrote: > > > Take a look at this: > > > >

Re: SDL::Mixer::Channels

2011-07-21 Thread Anjali Menon
Thank you! That worked. On Thu, Jul 21, 2011 at 11:32 AM, Tobias Leich wrote: > Take a look at this: > > http://sdl.perl.org/SDL-Mixer-Effects.html#set_panning > > ** ** > > You have to register a penning effect, on both channels… > > ** ** > > This should work. > > ** ** > > Ch

Re: SDL::Mixer::Channels

2011-07-21 Thread Anjali Menon
Hi, Yes I want to play sound first on the left and then on the right channel. My desktop is hooked to a USB sound card with Left and right Line-in and Line out options and that is the sound card I am using to play the sounds. I modified the program to incorporate what you said but it still does no

Re: AW: SDL::Mixer::Channels

2011-07-21 Thread My
Ah anjali my mistake I forgot to mention effects ... my mistake. Kartik Thakore On 2011-07-21, at 10:02 PM, "Tobias Leich" wrote: > Take a look at this: > > > http://sdl.perl.org/SDL-Mixer-Effects.html#set_panning > > > > You have to

AW: SDL::Mixer::Channels

2011-07-21 Thread Tobias Leich
Take a look at this: http://sdl.perl.org/SDL-Mixer-Effects.html#set_panning You have to register a penning effect, on both channels. This should work. Cheers, FROGGS Von: Anjali Menon [mailto:anjalimeno...@gmail.com] Gesen

Re: smpeg source for SDL

2011-07-21 Thread email
It is. To be exact it is searching for an sdl-config script. If that is missing, and the libs or headers are not found... well, you got the idea. But as I said in the other mail, Alien::SDL dont build libs on native windows. There is a perbuilt binary pack. Zitat von Chris Marshall : On

Re: smpeg source for SDL

2011-07-21 Thread email
Basically all you need is Alien::SDL's ConfigData and the Alien/SDL.pm... You should be able to write that stuff on your own (i can send you mine if you want). But, we did some magic especially for windows when it comes to the dll's. If you try to load Version.dll (for SDL::Version module) v

Re: smpeg source for SDL

2011-07-21 Thread Chris Marshall
On Thu, Jul 21, 2011 at 5:45 AM, Sisyphus wrote: > ... > I was mainly just curious to see how it all went on (32-bit and 64-bit) > native Win32, but it seems I have to install Alien::SDL (and its dependency > chain) anyway which is rather annoying. > > Is there some simple way to remove the A

Re: smpeg source for SDL

2011-07-21 Thread Sisyphus
- Original Message - From: To: "My" Cc: "Sisyphus" ; Sent: Thursday, July 21, 2011 1:53 AM Subject: Re: smpeg source for SDL Hi guys... Latest Alien::SDL comes with a libpng15 patch, the patch can be seen here: https://github.com/PerlGameDev/Alien-SDL/blob/master/patches/SDL_imag

Re: SDL::Mixer::Channels

2011-07-21 Thread email
Hi, Channels are not bound to left or right. A channel is just a slot that lets you play sound samples. And if you allocate two channels, you have channel 0 and 1 (not 1 and 2), thats why you dont hear your last sample. You want to play sounds first on left and then on right box for examp

Re: question about SDL

2011-07-21 Thread Anjali Menon
Hi, I got done with installing SDL and I wrote a simple program that opens the audio device allocates both channels to the mixer, sets the volume of one of the channels to be 0 , loads a wav file and then plays it twice one after another with a delay in between. I have pasted the code below. use

Re: question about SDL

2011-07-21 Thread Anjali Menon
Thanks Kartik On Wed, Jul 20, 2011 at 12:03 PM, Kartik Thakore wrote: > To work with perl, I suggest you learn CPAN. It is how all this will > be installed for you. > > cpan SDL > > Should work. If you have trouble just bug us at sdl-devel@perl.org . > Also when replying to these threads CC sdl-