The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
[SDL_Mixer] Retrieving Mix_SetPanning values
Islander


Joined: 19 May 2015
Posts: 2
Hello everyone.

The project I'm working on uses 4 channels and I'm applying Mix_SetPanning depending on where the mouse cursor is.

What I'm trying to achieve now is to display the current panning parameters, for each channels, but I can't find a way to retrieve the values.

A short sample of my code showing how I'm using the panning :
Code:
...
                  if (x > 300 && x < 500)
                  {
                     Mix_SetPanning(1, 255,255);
                     Mix_SetPanning(2, 255, 128);
                     Mix_SetPanning(3, 128, 255);
                     Mix_SetPanning(4, 25, 25);
                  }

                  else if (x < 300)
                  {
                     Mix_SetPanning(1,64,128);
                     Mix_SetPanning(2,255,255);
                     Mix_SetPanning(3,64,64);
                     Mix_SetPanning(4,64,32);
                  }
...


Any help is appreciated, thanks in advance.