Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GStreamer_audioRecorder
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
m3
GStreamer_audioRecorder
Commits
967fcb8e
Commit
967fcb8e
authored
Aug 28, 2017
by
Mario Chirinos Colunga
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mario
parent
becfa065
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
8 deletions
+3
-8
StreamRecorder.cpp
StreamRecorder.cpp
+0
-5
StreamRecorder.h
StreamRecorder.h
+3
-3
StreamRecorder.o
StreamRecorder.o
+0
-0
main.o
main.o
+0
-0
streamRecorder
streamRecorder
+0
-0
No files found.
StreamRecorder.cpp
View file @
967fcb8e
...
...
@@ -386,14 +386,9 @@ int StreamRecorder::addToBuffer(unsigned char* data, int length) {
*/
int
StreamRecorder
::
filter_handoff_callback
(
GstElement
*
filter
,
GstBuffer
*
buffer
,
void
*
user_data
)
{
cout
<<
"LLEGO INFO"
<<
endl
;
GstMapInfo
info
;
if
(
!
gst_buffer_map
(
buffer
,
&
info
,
GST_MAP_READ
))
{
cout
<<
"ERROR: MAPPING IS NOT VALID"
<<
endl
;
}
//GST_BUFFER_DATA is for gst v0.1
// ((StreamRecorder*)user_data)->addToBuffer((unsigned char*)GST_BUFFER_DATA (buffer));
...
...
StreamRecorder.h
View file @
967fcb8e
...
...
@@ -26,9 +26,9 @@ class StreamRecorder
private
:
unsigned
int
nBytes
;
unsigned
int
bufferSize
;
unsigned
char
*
audioBuffer
;
unsigned
char
*
audioBufferPosition
;
unsigned
int
bufferSize
;
unsigned
char
*
audioBuffer
;
unsigned
char
*
audioBufferPosition
;
int
recordTime
;
bool
isConnectionLost
;
...
...
StreamRecorder.o
View file @
967fcb8e
No preview for this file type
main.o
View file @
967fcb8e
No preview for this file type
streamRecorder
View file @
967fcb8e
No preview for this file type
Write
Preview
Markdown
is supported
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