Thanks a lot for your help! Worked like a charm. If anyone's interested, this is what I was integrating it into:
Code:
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
string path;
string namein;
string nameout;
string nomrate;
string setting;
string cmd;
string again;
start:
cout<< "Welcome to oggencFE for the command line vorbis encoder.\n\n";
cout<< "Let's get started. First, tell me where the file is on your hard drive\nINCLUDING the ending backslash (leave blank for same path as oggenc.exe):\n";
getline( cin, path );
cout<< "What file would you like to encode to ogg(not including the .wav extension)?:\n";
getline( cin, namein );
cout<< "What do you want the output filename to be (not inluding the .ogg extention)?:\n";
getline( cin, nameout );
cout<< "Which encoding method would you like to use?\n\n1 - Nominal bitrate encoding. This method is best if you are aiming for a\n specific file size. Please note that the ogg encoder will still encode\n in VBR!\n\n";
cout<< "2 - Managed bitrate encoding. This option will encode the file with user set\n min/max bitrates. It only allows LOOSE control over bitrate, so it isn't\n generally recommended if you need an exact bitrate.\n\n";
cout<< "3 - Quality-based encoding. This will allow you to set a quality from 1-10, and\n based on that, the encoder will create the audio file. Lower numbers will\n result in smaller file sizes, and higher numbers will result in larger file\n sizes.\n";
getline( cin, setting );
if(setting == "1")
{
cout<< "What nominal bitrate would you like to use for the output file?:\n";
cin>>nomrate;
cout<< "We have all the information needed to encode your file. Press \nenter to proceed...";
cmd = "oggenc -b " + nomrate + " --output=\"" + path + nameout + ".ogg\" " + "\"" + path + namein + ".wav" + "\"";
cin.ignore();
cin.get();
system( cmd.c_str() );
cout<< "\nEncoding of " << ( namein ) << ".wav finished. Press enter to exit.";
cin.get();
}
}
It's not really meant for anyone but myself, and more to help me learn the "basics" than for anything else. Thanks again for your help.