void Error(int err)
{
if (err==1) MessageBox(NULL,"Couldn't open file","File error",MB_ICONEXCLAMATION | MB_OK);
if (err==2) MessageBox(NULL,"The file is empty","File error",MB_ICONEXCLAMATION | MB_OK);
if (err==3) MessageBox(NULL,"Out of memory","Buffer error",MB_ICONEXCLAMATION | MB_OK);
if (err==4) MessageBox(NULL,"Error initializing sound","Buffer error",MB_ICONEXCLAMATION | MB_OK);
if (err==5) MessageBox(NULL,"Error setting primary sound buffer format","Buffer error error",MB_ICONEXCLAMATION | MB_OK);
if (err==6) MessageBox(NULL,"Error playing sound buffer","Buffer error",MB_ICONEXCLAMATION | MB_OK);
if (err==7) MessageBox(NULL,"Error setting special effects sound buffer","Special effects buffer error",MB_ICONEXCLAMATION | MB_OK);
}