~jaromil/freej/master

« back to all changes in this revision

Viewing changes to src/theorautils.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:
72
72
 
73
73
void init_info(oggmux_info *info) {
74
74
    info->audio_only = 0;
75
 
    info->with_skeleton = 0; /* skeleton is enabled by default    */ 
 
75
    info->with_skeleton = 1; /* skeleton is enabled by default    */ 
76
76
    info->frontend = NULL; /*frontend mode*/
77
77
    info->videotime =  0;
78
78
    info->audiotime = 0;
572
572
    if (info->with_skeleton) {
573
573
        add_fisbone_packet (info);
574
574
        while (1) {
575
 
          std::cerr << "------- with_skeleton !!!!" << std::endl;
576
575
            int result = ogg_stream_flush (&info->so, &og);     //3 with_skeleton
577
576
                        if (result < 0) {
578
577
                /* can't get here */