Skip to content

Commit

Permalink
Implemented automatic conversion from dts to dca
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Ebner authored and Christoph Ebner committed Jun 21, 2015
1 parent 75c01d0 commit 2b8fde2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion FileManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ void FileManager::readPrefs(ifstream& readfile, unsigned int identifier,
{
getline(readfile, params[param_nr - 1], 'H');
ReadFileError(readfile);

if(param_nr == 5)
{
getline(readfile, tmp_string, '\n');
Expand All @@ -354,7 +355,8 @@ void FileManager::readPrefs(ifstream& readfile, unsigned int identifier,
readfile.close();
throw FileReadException();
}
} else
}
else
{
getline(readfile, tmp_string, 'T');
ReadFileError(readfile);
Expand All @@ -371,6 +373,11 @@ void FileManager::readPrefs(ifstream& readfile, unsigned int identifier,
//convert the label to a number ...
if (identifier == SRCAUDIO)
{
if (params[0] == "dts")
{
//check if param is dts and change it to dca:
params[0] = "dca";
}
if (params[1] == "stereo")
{
params[1] = "2";
Expand Down

0 comments on commit 2b8fde2

Please sign in to comment.