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
fe84faa9
Commit
fe84faa9
authored
Aug 12, 2013
by
Tristan Matthews
Browse files
* #28344: audiofile: add support for FLAC ringtones
parent
d8ee4e6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
daemon/src/audio/sound/audiofile.cpp
View file @
fe84faa9
...
...
@@ -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
;
...
...
gnome/src/config/accountconfigdialog.c
View file @
fe84faa9
...
...
@@ -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
);
...
...
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