Hi! I have a problem. I hope, you can help me. I use a Delphi conversion (from Aleksandr Shamray), but it doesn't work when I'd like to convert a *.RAW into a mono *.ogg file. vorbis_encode_init_vbr(vi, 1, 44100, 0.5); //because of the mono the program stops at line: //* uninterleave samples */ . . buffer[1][i] := smallInt((pArray(@readbuffer)[i shl 2 + 3] shl 8) or pArray(@readbuffer)[i shl 2 + 2]) / 32768; . . Why????? Please, help me! Thank You! <p>--------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> vorbis_encode_init_vbr(vi, 1, 44100, 0.5); //because of the mono > > the program stops at line: > //* uninterleave samples */ > . > . > buffer[1][i] := smallInt((pArray(@readbuffer)[i shl 2 + 3] shl 8) orpArray(@readbuffer)[i shl 2 + 2]) / 32768;> . > .yes, that is because our example was hard-coded to handle stereo streams only (same as original example included in oggvorbis-win32sdk). More correct version of the above lines is the following: //* uninterleave samples */ i := 0; while (i < nSamples) do begin // for j := 0 to vi.channels - 1 do buf[j][i] := smallInt((pArray(data)[i shl vi.channels + j shl 1 + 1] shl 8) or pArray(data)[i shl vi.channels + j shl 1 + 0]) / 32768; // inc(i); end; <p>Where vi is a record of vorbis_info type. Please note, that some other changes may be needed for the whole example to work well with non-stereo streams. <p>With best regards, Aleksandr Shamray --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Hi! I've changed the source (as you said), but now the result sounds horrible!!! (unrecognizable) What should i change in the source to get a hearable result in mono mode??? Thank you! Crc <p>--------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
sorry Hi! I've changed the source (as you said), but now the result sounds horrible!!! (unrecognizable) What should i change in the source to get a hearable result in mono mode??? Thank you! Crc <p>--------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online <p>--------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Hi there If I (or my program ;) overlap two equal-sized window such that the 1/4 point of the current windows will match the 3/4 point of the previous window then I think, this would result in values greater than one where the two windows overlap. The greates values are about 1.4. But it should be equal one, shouldn't? If you have a look at the official Ogg Vorbis documentation you can find a illustration of this, where the overlapped windows are also greater than one?! Thanks! Christian Wassmer --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
"If you've added 2 stereo channels together, have you remembered to halve the result? " Could you tell me some details??? (Where/what etc) Thank you! <p>--------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
"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 --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Oh, my God...yeah, it's simple, but as I told you, I'm stupid .... :-( This is "my" source (from Aleksandr Shamray) I := 0; While (i < readCount div 4) Do Begin for j := 0 to vi.channels - 1 do buffer[j][i] := smallInt((pArray(@readbuffer)[i shl vi.channels + j shl 1 + 1] shl 8) or pArray(@readbuffer)[i shl vi.channels + j shl 1 + 0]) / 32768; inc(i); end; So, what should I change??? It's valentine's day, so... pls, help! THX! ;-) crc <p>--------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Oh, my God...yeah, it's simple, but as I told you, I'm stupid .... :-( This is "my" source (from Aleksandr Shamray) I := 0; While (i < readCount div 4) Do Begin for j := 0 to vi.channels - 1 do buffer[j][i] := smallInt((pArray(@readbuffer)[i shl vi.channels + j shl 1 + 1] shl 8) or pArray(@readbuffer)[i shl vi.channels + j shl 1 + 0]) / 32768; inc(i); end; So, what should I change??? It's valentine's day, so... pls, help! THX! ;-) crc <p><p>--------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Hi! I tested your source, but it doesn't work. The result will be half as fast as the original wav file. Hm... :-( Why? What's wrong??? thank you! crc <p>--------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
It works! Thank you very much! crc <p>--------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.