OpenAL sound effects not working .. Please Help
Hi
I ported OpenAL to our platform and able to play the wav files.
I wrote a sample openal application and try to produce some sound effects.
Play back of audio is working but sound effects are not working.
I am using jungle.wav which is mono channel sound wave file as input
# The Code snippet used is mentioned below.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>
#define NUM 2
alutInit(0,0) ;
alGetError();
SourcesPos[0] = SourcesPos[1] = SourcesPos[2] = 0.0f;
ListenerPos[0] = ListenerPos[1] = ListenerPos[2] = 0.0f;
ListenerOri[0] = 0.0f;
ListenerOri[1] = 0.0f;
ListenerOri[2] = -1.0f;
ListenerOri[3] = 0.0f;
ListenerOri[4] = 1.0f;
ListenerOri[5] = 0.0f;
alListenerfv(AL_POSITION, ListenerPos);
alListenerfv(AL_ORIENTATION, ListenerOri);
alGenBuffers(NUM, Buffers);
Buffer[0]= alutCreateBufferFromFile("/Res/jungle.wav");
err = alutGetError();
alGenSources(NUm, Sources);
alSourcei (Sources[0], AL_BUFFER, Buffers[0] );
alSourcef (Sources[0], AL_REFERENCE_DISTANCE, 25*2);
alSourcefv(Sources[0], AL_POSITION, SourcesPos);
SourcesPos[0] = 200;
SourcesPos[1] = 200;
SourcesPos[2] = 25;
alSourcefv(Sources[source], AL_POSITION, SourcesPos);
alSourcePlay(Sources[source]);
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>
I am expecting the sound to be played in the right headphone/speaker.
But the sound is played in both the headphones.
I used wave device and generated the output.wav file.
In that file also the sound is played in both the headphones.
I used the following settings for configuring OpenAL alsoft.conf.
Someone please help me the error in the above code.
Does OpenAL able to generate the right sound or left sound effect depending on the co ordinates
format = AL_FORMAT_STEREO16
cf_level = 0
frequency = 44100
refresh = 4096
sources = 256
stereodup = false
drivers = osp // Our platform
excludefx =
layout_STEREO = fl=-90, fr=90
layout_QUAD = # Sets the speaker layout when using quadriphonic output.
# Available speakers are back-left(bl), front-left(fl),
# front-right(fr), and back-right(br).
# The default is:
bl=-135, fl=-45, fr=45, br=135
layout_51CHN = bl=-110, fl=-30, fc=0, fr=30, br=110
layout_61CHN = sl=-90, fl=-30, fc=0, fr=30, sr=90, bc=180
layout_71CHN = bl=-150, sl=-90, fl=-30, fc=0, fr=30, sr=90 br=150
device = default
periods = 0
capture = default
mmap = true
[wave] # Wave File Writer stuff
file = # Sets the filename of the wave file to write to. An empty name
# Default is empty
volume = 100
Thanks
Swaroop
Hi,
You might want to check out connect.creativelabs.com to see how they can help you.
Similar Messages
-
My ipad 3 sounds are not working please help
Hi
I have an ipad 3G wifi IOS version 5.1.1(9B206) modem firmware 1.0.11..once i plug my headset sounds work perfect but without the headset sounds doesnt work..not in you tube not in music nothing..but when i increase the ringing volume in settings -> general -> sounds it perfectly woks but when i increase with the volume button on the right side top it doesnt increse unless the headset is pluged in..also without the headset no sounds on apps, keyboard and when unlocking..i did trying restting the ipad ,tried double clicking the home button and went to multitask and swiped to the right and checked whether the mute is enabled and its a no and its a NO..
Please Helphttp://www.youtube.com/watch?v=cJg7qp_TzqM
watch this works like magic -
I installed windows 7 on my macbook pro. all is working but lan adaptor and sound od laptop is not working. please help me or send the link where i can download the these drivers.I have lost my resource cd .
If you are running Lion or Mountain Lion, the drivers are downloaded from within Bootcamp Assistant. If you are running Snow Leopard the drivers are on your Snow Leopard install disk.
Read the Bootcamp Install Guide for your version of OSx. http://www.apple.com/support/bootcamp/
Bootcamp questions should be asked in the Bootcamp forum where the Bootcamp gurus hang out https://discussions.apple.com/community/windows_software/boot_camp -
my iphone 4s does not start by power switch, it starts when i connect to pc. the proximity sensor is not working. please help.
Sounds like it may be a hardware issue.
Please contact Apple Support in your country.
Here is a list of numbers: http://support.apple.com/kb/HE57
Regards
J -
I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4
I have unabled 5 fingure gesture now not able to perform any task,also my power button is not working,please help me in removing this gesture,using I phone 4
-
I have 4s iPhone , I download the iOS 7. Now the front receiver microphone is not working , please help me that how to fix the problem.
I live in South Africa, and I had the same problem with my iPhone 4.
After weeks of frustration and swearing, I was in the process of restoring my phone to a previous iOS. To do that you need to turn the "Find my iPhone" option off, since i turned it off, my problem was solved. No need to repair anything or revert back to old iOS.
***** that i cant use Find my iPhone, but atleast i can use my phone. -
this is what my iphone 4 shows. iv tried switching off again and again, closing apps by double tapping the home button but still not working. please help.
is there any other method to download ios 6.1.2.
my phone is not being recognized by itunes on my new windows 8. neither its working on touch copy.
kindly help.
thankswell in thatcase, i need another help .
thanks for your instant reply.
i have currently bought a new laptop (windows 8) and my iphone is not being recognized by itunes.
because i have no backup on my previous laptop, i downloaded touchcopy but even touch copy is not recognizing my iphone. -
while updating 4.0 version to 5 version system shows sim card is not valid. My iphone is not working .Please help me
I would imagine your iPhone was hacked to make it work on your local carrier.
Updating the iOs to 5.xx will lock it back to the original carrier .The carrier holding the lock are the only
entity able to authorise the unlock .You will have to contact them and see if they unlock and the terms the apply -
HT1414 my handsfree is not working please help me
Hi There!
I am using Iphone 4s and ny handsfree in not working please help meTry restarting you iPhone by holding down the on/off and the home buttons at the same time until you see the Apple logo.
-
I have ne iphone 5, i been setting my email using AT&T global but it is not working, please help me on the correct configuration
Contact the email provider and obtain the correct setup information.
-
The built-in mic in g50 122ca laptop model is not working. please help me out.
the built-in mic in g50 122ca laptop model is not working. please help me out. OS: Windows Vista (32-bit)
here is a sample code .
so far you procedure looks good but
i bet you have to specify the name of report , instead of 'filename'.
see this
Plist_id := GET_PARAMETER_LIST('P_name');
IF NOT ID_NULL(Plist_id) THEN
DESTROY_PARAMETER_LIST(Plist_id);
END IF;
Plist_id := CREATE_PARAMETER_LIST('P_name');
ADD_PARAMETER( Plist_id, 'P_Receive_date', TEXT_PARAMETER, TO_CHAR(Receive_date,'mm/dd/yyyy'));
ADD_PARAMETER( Plist_id, 'P_Hearing_date', TEXT_PARAMETER, TO_CHAR(Hearing_date,'mm/dd/yyyy'));
ADD_PARAMETER( Plist_id, 'P_Hearing_time', TEXT_PARAMETER, TO_CHAR(Hearing_time,'mm/dd/yyyy'));
ADD_PARAMETER( Plist_id, 'P_Issue_date', TEXT_PARAMETER, TO_CHAR(Issue_date,'mm/dd/yyyy'));
ADD_PARAMETER( Plist_id, 'P_Workshop_date', TEXT_PARAMETER, TO_CHAR(Workshop_date,'mm/dd/yyyy'));
-- RUN_PRODCT(REPORTS,'..\Reports\Pro_License',SYNCHRONOUS, RUNTIME, FILESYSTEM, Plist_id, NULL);
-- here Pro_License is the name of report.
did you tried to see if the parameter passed using a message ?
try
message('parameter name'); pause; write this before "run_report". -
my itnues for pc is not working it shows that iTunes has stop working,I have downloaded Itnues many times but still it is not working, please help me
Please helppppp
-
All my old tv shows are not working please help my computer sed I have to Atheris 5 computers to play all my old tv shows I Pade for with eney Itunas cards.
What do y mean by not work?
What happens when y try to play them on yur iPod?
What happens when yo try to play them in iTunes on yur computer?
If you get a message what is the exact wording of the message?
You can redownload most iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
Some countries do not allow redownloads some kinds of media -
The click at touchpad is not working, please help!!!
I use Macpro, recently the click at touchpad is not working, please help!!! Thank you !!
For this issue AppleCare support told me to so a SMC reset as follows:
Power the machine OFF.
At the SAME TIME hold down the following buttons:
Shift
Control
Option
Power
Then release all buttons. Power up the Macbook and see if the trackpad button work.
Hope this helps.
Bill -
hi
i tried to update to ios 8.2 on my iphone 5s when message popup to me now my iphone not working, please help i dont want to lose my dataWhat is the exact text of the message you got? And did you not back up before you updated?
Maybe you are looking for
-
Switching from PC to Mac mini, enough power to perform tasks?
Switchingfrom PC to Mac mini, enough power to perform tasks? Tasks:archiving slides, scans at 9600 DPI result 2.5 GB files, some of the scans are around 60 MB files. Also intend to edit video. Mostly working in Photoshop cs5. Miniconfiguration: i7pro
-
Can we schedule a concurrent program with in a request set
HI, I have a requirement that to schedule a concurrent program in a request set after completing the another request with in the set ie i have request set with two concurrent programs and each concurrent program having two parameters for each if i su
-
Re: BAR Codes generation through SAP
Dear All, Is it possible to generate BAR Codes in SAP. Regards, Vivek
-
Java client error - initPlugins NullPointerException
I am writing my first java PAPI client and getting a NullPointerException when calling processService.createSession. I have included the following in my build classpath: ftlib.jar, ftpapi.jar, fuegocore.jar, Opta2000.jar And, I am including the follo
-
I am able to successfully send an e-mail using the Internet Toolkit; however, the "message" is always empty (the text string wired to message in my VI does not appear in the e-mail). I have tried different types of Email VIs and I always have the sam