Changeset 212 for libmpc/branches/r2d/libmpcenc
- Timestamp:
- 02/13/07 11:40:24 (18 years ago)
- Location:
- libmpc/branches/r2d/libmpcenc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/libmpcenc/encode_sv7.c
r204 r212 60 60 61 61 // writes replay gain info 62 static void writeGainInfo ( mpc_encoder_t * e ) 62 static void writeGainInfo ( mpc_encoder_t * e, 63 unsigned short t_gain, 64 unsigned short t_peak, 65 unsigned short a_gain, 66 unsigned short a_peak) 63 67 { 64 68 writeBits ( e, 1, 8 ); // version 65 writeBits ( e, 0, 16 ); // Title gain66 writeBits ( e, 0, 16 ); // Title peak67 writeBits ( e, 0, 16 ); // Album gain68 writeBits ( e, 0, 16 ); // Album peak69 writeBits ( e, t_gain, 16 ); // Title gain 70 writeBits ( e, t_peak, 16 ); // Title peak 71 writeBits ( e, a_gain, 16 ); // Album gain 72 writeBits ( e, a_peak, 16 ); // Album peak 69 73 } 70 74 … … 76 80 const unsigned int SamplesCount, 77 81 const unsigned int SampleFreq, 78 const unsigned int ChannelCount) 82 const unsigned int ChannelCount, 83 unsigned short t_gain, 84 unsigned short t_peak, 85 unsigned short a_gain, 86 unsigned short a_peak) 79 87 { 80 88 unsigned char tmp[10]; … … 104 112 writeBits ( e, FRAMES_PER_BLOCK_PWR >> 1, 3 ); // frames per block (log4 unit) 105 113 106 writeGainInfo(e );114 writeGainInfo(e, t_gain, t_peak, a_gain, a_peak); 107 115 } 108 116 -
libmpc/branches/r2d/libmpcenc/libmpcenc.h
r204 r212 80 80 const unsigned int SamplesCount, 81 81 const unsigned int SampleFreq, 82 const unsigned int ChannelCount); 82 const unsigned int ChannelCount, 83 unsigned short t_gain, 84 unsigned short t_peak, 85 unsigned short a_gain, 86 unsigned short a_peak); 83 87 void writeEncoderInfo ( mpc_encoder_t * e, 84 88 const float profile,
Note: See TracChangeset
for help on using the changeset viewer.