Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
0943e0bd
Commit
0943e0bd
authored
12 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
audiorecord: cleanup
parent
b3ca5f64
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemon/src/audio/audiorecord.cpp
+1
-2
1 addition, 2 deletions
daemon/src/audio/audiorecord.cpp
daemon/src/fileutils.h
+1
-1
1 addition, 1 deletion
daemon/src/fileutils.h
with
2 additions
and
3 deletions
daemon/src/audio/audiorecord.cpp
+
1
−
2
View file @
0943e0bd
...
@@ -130,7 +130,6 @@ void AudioRecord::setSndSamplingRate(int smplRate)
...
@@ -130,7 +130,6 @@ void AudioRecord::setSndSamplingRate(int smplRate)
void
AudioRecord
::
setRecordingOption
(
FILE_TYPE
type
,
int
sndSmplRate
,
const
std
::
string
&
path
)
void
AudioRecord
::
setRecordingOption
(
FILE_TYPE
type
,
int
sndSmplRate
,
const
std
::
string
&
path
)
{
{
std
::
stringstream
s
;
std
::
string
filePath
;
std
::
string
filePath
;
// use HOME directory if path is empty, or if path does not exist
// use HOME directory if path is empty, or if path does not exist
...
@@ -143,7 +142,7 @@ void AudioRecord::setRecordingOption(FILE_TYPE type, int sndSmplRate, const std:
...
@@ -143,7 +142,7 @@ void AudioRecord::setRecordingOption(FILE_TYPE type, int sndSmplRate, const std:
fileType_
=
type
;
fileType_
=
type
;
channels_
=
1
;
channels_
=
1
;
sndSmplRate_
=
sndSmplRate
;
sndSmplRate_
=
sndSmplRate
;
savePath_
=
(
*
filePath
.
rbegin
()
==
'/'
)
?
filePath
:
filePath
+
"/"
;
savePath_
=
(
*
filePath
.
rbegin
()
==
DIR_SEPARATOR_CH
)
?
filePath
:
filePath
+
DIR_SEPARATOR_STR
;
}
}
namespace
{
namespace
{
...
...
This diff is collapsed.
Click to expand it.
daemon/src/fileutils.h
+
1
−
1
View file @
0943e0bd
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
#define DIR_SEPARATOR_STR "/" // Directory separator char
#define DIR_SEPARATOR_STR "/" // Directory separator char
#define DIR_SEPARATOR_CH
=
'/' // Directory separator string
#define DIR_SEPARATOR_CH '/' // Directory separator string
namespace
fileutils
{
namespace
fileutils
{
std
::
string
get_home_dir
();
std
::
string
get_home_dir
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment