Commit Graph

27 Commits

Author SHA1 Message Date
4f83c60296 copyright year 2014 2014-01-13 22:31:55 +01:00
d2679f59c5 PcmConvert: add methods Open(), Close()
Replaces Reset() and eliminates the AudioFormat parameters from the
Convert() method.
2013-11-13 21:06:33 +01:00
f1ca61d7d7 DecoderInternal: allocate PcmConvert dynamically
Reduce header dependencies and allow it to be nullptr to disable it.
2013-11-13 19:16:31 +01:00
a80b5cf19b DecoderInternal: move functions into the class 2013-11-13 19:13:47 +01:00
4ed0635447 DecoderInternal: simplify need_chunks()
Remove the "do_wait" parameter which is always true.  Check only
command==NONE and merge the "return" statements.
2013-11-08 11:59:56 +01:00
1904e504be DecoderInternal: don't wake up player in need_chunks
Nothing of interest happens here.  No need to wake up the player.
2013-11-08 11:58:23 +01:00
0be5a6ab2b DecoderControl: reduce the number of PlayerThread wakeups
Wake up the PlayerThread only if it is really waiting for the decoder.
This greatly reduces the number of system calls in the DecoderThread.
2013-11-06 23:51:17 +01:00
9802e74859 DecoderInternal: lock DecoderControl in _flush_chunk()
Must hold the Mutex to signal the Cond object safely.
2013-11-06 23:51:17 +01:00
8e7d6eb151 DecoderInternal: wake up the player thread in _flush_chunk()
Merge duplicate code.
2013-11-06 23:51:17 +01:00
e699f6781e decoder_control: rename to DecoderControl 2013-10-28 10:09:21 +01:00
82059645f1 decoder: rename the struct to "Decoder" 2013-10-21 21:12:37 +02:00
ff626ac763 *: use references instead of pointers 2013-10-19 18:48:38 +02:00
59f8144c50 *: use nullptr instead of NULL 2013-10-19 18:19:03 +02:00
c5d05ac0cf DecoderCommand: convert to strictly-typed enum 2013-09-27 12:11:37 +02:00
3216f4b257 MusicBuffer: expose the C++ API 2013-09-26 22:21:56 +02:00
ce1d897575 MusicPipe: expose the C++ API 2013-09-26 21:51:45 +02:00
3f267b1795 Tag, ...: move to libtag.a 2013-09-05 18:26:56 +02:00
06f898cc12 tag: convert to C++ 2013-07-30 20:19:53 +02:00
361404fd59 pcm_convert: convert to C++ 2013-01-31 00:26:55 +01:00
6f3d70b5e2 DecoderControl, InputStream: use Mutex/Cond instead of GMutex/GCond 2013-01-27 18:39:32 +01:00
0273cd44b0 input_stream: forward-declare the struct
Hide the definition from C code, to prepare the transition to C++.
2013-01-26 01:24:01 +01:00
32799fef5c DecoderControl: move functions into the class 2013-01-21 10:13:29 +01:00
975370c084 decoder_api.h, ...: add "extern C" 2013-01-07 10:07:40 +01:00
7267558ba1 DecoderThread: move code to destructor 2013-01-04 22:02:52 +01:00
e9b71a0d28 MusicChunk: move functions to methods 2013-01-04 21:38:46 +01:00
22f0a1547c buffer, pipe: convert to C++ 2013-01-04 10:16:16 +01:00
e12cc01aa4 decoder_*: convert to C++ 2013-01-04 09:41:45 +01:00