slight changes to allow for variable bitrate streams
(where the value of bitrate is 0)
This commit is contained in:
parent
c326ebfac1
commit
09179b384e
|
@ -75,10 +75,12 @@ CastSink :: init ( TcpSocket * socket,
|
||||||
this->isPublic = isPublic;
|
this->isPublic = isPublic;
|
||||||
this->bufferDuration = bufferDuration;
|
this->bufferDuration = bufferDuration;
|
||||||
|
|
||||||
bufferedSink = socket ? new BufferedSink( socket,
|
int bufferSize = bitRate ? (bitRate * 1024 / 8) * bufferDuration
|
||||||
(bitRate * 1024 / 8) * bufferDuration)
|
: (128 * 1024 / 8) * bufferDuration;
|
||||||
: 0;
|
|
||||||
|
|
||||||
|
bufferedSink = socket ? new BufferedSink( socket,
|
||||||
|
(bufferSize * 1024 / 8) * bufferDuration)
|
||||||
|
: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -144,6 +146,10 @@ CastSink :: open ( void ) throw ( Exception )
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.8 2002/03/28 16:40:55 darkeye
|
||||||
|
slight changes to allow for variable bitrate streams
|
||||||
|
(where the value of bitrate is 0)
|
||||||
|
|
||||||
Revision 1.7 2002/02/28 09:49:25 darkeye
|
Revision 1.7 2002/02/28 09:49:25 darkeye
|
||||||
added possibility to save the encoded stream to a local file only
|
added possibility to save the encoded stream to a local file only
|
||||||
(no streaming server needed)
|
(no streaming server needed)
|
||||||
|
|
Loading…
Reference in New Issue