Commit 25af87d0 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #28344: audiofile: add support for OGG Vorbis ringtones

parent fe84faa9
......@@ -84,6 +84,9 @@ AudioFile::AudioFile(const std::string &fileName, unsigned int sampleRate) :
} else if (filepath_.find(".flac") != std::string::npos) {
format = SF_FORMAT_FLAC;
hasHeader = true;
} else if (filepath_.find(".ogg") != std::string::npos) {
format = SF_FORMAT_OGG;
hasHeader = true;
} else {
WARN("No file extension, guessing WAV");
format = SF_FORMAT_WAV;
......
......@@ -1143,6 +1143,7 @@ create_audiocodecs_configuration(const account_t *account)
gtk_file_filter_add_pattern(filter, "*.ul");
gtk_file_filter_add_pattern(filter, "*.au");
gtk_file_filter_add_pattern(filter, "*.flac");
gtk_file_filter_add_pattern(filter, "*.ogg");
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