QTfrontend/net/recorder.cpp
changeset 13492 c7df0d96da81
parent 11046 47a8c19ecb60
child 13644 1b536e268519
equal deleted inserted replaced
13491:f725701ca529 13492:c7df0d96da81
   138     arguments << config->AVFormat();
   138     arguments << config->AVFormat();
   139     arguments << config->videoCodec();
   139     arguments << config->videoCodec();
   140 // Could use a field to use quality instead. maybe quality could override bitrate - or just pass (and set) both.
   140 // Could use a field to use quality instead. maybe quality could override bitrate - or just pass (and set) both.
   141 // The library does support using both at once after all.
   141 // The library does support using both at once after all.
   142     arguments << QString::number(config->rec_Bitrate()*1024);
   142     arguments << QString::number(config->rec_Bitrate()*1024);
   143     arguments << (config->recordAudio() ? config->audioCodec() : "no");
   143     if (config->recordAudio() && (config->isSoundEnabled() || config->isMusicEnabled()))
       
   144         arguments << config->audioCodec();
       
   145     else
       
   146         arguments << "no";
   144 
   147 
   145     return arguments;
   148     return arguments;
   146 }
   149 }
   147 
   150 
   148 bool HWRecorder::simultaneousRun()
   151 bool HWRecorder::simultaneousRun()