-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
About dialog & export dialog improvements. #3826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
1c31bb5
d1e2815
b1cc942
b2ea361
0404639
1da95ba
015f4c9
080c8b4
4398747
351c8ca
10f4924
9da7ae6
bb43f97
aa589fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ STRING(TOUPPER "${CMAKE_PROJECT_NAME}" PROJECT_NAME_UCASE) | |
| # Updated by maintenance tasks | ||
| SET(PROJECT_YEAR 2015) | ||
|
|
||
| SET(PROJECT_AUTHOR "LMMS Developers") | ||
| SET(PROJECT_AUTHOR "LMMS developers") | ||
| SET(PROJECT_URL "https://lmms.io") | ||
| SET(PROJECT_EMAIL "[email protected]") | ||
| SET(PROJECT_DESCRIPTION "${PROJECT_NAME_UCASE} - Free music production software") | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,15 +41,15 @@ const ProjectRenderer::FileEncodeDevice ProjectRenderer::fileEncodeDevices[] = | |
| { | ||
|
|
||
| { ProjectRenderer::WaveFile, | ||
| QT_TRANSLATE_NOOP( "ProjectRenderer", "WAV-File (*.wav)" ), | ||
| QT_TRANSLATE_NOOP( "ProjectRenderer", "WAV (*.wav)" ), | ||
| ".wav", &AudioFileWave::getInst }, | ||
| { ProjectRenderer::FlacFile, | ||
| QT_TRANSLATE_NOOP("ProjectRenderer", "FLAC-File (*.flac)"), | ||
| QT_TRANSLATE_NOOP("ProjectRenderer", "FLAC (*.flac)"), | ||
| ".flac", | ||
| &AudioFileFlac::getInst | ||
| }, | ||
| { ProjectRenderer::OggFile, | ||
| QT_TRANSLATE_NOOP( "ProjectRenderer", "Compressed OGG-File (*.ogg)" ), | ||
| QT_TRANSLATE_NOOP( "ProjectRenderer", "OGG (*.ogg)" ), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While we're at it, can we make this say "Ogg-Vorbis" instead? This would correctly reflect the fact that Ogg is merely the container format, while Vorbis is the audio codec that's being used here.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From wikipedia.org:
"OGG" should be just fine. |
||
| ".ogg", | ||
| #ifdef LMMS_HAVE_OGGVORBIS | ||
| &AudioFileOgg::getInst | ||
|
|
@@ -58,16 +58,16 @@ const ProjectRenderer::FileEncodeDevice ProjectRenderer::fileEncodeDevices[] = | |
| #endif | ||
| }, | ||
| { ProjectRenderer::MP3File, | ||
| QT_TRANSLATE_NOOP( "ProjectRenderer", "Compressed MP3-File (*.mp3)" ), | ||
| QT_TRANSLATE_NOOP( "ProjectRenderer", "MP3 (*.mp3)" ), | ||
| ".mp3", | ||
| #ifdef LMMS_HAVE_MP3LAME | ||
| &AudioFileMP3::getInst | ||
| #else | ||
| NULL | ||
| #endif | ||
| }, | ||
| // ... insert your own file-encoder-infos here... may be one day the | ||
| // user can add own encoders inside the program... | ||
| // Insert your own file-encoder infos here. | ||
| // Maybe one day the user can add own encoders inside the program. | ||
|
|
||
| { ProjectRenderer::NumFileFormats, NULL, NULL, NULL } | ||
|
|
||
|
|
@@ -109,15 +109,15 @@ ProjectRenderer::ProjectRenderer( const Mixer::qualitySettings & qualitySettings | |
|
|
||
| ProjectRenderer::~ProjectRenderer() | ||
| { | ||
| Engine::mixer()->restoreAudioDevice(); // also deletes audio-dev | ||
| Engine::mixer()->restoreAudioDevice(); // Also deletes audio dev. | ||
| Engine::mixer()->changeQuality( m_oldQualitySettings ); | ||
| } | ||
|
|
||
|
|
||
|
|
||
|
|
||
| // little help-function for getting file-format from a file-extension (only for | ||
| // registered file-encoders) | ||
| // Little help function for getting file format from a file extension | ||
| // (only for registered file-encoders). | ||
| ProjectRenderer::ExportFileFormats ProjectRenderer::getFileFormatFromExtension( | ||
| const QString & _ext ) | ||
| { | ||
|
|
@@ -131,7 +131,7 @@ ProjectRenderer::ExportFileFormats ProjectRenderer::getFileFormatFromExtension( | |
| ++idx; | ||
| } | ||
|
|
||
| return( WaveFile ); // default | ||
| return( WaveFile ); // Default. | ||
| } | ||
|
|
||
|
|
||
|
|
@@ -151,9 +151,8 @@ void ProjectRenderer::startProcessing() | |
|
|
||
| if( isReady() ) | ||
| { | ||
| // have to do mixer stuff with GUI-thread-affinity in order to | ||
| // make slots connected to sampleRateChanged()-signals being | ||
| // called immediately | ||
| // Have to do mixer stuff with GUI-thread affinity in order to | ||
| // make slots connected to sampleRateChanged()-signals being called immediately. | ||
| Engine::mixer()->setAudioDevice( m_fileDev, | ||
| m_qualitySettings, false ); | ||
|
|
||
|
|
@@ -182,7 +181,7 @@ void ProjectRenderer::run() | |
|
|
||
| Engine::getSong()->startExport(); | ||
| Engine::getSong()->updateLength(); | ||
| //skip first empty buffer | ||
| // Skip first empty buffer. | ||
| Engine::mixer()->nextBuffer(); | ||
|
|
||
| const Song::PlayPos & exportPos = Engine::getSong()->getPlayPos( | ||
|
|
@@ -193,7 +192,7 @@ void ProjectRenderer::run() | |
| tick_t endTick = exportEndpoints.second.getTicks(); | ||
| tick_t lengthTicks = endTick - startTick; | ||
|
|
||
| // Continually track and emit progress percentage to listeners | ||
| // Continually track and emit progress percentage to listeners. | ||
| while( exportPos.getTicks() < endTick && | ||
| Engine::getSong()->isExporting() == true | ||
| && !m_abort ) | ||
|
|
@@ -207,12 +206,12 @@ void ProjectRenderer::run() | |
| } | ||
| } | ||
|
|
||
| // notify mixer of the end of processing | ||
| // Notify mixer of the end of processing. | ||
| Engine::mixer()->stopProcessing(); | ||
|
|
||
| Engine::getSong()->stopExport(); | ||
|
|
||
| // if the user aborted export-process, the file has to be deleted | ||
| // If the user aborted export-process, the file has to be deleted. | ||
| const QString f = m_fileDev->outputFile(); | ||
| if( m_abort ) | ||
| { | ||
|
|
@@ -255,4 +254,3 @@ void ProjectRenderer::updateConsoleProgress() | |
| } | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why lowercase here? Is this necessary change as part of this PR or was it something that was never reverted after testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the latter. I will capitalize it.