[vorbis-dev] Encoding into MONO (delphi)

John Edwards john.edwards33 at ntlworld.com
Sat Feb 14 01:15:45 PST 2004



It's as simple as:

 for(i=0; i < in_samples; i++) {
  buffer[0][i] = (d->bufs[0][i] + d->bufs[1][i])*0.5f;
 }

Where buffer[0] = left channel;
 d->bufs[0] = input left channel;
 d->bufs[1] = input right channel;

John
  ----- Original Message ----- 
  From: Crock Real 
  To: vorbis-dev at xiph.org 
  Sent: Saturday, February 14, 2004 8:05 AM
  Subject: [vorbis-dev] Encoding into MONO (delphi)

<p>  "Please check the attached example, it should work fine with 44.1 kHz/16/mono files. Try thinking in samples, and how they interweave in a source stream"

  Hi!
  The problem is that, I'm stupid. That's why I need help!
  Is it compicated to manage this mono converting?
  If it is, I don't try to make it...
  (don't you have an example source :-) )

  Thank you,
  crc

<p><p>------------------------------------------------------------------------------
  Do you Yahoo!?
  Yahoo! Finance: Get your refund fast by filing online

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list