Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpacifico authored Mar 29, 2021
1 parent fce1077 commit 223012a
Show file tree
Hide file tree
Showing 44 changed files with 148 additions and 1,711 deletions.
41 changes: 2 additions & 39 deletions src/functions/audio/AAC.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

package functions.audio;

import java.awt.Color;
import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -64,46 +63,10 @@ public void run() {
}
else if (Settings.btnWaitFileComplete.isSelected())
{
progressBar1.setIndeterminate(true);
lblEncodageEnCours.setForeground(Color.LIGHT_GRAY);
lblEncodageEnCours.setText(file.getName());
tempsRestant.setVisible(false);
btnStart.setEnabled(false);
btnCancel.setEnabled(true);
comboFonctions.setEnabled(false);

long fileSize = 0;
do {
fileSize = file.length();
try {
Thread.sleep(3000);
} catch (InterruptedException e) {} // Permet d'attendre la nouvelle valeur de la copie
} while (fileSize != file.length() && cancelled == false);

// pour Windows
while (file.renameTo(file) == false && cancelled == false) {
if (file.exists() == false) // Dans le cas où on annule la copie en cours
break;
try {
Thread.sleep(100);
} catch (InterruptedException e) {
}
}

if (cancelled)
{
progressBar1.setIndeterminate(false);
lblEncodageEnCours.setText(language.getProperty("lblEncodageEnCours"));
btnStart.setEnabled(true);
btnCancel.setEnabled(false);
comboFonctions.setEnabled(true);
if (Utils.waitFileCompleted(file) == false)
break;
}

progressBar1.setIndeterminate(false);
btnCancel.setEnabled(false);
}
//SCANNING
//SCANNING

try {
String fichier = file.getName();
Expand Down
41 changes: 2 additions & 39 deletions src/functions/audio/AC3.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

package functions.audio;

import java.awt.Color;
import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -64,46 +63,10 @@ public void run() {
}
else if (Settings.btnWaitFileComplete.isSelected())
{
progressBar1.setIndeterminate(true);
lblEncodageEnCours.setForeground(Color.LIGHT_GRAY);
lblEncodageEnCours.setText(file.getName());
tempsRestant.setVisible(false);
btnStart.setEnabled(false);
btnCancel.setEnabled(true);
comboFonctions.setEnabled(false);

long fileSize = 0;
do {
fileSize = file.length();
try {
Thread.sleep(3000);
} catch (InterruptedException e) {} // Permet d'attendre la nouvelle valeur de la copie
} while (fileSize != file.length() && cancelled == false);

// pour Windows
while (file.renameTo(file) == false && cancelled == false) {
if (file.exists() == false) // Dans le cas où on annule la copie en cours
break;
try {
Thread.sleep(100);
} catch (InterruptedException e) {
}
}

if (cancelled)
{
progressBar1.setIndeterminate(false);
lblEncodageEnCours.setText(language.getProperty("lblEncodageEnCours"));
btnStart.setEnabled(true);
btnCancel.setEnabled(false);
comboFonctions.setEnabled(true);
if (Utils.waitFileCompleted(file) == false)
break;
}

progressBar1.setIndeterminate(false);
btnCancel.setEnabled(false);
}
//SCANNING
//SCANNING

try {
String fichier = file.getName();
Expand Down
41 changes: 2 additions & 39 deletions src/functions/audio/AIFF.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

package functions.audio;

import java.awt.Color;
import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -64,46 +63,10 @@ public void run() {
}
else if (Settings.btnWaitFileComplete.isSelected())
{
progressBar1.setIndeterminate(true);
lblEncodageEnCours.setForeground(Color.LIGHT_GRAY);
lblEncodageEnCours.setText(file.getName());
tempsRestant.setVisible(false);
btnStart.setEnabled(false);
btnCancel.setEnabled(true);
comboFonctions.setEnabled(false);

long fileSize = 0;
do {
fileSize = file.length();
try {
Thread.sleep(3000);
} catch (InterruptedException e) {} // Permet d'attendre la nouvelle valeur de la copie
} while (fileSize != file.length() && cancelled == false);

// pour Windows
while (file.renameTo(file) == false && cancelled == false) {
if (file.exists() == false) // Dans le cas où on annule la copie en cours
break;
try {
Thread.sleep(100);
} catch (InterruptedException e) {
}
}

if (cancelled)
{
progressBar1.setIndeterminate(false);
lblEncodageEnCours.setText(language.getProperty("lblEncodageEnCours"));
btnStart.setEnabled(true);
btnCancel.setEnabled(false);
comboFonctions.setEnabled(true);
if (Utils.waitFileCompleted(file) == false)
break;
}

progressBar1.setIndeterminate(false);
btnCancel.setEnabled(false);
}
//SCANNING
//SCANNING

try {
String fichier = file.getName();
Expand Down
43 changes: 4 additions & 39 deletions src/functions/audio/AudioNormalization.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

package functions.audio;

import java.awt.Color;
import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -66,46 +65,10 @@ public void run() {
}
else if (Settings.btnWaitFileComplete.isSelected())
{
progressBar1.setIndeterminate(true);
lblEncodageEnCours.setForeground(Color.LIGHT_GRAY);
lblEncodageEnCours.setText(file.getName());
tempsRestant.setVisible(false);
btnStart.setEnabled(false);
btnCancel.setEnabled(true);
comboFonctions.setEnabled(false);

long fileSize = 0;
do {
fileSize = file.length();
try {
Thread.sleep(3000);
} catch (InterruptedException e) {} // Permet d'attendre la nouvelle valeur de la copie
} while (fileSize != file.length() && cancelled == false);

// pour Windows
while (file.renameTo(file) == false && cancelled == false) {
if (file.exists() == false) // Dans le cas où on annule la copie en cours
break;
try {
Thread.sleep(100);
} catch (InterruptedException e) {
}
}

if (cancelled)
{
progressBar1.setIndeterminate(false);
lblEncodageEnCours.setText(language.getProperty("lblEncodageEnCours"));
btnStart.setEnabled(true);
btnCancel.setEnabled(false);
comboFonctions.setEnabled(true);
if (Utils.waitFileCompleted(file) == false)
break;
}

progressBar1.setIndeterminate(false);
btnCancel.setEnabled(false);
}
//SCANNING
//SCANNING

try {
String fichier = file.getName();
Expand Down Expand Up @@ -314,6 +277,8 @@ else if (comboAudioCodec.getSelectedItem().toString().equals("OGG"))
switch (ext.toLowerCase()) {
case ".mp4":
return " -c:a aac -ar " + lbl48k.getText() + " -b:a 256k -map v:0? -map a? -map s?";
case ".mp3":
return " -c:a mp3 -ar " + lbl48k.getText() + " -b:a 256k -map v:0? -map a? -map s?";
case ".wmv":
return " -c:a wmav2 -ar " + lbl48k.getText() + " -b:a 256k -map v:0? -map a? -map s?";
case ".mpg":
Expand Down
41 changes: 2 additions & 39 deletions src/functions/audio/FLAC.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

package functions.audio;

import java.awt.Color;
import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -64,46 +63,10 @@ public void run() {
}
else if (Settings.btnWaitFileComplete.isSelected())
{
progressBar1.setIndeterminate(true);
lblEncodageEnCours.setForeground(Color.LIGHT_GRAY);
lblEncodageEnCours.setText(file.getName());
tempsRestant.setVisible(false);
btnStart.setEnabled(false);
btnCancel.setEnabled(true);
comboFonctions.setEnabled(false);

long fileSize = 0;
do {
fileSize = file.length();
try {
Thread.sleep(3000);
} catch (InterruptedException e) {} // Permet d'attendre la nouvelle valeur de la copie
} while (fileSize != file.length() && cancelled == false);

// pour Windows
while (file.renameTo(file) == false && cancelled == false) {
if (file.exists() == false) // Dans le cas où on annule la copie en cours
break;
try {
Thread.sleep(100);
} catch (InterruptedException e) {
}
}

if (cancelled)
{
progressBar1.setIndeterminate(false);
lblEncodageEnCours.setText(language.getProperty("lblEncodageEnCours"));
btnStart.setEnabled(true);
btnCancel.setEnabled(false);
comboFonctions.setEnabled(true);
if (Utils.waitFileCompleted(file) == false)
break;
}

progressBar1.setIndeterminate(false);
btnCancel.setEnabled(false);
}
//SCANNING
//SCANNING

try {
String fichier = file.getName();
Expand Down
41 changes: 2 additions & 39 deletions src/functions/audio/LoudnessTruePeak.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

package functions.audio;

import java.awt.Color;
import java.awt.FileDialog;
import java.io.File;
import java.io.FileNotFoundException;
Expand Down Expand Up @@ -65,46 +64,10 @@ public void run() {
}
else if (Settings.btnWaitFileComplete.isSelected())
{
progressBar1.setIndeterminate(true);
lblEncodageEnCours.setForeground(Color.LIGHT_GRAY);
lblEncodageEnCours.setText(file.getName());
tempsRestant.setVisible(false);
btnStart.setEnabled(false);
btnCancel.setEnabled(true);
comboFonctions.setEnabled(false);

long fileSize = 0;
do {
fileSize = file.length();
try {
Thread.sleep(3000);
} catch (InterruptedException e) {} // Permet d'attendre la nouvelle valeur de la copie
} while (fileSize != file.length() && cancelled == false);

// pour Windows
while (file.renameTo(file) == false && cancelled == false) {
if (file.exists() == false) // Dans le cas où on annule la copie en cours
break;
try {
Thread.sleep(100);
} catch (InterruptedException e) {
}
}

if (cancelled)
{
progressBar1.setIndeterminate(false);
lblEncodageEnCours.setText(language.getProperty("lblEncodageEnCours"));
btnStart.setEnabled(true);
btnCancel.setEnabled(false);
comboFonctions.setEnabled(true);
if (Utils.waitFileCompleted(file) == false)
break;
}

progressBar1.setIndeterminate(false);
btnCancel.setEnabled(false);
}
//SCANNING
//SCANNING

try {
String fichier = file.getName();
Expand Down
Loading

0 comments on commit 223012a

Please sign in to comment.