j'ai besoin de votre aide dans la programmation du openalalutCreateBufferHelloWorld() dans openal
je suis nouveau dans la programmation en général >> et commencer à apprendre openal par vC++ 6
et je l'apprendre de la doc que l'attachement avec sdk1.1
et ont ce programme
#include <conio.h>
#include <stdlib.h>
#include <stdio.h>
#include <al.h>
#include <alc.h>
#include <alut.h>
#pragma comment(lib, "openal32.lib")
#pragma comment(lib, "alut.lib")
ALCdevice *alcOpenDevice(ALCdevice *device);
ALCenum alcGetError(ALCdevice *device);
ALuint buffer ;
ALuint source;
// 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 };
int main()
{
alGenSources(1,&source);
alSourcei (source, AL_BUFFER, alutCreateBufferHelloWorld());
alSourcef (source, AL_PITCH, 10.0 );
alSourcef (source, AL_GAIN, 10.0 );
//alSourcefv(source, AL_POSITION, SourcePos);
//alSourcefv(source, AL_VELOCITY, SourceVel);
// alSourcei (source, AL_LOOPING, loop );
alSourcePlay(source);
alDeleteSources(1, &source);
return 0;
};
et j'ai une erreur
C: \ Utilisateurs \ Toshiba \ Desktop \ Projet d'obtention du diplôme \ OpenAL \ open Test AL \\ \ \ \ \ \ \ \ Cpp9.cpp (55): erreur C2065: 'alutCreateBufferHelloWorld': identificateur non déclaré Erreur lors de l'exécution cl .EXE.
et je ne konw quel est le problème
merci alote
oooooooooooooh vraiment besoin de votre aide >>> et rapidement et j'ai besoin de votre aide sur ce que je devrais faire exactement pour apprendre la programmation en openal pendant un mois car j'en ai besoin n mon projet de fin d'études et quelle est la meilleure lang. pour apprendre – maiajam