[Openal] How can I play mono wav sound in specific channel?

Ümit Uzun umituzun84 at gmail.com
Fri Apr 17 02:21:13 PDT 2009


Hi Don,

>I'm not quite sure what you mean.
>
>The "GS" device will only output stereo so there is nothing you can do to
get it to output 5.1 audio. There >maybe some options in your soundcard
(which one do you have?) for controlling how stereo audio is upmixed >(or
not) to 5.1 speakers (e.g Creative have a technology called CMSS that does
this, and you can control the >settings in the Creative Audio Control
Panel).

There is a audio which is C:\Program Files\OpenAL 1.1
SDK\samples-backup2\media\fiveptune.wav in OpenAL samples, and when I play
this sound by using GS it can play each voice from each speaker pieces
succesfully. I mean could we control each channel by using canned stereo
sound on GS mode?
And I have an onboard sound card(Realtek HD Audio Output).

Chris and Don; I know I have asked to much but I have a another question
with your courtesy :) As you know I have used Chris code which we had
mention yesterday. By this code I can play AL_FORMAT_MONO16 (Enumaration
4353) audio successfully but when I try to play AL_FORMAT_MONO8 (Enumaration
4352) audio, there is no sound unfortunately. Do you think;

if(fmt.wBitsPerSample == 8) {
   ALubyte *data = load_data((const ALubyte*)pData, iDataSize);
   alBufferData(uiBufferID, alGetEnumValue("AL_FORMAT_51CHN8"),
                data, iDataSize*6, iFrequency);
   delete[] data;
}

part is correct for handle AL_FORMAT_MONO8 and play on 5.1 speaker system?

Best Regards.
Thanks in advance.

--

Umit Uzun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20090417/81c4d4f4/attachment-0001.html


More information about the Openal mailing list