@@ -18,7 +18,7 @@ MusicPropertyMonaural16bit WaveFileManager::LoadFileMonaural16bits(std::string p
1818
1919 fs.read (byte_32, 4 );
2020
21- if (!SequenceEqual (byte_32, RIFF, 4 ))
21+ if (!sequenceEqual (byte_32, RIFF, 4 ))
2222 {
2323 throw " It's not RIFF format file." ;
2424 }
@@ -28,7 +28,7 @@ MusicPropertyMonaural16bit WaveFileManager::LoadFileMonaural16bits(std::string p
2828 #pragma region Get FileSize
2929 fs.read (byte_32, 4 );
3030
31- property.m_FileSize = ConvertToInt32 (byte_32);
31+ property.m_FileSize = convertToInt32 (byte_32);
3232
3333 #pragma endregion
3434
@@ -38,7 +38,7 @@ MusicPropertyMonaural16bit WaveFileManager::LoadFileMonaural16bits(std::string p
3838 // this function will return "WAVE".
3939 fs.read (byte_32, 4 );
4040
41- if (!SequenceEqual (byte_32, WAVE, 4 ))
41+ if (!sequenceEqual (byte_32, WAVE, 4 ))
4242 {
4343 throw " It's not WAVE file." ;
4444 }
@@ -49,7 +49,7 @@ MusicPropertyMonaural16bit WaveFileManager::LoadFileMonaural16bits(std::string p
4949
5050 fs.read (byte_32, 4 );
5151
52- if (!SequenceEqual (byte_32, fmt, 4 ))
52+ if (!sequenceEqual (byte_32, fmt, 4 ))
5353 {
5454 throw " It's not WAVE file." ;
5555 }
@@ -60,7 +60,7 @@ MusicPropertyMonaural16bit WaveFileManager::LoadFileMonaural16bits(std::string p
6060
6161 fs.read (byte_32, 4 );
6262
63- if (ConvertToInt32 (byte_32) != 16 )
63+ if (convertToInt32 (byte_32) != 16 )
6464 {
6565 throw " It will have unnecessary chank." ;
6666 }
@@ -69,13 +69,13 @@ MusicPropertyMonaural16bit WaveFileManager::LoadFileMonaural16bits(std::string p
6969
7070 WAVEFORMATEX format;
7171
72- ReadWAVEFORMATEX (&fs, &format);
72+ readWAVEFORMATEX (&fs, &format);
7373
7474 #pragma region Get data(It will be threw away)
7575
7676 fs.read (byte_32, 4 );
7777
78- if (!SequenceEqual (byte_32, data_CONST, 4 ))
78+ if (!sequenceEqual (byte_32, data_CONST, 4 ))
7979 {
8080 throw " It's not WAVE file." ;
8181 }
@@ -88,7 +88,7 @@ MusicPropertyMonaural16bit WaveFileManager::LoadFileMonaural16bits(std::string p
8888
8989 fs.read (byte_32, 4 );
9090
91- musicData.m_DataSize = ConvertToInt32 (byte_32);
91+ musicData.m_DataSize = convertToInt32 (byte_32);
9292
9393 #pragma endregion
9494
@@ -101,7 +101,7 @@ MusicPropertyMonaural16bit WaveFileManager::LoadFileMonaural16bits(std::string p
101101 fs.read (byte_16, 2 );
102102 if (fs.eof ())
103103 break ;
104- list.push_back (ConvertToInt16 (byte_16));
104+ list.push_back (convertToInt16 (byte_16));
105105 }
106106
107107 musicData.m_Data = list;
@@ -117,25 +117,25 @@ MusicPropertyMonaural16bit WaveFileManager::LoadFileMonaural16bits(std::string p
117117 return property;
118118}
119119
120- void WaveFileManager::ReadWAVEFORMATEX (std::fstream* fs, WAVEFORMATEX* format)
120+ void WaveFileManager::readWAVEFORMATEX (std::fstream* fs, WAVEFORMATEX* format)
121121{
122122 Int8 i[4 ];
123123
124124 fs->read (i, 2 );
125- format->wFormatTag = ConvertToInt16 (i);
125+ format->wFormatTag = convertToInt16 (i);
126126
127127 fs->read (i, 2 );
128- format->nChannels = ConvertToInt16 (i);
128+ format->nChannels = convertToInt16 (i);
129129
130130 fs->read (i, 4 );
131- format->nSamplesPerSec = ConvertToInt32 (i);
131+ format->nSamplesPerSec = convertToInt32 (i);
132132
133133 fs->read (i, 4 );
134- format->nAvgBytePerSec = ConvertToInt32 (i);
134+ format->nAvgBytePerSec = convertToInt32 (i);
135135
136136 fs->read (i, 2 );
137- format->nBlockAlign = ConvertToInt16 (i);
137+ format->nBlockAlign = convertToInt16 (i);
138138
139139 fs->read (i, 2 );
140- format->wBitsPerSample = ConvertToInt16 (i);
140+ format->wBitsPerSample = convertToInt16 (i);
141141}
0 commit comments