Skip to content

Commit

Permalink
Merge pull request jamulussoftware#2 from npostavs/streamer2.np.changes
Browse files Browse the repository at this point in the history
Make CJamStreamer::process data parameter a reference
  • Loading branch information
dingodoppelt authored Feb 11, 2021
2 parents cc48ad5 + 2fef426 commit 7f5a61d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ class CServer :
const int iNumAudChan,
const CVector<int16_t> vecsData );

void StreamFrame ( const int iServerFrameSizeSamples, const CVector<int16_t> data );
void StreamFrame ( const int iServerFrameSizeSamples, const CVector<int16_t>& data );

void CLVersionAndOSReceived ( CHostAddress InetAddr,
COSUtil::EOpSystemType eOSType,
Expand Down
2 changes: 1 addition & 1 deletion src/streamer/jamstreamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using namespace streamer;
CJamStreamer::CJamStreamer() {}

// put the received pcm data into the pipe to ffmpeg
void CJamStreamer::process( int iServerFrameSizeSamples, CVector<int16_t> data ) {
void CJamStreamer::process( int iServerFrameSizeSamples, const CVector<int16_t>& data ) {
fwrite(&data[0], 2, ( 2 * iServerFrameSizeSamples ), pipeout);
}

Expand Down
2 changes: 1 addition & 1 deletion src/streamer/jamstreamer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CJamStreamer : public QObject {
void Init( const QString strStreamDest );

public slots:
void process( int iServerFrameSizeSamples, CVector<int16_t> data );
void process( int iServerFrameSizeSamples, const CVector<int16_t>& data );
void OnStarted();
void OnStopped();

Expand Down

0 comments on commit 7f5a61d

Please sign in to comment.