Commit fe84faa9 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #28344: audiofile: add support for FLAC ringtones

parent d8ee4e6f
......@@ -81,6 +81,9 @@ AudioFile::AudioFile(const std::string &fileName, unsigned int sampleRate) :
} else if (filepath_.find(".au") != std::string::npos) {
format = SF_FORMAT_AU;
hasHeader = true;
} else if (filepath_.find(".flac") != std::string::npos) {
format = SF_FORMAT_FLAC;
hasHeader = true;
} else {
WARN("No file extension, guessing WAV");
format = SF_FORMAT_WAV;
......
......@@ -1142,6 +1142,7 @@ create_audiocodecs_configuration(const account_t *account)
gtk_file_filter_add_pattern(filter, "*.wav");
gtk_file_filter_add_pattern(filter, "*.ul");
gtk_file_filter_add_pattern(filter, "*.au");
gtk_file_filter_add_pattern(filter, "*.flac");
gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(file_chooser), filter);
gtk_grid_attach(GTK_GRID(grid), file_chooser, 0, 1, 1, 1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment