Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
25af87d0
Commit
25af87d0
authored
Aug 12, 2013
by
Tristan Matthews
Browse files
* #28344: audiofile: add support for OGG Vorbis ringtones
parent
fe84faa9
Changes
2
Hide whitespace changes
Inline
Side-by-side
daemon/src/audio/sound/audiofile.cpp
View file @
25af87d0
...
...
@@ -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
;
...
...
gnome/src/config/accountconfigdialog.c
View file @
25af87d0
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment