~jaromil/freej/master

« back to all changes in this revision

Viewing changes to src/video_encoder.cpp

  • Committer: fred
  • Date: 2011-03-28 09:38:27 UTC
  • mto: This revision was merged to the branch mainline in revision 1549.
  • Revision ID: git-v1:bfca90554d5bc27c56a9d410120adaad45ccbb1b
Modified encoder sample rate to sync sound with video

- in QJackClient, modified sample rate parameter when creating the AudioCollector
object. This modify the vorbis speed when streaming.
Commented out ::chgSampleRate() since it is not used

- in init_info(), use again the skeleton.

- VideoEncoder::thread_loop(), shaws the shout delay for testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
        fwrite(encbuf, 1, encnum, filedump_fd);
261
261
    
262
262
      if(write_to_stream) {
 
263
        int     wait_ms;
 
264
        wait_ms = shout_delay(ice);
 
265
        std::cerr << "---- shout delay :" << wait_ms << std::endl;
263
266
//      shout_sync(ice);        //no sound when commented out !!
264
267
        if( shout_send(ice, (const unsigned char*)encbuf, encnum)
265
268
              != SHOUTERR_SUCCESS) {