935 |
/* step 2: calculate audio_size (kbytes)*/ |
/* step 2: calculate audio_size (kbytes)*/ |
936 |
if (audio_type!=NO_AUDIO) { |
if (audio_type!=NO_AUDIO) { |
937 |
if (audio_mode==0) { |
if (audio_mode==0) { |
938 |
audio_size = (duration * audio_rate) / 8; |
audio_size = (1000 * duration * audio_rate) / (8*1024); |
939 |
} |
} |
940 |
}else{ |
}else{ |
941 |
audio_size = 0; |
audio_size = 0; |
1420 |
|
|
1421 |
ofn.hwndOwner = hDlg; |
ofn.hwndOwner = hDlg; |
1422 |
if (LOWORD(wParam)==IDC_BITRATE_SSELECT) { |
if (LOWORD(wParam)==IDC_BITRATE_SSELECT) { |
1423 |
ofn.lpstrFilter = "Subtitle files (*.sub, *.ssa)\0*.sub;*.ssa\0All files (*.*)\0*.*\0\0"; |
ofn.lpstrFilter = "Subtitle files (*.sub, *.ssa, *.txt, *.dat)\0*.sub;*.ssa;*.txt;*.dat\0All files (*.*)\0*.*\0\0"; |
1424 |
}else{ |
}else{ |
1425 |
ofn.lpstrFilter = "Audio files (*.mp3, *.ac3)\0*.mp3; *.ac3\0All files (*.*)\0*.*\0\0"; |
ofn.lpstrFilter = "Audio files (*.mp3, *.ac3, *.aac, *.ogg, *.wav)\0*.mp3; *.ac3; *.aac; *.ogg; *.wav\0All files (*.*)\0*.*\0\0"; |
1426 |
} |
} |
1427 |
|
|
1428 |
ofn.lpstrFile = filename; |
ofn.lpstrFile = filename; |