How to consider the structure of such a file is opened?

The structure:
struct WavFmt
 unsigned short encoding;
 unsigned short channels;
 unsigned int frequency;
 unsigned int byterate;
 unsigned short blockAlign;
 unsigned short bitsPerSample;

the open method of the file
#ifdef _WIN32
 if (life == -1) 
 printf("Open failed on input file: %s\n", filename);
#ifdef _WIN32
 wchar_t path[MAX_PATH];
 //std::string path_in_string = path;
 std::wcout << path/*path_in_string.c_str()*/ << std::endl;
#endif // _WIN32
April 7th 20 at 15:22
1 answer
April 7th 20 at 15:24
Here it is described how to do it, but to tie to OpenAL and have a little Google

Find more questions by tags C++OpenALWAV