[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-multimedia
Subject: Minor patch for vorbis support in kde audiocd slave, for API
From: Michael Smith <msmith () labyrinth ! net ! au>
Date: 2002-05-02 7:35:53
[Download RAW message or body]
Patch inline. This makes it compliant with the API - it works as is, but
future changes in libvorbis may break things if it stays as-is.
Michael
(not a subscriber. If you have any questions/comments, contact me off-list)
--- audiocd.cpp Thu Apr 25 09:08:03 2002
+++ audiocd.cpp.new Thu May 2 17:31:33 2002
@@ -1473,14 +1473,15 @@
vorbis_analysis_wrote(&d->vd,i);
while(vorbis_analysis_blockout(&d->vd,&d->vb)==1) {
- vorbis_analysis(&d->vb,&d->op);
/* Support ancient libvorbis (< RC3). */
#if HAVE_VORBIS >= 2
+ vorbis_analysis(&d->vb,NULL);
/* Non-ancient case. */
vorbis_bitrate_addblock(&d->vb);
while(vorbis_bitrate_flushpacket(&d->vd, &d->op)) {
#else
+ vorbis_analysis(&d->vb,&d->op);
/* Make a lexical block to place the #ifdef's nearby. */
if (1) {
#endif
_______________________________________________
kde-multimedia mailing list
kde-multimedia@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-multimedia
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic