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
f1d3ffe8
Commit
f1d3ffe8
authored
16 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
Save Wave fixed
parent
1668ba97
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plug-in/audiorecorder/audiorecord.cpp
+9
-6
9 additions, 6 deletions
src/plug-in/audiorecorder/audiorecord.cpp
with
9 additions
and
6 deletions
src/plug-in/audiorecorder/audiorecord.cpp
+
9
−
6
View file @
f1d3ffe8
...
...
@@ -56,12 +56,14 @@ void AudioRecord::setSndSamplingRate(int smplRate){
void
AudioRecord
::
setRecordingOption
(
FILE_TYPE
type
,
SOUND_FORMAT
format
,
int
sndSmplRate
,
std
::
string
path
){
std
::
string
fName
;
fileType_
=
type
;
std
::
string
fName
;
fileType_
=
type
;
sndFormat_
=
format
;
channels_
=
1
;
sndSmplRate_
=
sndSmplRate
;
if
(
fileType_
==
FILE_RAW
){
if
(
strstr
(
fileName_
,
".raw"
)
==
NULL
){
...
...
@@ -79,7 +81,6 @@ void AudioRecord::setRecordingOption(FILE_TYPE type, SOUND_FORMAT format, int sn
fName
=
fileName_
;
savePath_
=
path
+
"/"
;
savePath_
.
append
(
fName
);
}
void
AudioRecord
::
openFile
(){
...
...
@@ -122,6 +123,8 @@ void AudioRecord::closeFile() {
else
if
(
fileType_
==
FILE_WAV
)
this
->
closeWavFile
();
}
...
...
@@ -331,7 +334,7 @@ void AudioRecord::closeWavFile()
_debug
(
"AudioRecord:: Can't closeWavFile, a file has not yet been opened!
\n
"
);
return
;
}
/*
_debug("AudioRecord::closeWavFile() \n");
if ( fclose( fp ) != 0)
...
...
@@ -344,7 +347,7 @@ void AudioRecord::closeWavFile()
_debug("AudioRecord::closeWavFile() : could not open WAV file rb+!\n");
return;
}
*/
SINT32
bytes
=
byteCounter_
*
channels_
;
fseek
(
fp
,
40
,
SEEK_SET
);
// jump to data length
...
...
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