This may sounds little odd or question may be a trivial one, but for most of my life I was programming in PHP (yeah, I know how it sounds). So when I switched to C++ there are things quite unfamilliar for me (cause of php habits).
So I'm loading wav header data using struct. Values are definded as uint8_t type:
typedef struct WAV_HEADER
{
uint8_t RIFF[4]; // RIFF
uint8_t WAVE[4]; // WAVE
}
I have to compare them with four-letter strings for something like that:
if(wavHeader.RIFF[0] . wavHeader.RIFF[1] . wavHeader.RIFF[2] . wavHeader.RIFF[3] == 'RIFF')
{ do sth }
This should be easy check if loaded file is a Wave file (*.wav). Thanks for any help.