Add MP3 import (#6750)

This commit is contained in:
Lost Robot
2023-11-01 15:37:56 -07:00
committed by GitHub
parent 7b99c58926
commit fccbe5d517
5 changed files with 27 additions and 6 deletions

View File

@@ -1185,14 +1185,20 @@ QString SampleBuffer::openAudioFile() const
// set filters
QStringList types;
types << tr("All Audio-Files (*.wav *.ogg *.ds *.flac *.spx *.voc "
types << tr("All Audio-Files (*.wav *.ogg "
#ifdef LMMS_HAVE_SNDFILE_MP3
"*.mp3 "
#endif
"*.ds *.flac *.spx *.voc "
"*.aif *.aiff *.au *.raw)")
<< tr("Wave-Files (*.wav)")
<< tr("OGG-Files (*.ogg)")
#ifdef LMMS_HAVE_SNDFILE_MP3
<< tr("MP3-Files (*.mp3)")
#endif
<< tr("DrumSynth-Files (*.ds)")
<< tr("FLAC-Files (*.flac)")
<< tr("SPEEX-Files (*.spx)")
//<< tr("MP3-Files (*.mp3)")
//<< tr("MIDI-Files (*.mid)")
<< tr("VOC-Files (*.voc)")
<< tr("AIFF-Files (*.aif *.aiff)")