mirror of
https://github.com/ScrelliCopter/VGM-Tools
synced 2025-02-21 04:09:25 +11:00
replace cout with printf
This commit is contained in:
@@ -18,7 +18,6 @@
|
|||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -72,14 +71,14 @@ int main(int argc, char** argv)
|
|||||||
uint8_t byte = fgetc(file);
|
uint8_t byte = fgetc(file);
|
||||||
if (byte == 0x82)
|
if (byte == 0x82)
|
||||||
{
|
{
|
||||||
std::cout << "ADPCM-A data found at 0x" << std::hex << ftell(file) << std::endl;
|
printf("ADPCM-A data found at 0x%08lX\n", ftell(file));
|
||||||
std::stringstream path;
|
std::stringstream path;
|
||||||
path << std::hex << "smpa_" << (smpaCount++) << ".pcm";
|
path << std::hex << "smpa_" << (smpaCount++) << ".pcm";
|
||||||
DecodeSample(file, path.str(), smpBytes);
|
DecodeSample(file, path.str(), smpBytes);
|
||||||
}
|
}
|
||||||
else if (byte == 0x83)
|
else if (byte == 0x83)
|
||||||
{
|
{
|
||||||
std::cout << "ADPCM-B data found at 0x" << std::hex << ftell(file) << std::endl;
|
printf("ADPCM-B data found at 0x%08lX\n", ftell(file));
|
||||||
std::stringstream path;
|
std::stringstream path;
|
||||||
path << std::hex << "smpb_" << (smpbCount++) << ".pcm";
|
path << std::hex << "smpb_" << (smpbCount++) << ".pcm";
|
||||||
DecodeSample(file, path.str(), smpBytes);
|
DecodeSample(file, path.str(), smpBytes);
|
||||||
|
|||||||
Reference in New Issue
Block a user