Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > The IT Pro > Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Programming A discussion forum for programs and programming used in tech-related businesses.

Reply
 
LinkBack Thread Tools
Old 10-19-2009, 01:11 PM   #1 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 3
OS: windows vista


fatel error in vc++ 6 in openAl

hi every body

i need your help

i have a problem in programing in visual c++ 6

my code will run openAl lib

and when i run it i have this error

c:\program files\microsoft visual studio\vc98\include\al\alut.h(5) : fatal error C1083: Cannot open include file: 'alc.h': No such file or directory
Error executing cl.exe.

Cpp1.obj - 1 error(s), 0 warning(s)

also i am install all the openAl all include file (al.h ,alu.h,alut.h,alc.h)

and put them in (program files\microsoft visual studio\vc98\include\al)

and all openAl32.lib ,alut.lib,alu.lib,and instal the OpenAL 1.1 SDK

and i dont know how i can solve this error

thanx alot for your help

good by
maiajam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 10-19-2009, 01:13 PM   #2 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 3
OS: windows vista


Re: fatel error in vc++ 6 in openAl

and this is my code



#include <conio.h>
#include <stdlib.h>
#include <al/al.h>

#include <al/alu.h>
#include <al/alut.h>


//#pragma comment (lib, "ALut.lib")


//#pragma comment (lib, "OpenAL32.lib")

/*
* These are OpenAL "names" (or "objects"). They store and id of a buffer
* or a source object. Generally you would expect to see the implementation
* use values that scale up from '1', but don't count on it. The spec does
* not make this mandatory (as it is OpenGL). The id's can easily be memory
* pointers as well. It will depend on the implementation.
*/

// Buffers to hold sound data.
ALuint Buffer;

// Sources are points of emitting sound.
ALuint Source;


/*
* These are 3D cartesian vector coordinates. A structure or class would be
* a more flexible of handling these, but for the sake of simplicity we will
* just leave it as is.
*/

// Position of the source sound.
ALfloat SourcePos[] = { 0.0, 0.0, 0.0 };

// Velocity of the source sound.
ALfloat SourceVel[] = { 0.0, 0.0, 0.0 };


// Position of the Listener.
ALfloat ListenerPos[] = { 0.0, 0.0, 0.0 };

// Velocity of the Listener.
ALfloat ListenerVel[] = { 0.0, 0.0, 0.0 };

// Orientation of the Listener. (first 3 elements are "at", second 3 are "up")
// Also note that these should be units of '1'.
ALfloat ListenerOri[] = { 0.0, 0.0, -1.0, 0.0, 1.0, 0.0 };



/*
* ALboolean LoadALData()
*
* This function will load our sample data from the disk using the Alut
* utility and send the data into OpenAL as a buffer. A source is then
* also created to play that buffer.
*/
ALboolean LoadALData()
{
// Variables to load into.

ALenum format;
ALsizei size;
ALvoid* data;
ALsizei freq;
ALboolean loop;

// Load wav data into a buffer.

alGenBuffers(1, &Buffer);

if(alGetError() != AL_NO_ERROR)
return AL_FALSE;

alutLoadWAVFile("wavdata/FancyPants.wav", &format, &data, &size, &freq, &loop);
alBufferData(Buffer, format, data, size, freq);
alutUnloadWAV(format, data, size, freq);

// Bind the buffer with the source.

alGenSources(1, &Source);

if(alGetError() != AL_NO_ERROR)
return AL_FALSE;

alSourcei (Source, AL_BUFFER, Buffer );
alSourcef (Source, AL_PITCH, 1.0 );
alSourcef (Source, AL_GAIN, 1.0 );
alSourcefv(Source, AL_POSITION, SourcePos);
alSourcefv(Source, AL_VELOCITY, SourceVel);
alSourcei (Source, AL_LOOPING, loop );

// Do another error check and return.

if(alGetError() == AL_NO_ERROR)
return AL_TRUE;

return AL_FALSE;
}



/*
* void SetListenerValues()
*
* We already defined certain values for the Listener, but we need
* to tell OpenAL to use that data. This function does just that.
*/
void SetListenerValues()
{
alListenerfv(AL_POSITION, ListenerPos);
alListenerfv(AL_VELOCITY, ListenerVel);
alListenerfv(AL_ORIENTATION, ListenerOri);
}



/*
* void KillALData()
*
* We have allocated memory for our buffers and sources which needs
* to be returned to the system. This function frees that memory.
*/
void KillALData()
{
alDeleteBuffers(1, &Buffer);
alDeleteSources(1, &Source);
alutExit();
}




int main(int argc, char *argv[])
{
printf("MindCode's OpenAL Lesson 1: Single Static Source\n\n");
printf("Controls:\n");
printf("p) Play\n");
printf("s) Stop\n");
printf("h) Hold (pause)\n");
printf("q) Quit\n\n");

// Initialize OpenAL and clear the error bit.

alutInit(NULL, 0);
alGetError();

// Load the wav data.

if(LoadALData() == AL_FALSE)
{
printf("Error loading data.");
return 0;
}

SetListenerValues();

// Setup an exit procedure.

atexit(KillALData);

// Loop.

ALubyte c = ' ';

while(c != 'q')
{
c = getche();

switch(c)
{
// Pressing 'p' will begin playing the sample.

case 'p': alSourcePlay(Source); break;

// Pressing 's' will stop the sample from playing.

case 's': alSourceStop(Source); break;

// Pressing 'h' will pause the sample.

case 'h': alSourcePause(Source); break;
};

}

return 0;
}
maiajam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-21-2009, 11:35 PM   #3 (permalink)
Registered User
 
Join Date: Oct 2009
Posts: 3
OS: windows vista


Re: fatel error in vc++ 6 in openAl

oh bad no one here can halp me
maiajam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 10:57 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85