Permalink
Browse files

Spotify has now started using mp3 as their audio codec.

This patch adds support for decoding mp3 encoded streams using libmpg123.
It will automatically select between ogg vorbis and mp3 based upon the
stream data, as it is unknown if everything is now mp3 encoded.

(cherry picked from commit 3b62f21)

(And from svn r517 by dalus)
  • Loading branch information...
1 parent 5d1985a commit ef0e4fe6f942fe8852f6ca61a65a114cf46cefaa @auchter auchter committed with Dec 18, 2011
Showing with 262 additions and 55 deletions.
  1. +1 −1 src/Makefile
  2. +1 −0 src/lib/despotify.h
  3. +260 −54 src/lib/sndqueue.c
View
@@ -30,7 +30,7 @@ ifeq ($(USE_TREMOR), 1)
CFLAGS += -DUSE_TREMOR=1
LDFLAGS += -lvorbisidec
else
- LDFLAGS += -lvorbisfile
+ LDFLAGS += -lvorbisfile -lmpg123
endif
# Mac OS X specifics
View
@@ -206,6 +206,7 @@ struct despotify_session
/* internal data: */
void* vf;
+ void* mf;
struct ds_snd_fifo* fifo;
int dlstate;
int errorcount;
Oops, something went wrong.

0 comments on commit ef0e4fe

Please sign in to comment.