fout.open("temp.tmp");
for ( i = 0; i < NUM_NOTES ; i++ )
{
....
}
fout.close();
convert_to_wave( "temp.tmp", "C5.wav", SAMPLE_RATE, true);
I've tried it like this too. And still have the same problem. It compiles but the input file just doesn't seem to work. I've tried changing it to a .txt file but that didn't help. I'll add the compiler notes too. I don't know if they help but I guess it can't hurt.
1>------ Build started: Project: Prog4, Configuration: Debug Win32 ------
1>Build started 12/7/2012 8:56:17 PM.
1>InitializeBuildStatus:
1> Touching "Debug\Prog4.unsuccessfulbuild".
1>ClCompile:
1> prog4.cpp
1>c:\users\7180977\desktop\prog4\prog4.cpp(166): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\users\7180977\desktop\prog4\prog4.cpp(177): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>Manifest:
1> All outputs are up-to-date.
1>LinkEmbedManifest:
1> All outputs are up-to-date.
1> Prog4.vcxproj -> C:\Users\7180977\Desktop\prog4\Debug\Prog4.exe
1>FinalizeBuildStatus:
1> Deleting file "Debug\Prog4.unsuccessfulbuild".
1> Touching "Debug\Prog4.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:02.40
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========