Mercurial > hg > forks > bilotrip-mj12
comparison liboggplayer-src/src/imp.hpp @ 14:083c73ceb716
Get rid of the vorbis related code.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 05 Aug 2013 16:54:46 +0300 |
parents | 105513a2e3c9 |
children | 74b28a572438 |
comparison
equal
deleted
inserted
replaced
13:c859c22c1af5 | 14:083c73ceb716 |
---|---|
1 #include <oggplayer.h> | 1 #include <oggplayer.h> |
2 #ifdef VORBIS_SUPPORT | |
2 #include "SDL_audiocvt.hpp" | 3 #include "SDL_audiocvt.hpp" |
4 #endif | |
3 #include <fstream> | 5 #include <fstream> |
4 #include <vector> | 6 #include <vector> |
5 #include <theora/theora.h> | 7 #include <theora/theora.h> |
6 #include <vorbis/codec.h> | 8 #include <vorbis/codec.h> |
7 #include <boost/thread.hpp> | 9 #include <boost/thread.hpp> |
70 int pp_inc; | 72 int pp_inc; |
71 | 73 |
72 char* audio_buffer; | 74 char* audio_buffer; |
73 boost::circular_buffer<char> cirbuf; | 75 boost::circular_buffer<char> cirbuf; |
74 unsigned int audio_buffer_size; | 76 unsigned int audio_buffer_size; |
77 #ifdef VORBIS_SUPPORT | |
75 SDL_AudioCVT cvt; | 78 SDL_AudioCVT cvt; |
79 #endif | |
76 | 80 |
77 bool playing; | 81 bool playing; |
78 | 82 |
79 boost::thread play_thread; | 83 boost::thread play_thread; |
80 boost::mutex audio_mut; | 84 boost::mutex audio_mut; |