diff options
author | deva <deva> | 2005-07-09 16:23:15 +0000 |
---|---|---|
committer | deva <deva> | 2005-07-09 16:23:15 +0000 |
commit | 8b25d0d6bcf33cc8123ef9ea78eff43b1d491178 (patch) | |
tree | dedc8dbde530a4623c735f1cbbfce72d9d31158f /src/liblame_wrapper.cc | |
parent | 88a21aa4560d0a1bfef3e706e3b460d6745b3977 (diff) |
Added audio.
Diffstat (limited to 'src/liblame_wrapper.cc')
-rw-r--r-- | src/liblame_wrapper.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/liblame_wrapper.cc b/src/liblame_wrapper.cc index 90b8824..d74233e 100644 --- a/src/liblame_wrapper.cc +++ b/src/liblame_wrapper.cc @@ -31,6 +31,9 @@ /* * $Log$ + * Revision 1.4 2005/07/09 16:23:15 deva + * Added audio. + * * Revision 1.3 2005/07/07 12:42:19 deva * *** empty log message *** * @@ -60,10 +63,10 @@ LibLAMEWrapper::LibLAMEWrapper(Info *i) lame_set_out_samplerate(gfp, SAMPLE_RATE); lame_set_num_channels(gfp, CHANNELS); // lame 3.91 dies on quality != 5 - lame_set_quality(gfp, 5); + lame_set_quality(gfp, 3); // lame 3.91 doesn't work in mono - lame_set_mode(gfp, STEREO); - lame_set_brate(gfp, 192); + lame_set_mode(gfp, JOINT_STEREO); + lame_set_brate(gfp, 112); lame_set_strict_ISO(gfp, 1); lame_set_num_samples(gfp, SAMPLES); @@ -161,7 +164,7 @@ Frame *LibLAMEWrapper::encode(Frame *dvframe) val = lame_encode_buffer(gfp, buffer_l, buffer_r, nsamples, mp3buf, mp3buf_size); // val = lame_encode_mp3_frame(gfp, buffer_l, buffer_r, mp3buf, mp3buf_size); - info->info("Framenr: %d", lame_get_frameNum(gfp)); + // info->info("Framenr: %d", lame_get_frameNum(gfp)); if(val < 0) { switch(val) { |