- str= wxString(m_waveData,4);
- if (str != "RIFF") return -1;
- str= wxString(&m_waveData[WAVE_INDEX],4);
- if (str != "WAVE") return -1;
- str= wxString(&m_waveData[FMT_INDEX],4);
- if (str != "fmt ") return -1;
- str= wxString(&m_waveData[FMT_INDEX+waveformat.uiSize+8],4);
- if(str != "data") return -1;
+ if (memcmp(m_waveData, "RIFF", 4) != 0)
+ return -1;
+ if (memcmp(&m_waveData[WAVE_INDEX], "WAVE", 4) != 0)
+ return -1;
+ if (memcmp(&m_waveData[FMT_INDEX], "fmt ", 4) != 0)
+ return -1;
+ if (memcmp(&m_waveData[FMT_INDEX+waveformat.uiSize+8], "data", 4) != 0)
+ return -1;