   using openal
  I need a piece of music to play continuously or few different pieces to play one after the other continuously in my application. I also want to pan the music to left so that only left ear hears it and or with the same with right side. And when needed back to normal. The music needs to be stereo or spatial so that it sounds pleasant. Is it possible to implement this using OpenaAL? Can anyone give me a clue on how i can achieve this?   
  I assume you intend to use a compressed format such as .mp3 or .ogg and stream the music dynamically. Although I haven't actually done this using OpenAL, my understanding is that to do this you'll have to decode the music yourself and feed the raw audio data to OpenAL via audio buffers.I don't know how accurate or up-to-date it is, but here is a tutorial on the subject.As for panning of a stereo music track, that may require a little extra effort (here is a thread on the topic I found via Google).   ; I was investigating the use of OpenAL for my project and somehow wound up using SDL_Mixer, and changing from Win32/OpenGL to straight SDL/OpenGL. I wrote all my own stereo code, for simulating the stereo effect of 3D sounds as well as being able to control the pan of any other channel, be it music or whatever. Lazy foo productions website will show you the way if you are interested (google it ?)..   ;Quote:I was investigating the use of OpenAL for my project and somehow wound up using SDL_Mixer, and changing from Win32/OpenGL to straight SDL/OpenGL.My own experience is that with SDL_mixer's built-in music playback functions, it's not possible to loop or queue music tracks seamlessly.SDL_mixer does offer a music mixing callback function, which means you can decode the audio yourself and feed it to SDL_mixer via the callback. This is basically the same as you'd be doing with OpenAL though.   ;  Yes, the only formats for seamless looping under SDL_mixer are .mod, .s3m, .xm, .it, and .mid with the last one taking some external files to do it with.  Also, the real-time audio filters under .it don't work well under SDL_mixer.   