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

Daniel PEACOCK dpeacock at creativelabs.com
Fri Apr 17 02:31:20 PDT 2009





Hi,

>> 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

Are you sure you are not using the "Generic Hardware" device?   The
"Generic Software" device will only output stereo.

Dan
Creative Labs (UK) Ltd.

Notice
The information in this message is confidential and may be legally
privileged.  It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient,  any disclosure,  copying or distribution of the message,  or
any action taken by you in reliance on it,  is prohibited and may be
unlawful.  If you have received this message in error,  please delete it
and contact the sender immediately.  Thank you.

Creative Labs UK Ltd company number 2658256 registered in England and Wales
at Belmont Road, Belmont Place, Maidenhead, Berkshire, SL6 6TB



                                                                           
             Ümit Uzun                                                     
             <umituzun84 at gmail                                             
             .com>                                                      To 
             Sent by:                  OpenAL                              
             openal-bounces at op         <openal at opensource.creative.com>    
             ensource.creative                                          cc 
             .com                                                          
                                                                   Subject 
                                       Re: [Openal] How can I play mono    
             04/17/2009 10:21          wav sound in specific channel?      
             AM                                                            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




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
_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal

ForwardSourceID:NT0006B42E




More information about the Openal mailing list