In the code:
FMOD_RESULT result;
FMOD::System *system;
result = FMOD::System_Create(&system);
FMODErrorCheck(result);
result = system->init(100, FMOD_INIT_NORMAL, 0);
FMODErrorCheck(result);
FMOD::Sound *sound;
result = system->createSound("/home/djameson/Music/Hurts-Like-Heaven-Cold-Play.mp3", FMOD_DEFAULT, 0, &sound);
FMODErrorCheck(result);
FMOD::Channel *channel;
result = system->playSound(FMOD_CHANNEL_FREE, sound, false, &channel);
FMODErrorCheck(result);
result = channel->setVolume(0.5f);
FMODErrorCheck(result);
I am confused about the pointer usage. For example the line FMOD::Channel *channel, creates a pointer of type Channel but It doesn't say where it points too.
Don't you usually go pointer = &variable
I am new at c++. Thank-you for your help.