Commit Graph

  • bc7e60cbcd check cb->stop in the while loop Max Kellermann 2008-04-12 04:21:18 +00:00
  • f0e78138d1 eliminate OutputBuffer.currentChunk Max Kellermann 2008-04-12 04:21:13 +00:00
  • 3105280f26 added output_buffer_expand() Max Kellermann 2008-04-12 04:21:09 +00:00
  • 5cfb1cf46e initialize all elements in initOutputBuffer() Max Kellermann 2008-04-12 04:21:04 +00:00
  • 7dc1f3117c wake up player on demand Max Kellermann 2008-04-12 04:21:00 +00:00
  • 91b43b481d unlink the socket before bind() Max Kellermann 2008-04-12 04:20:56 +00:00
  • 3919a87525 replaced assertion with check Max Kellermann 2008-04-12 04:20:50 +00:00
  • 1db6478491 fix several errors/warnings which only appear with -O3 Max Kellermann 2008-04-12 04:20:45 +00:00
  • a25a7624f0 multiply num_samples with bytes_per_channel Max Kellermann 2008-04-12 04:20:40 +00:00
  • f4252ee795 missing num_channels check in previous patch Max Kellermann 2008-04-12 04:20:34 +00:00
  • 00fbd7bb4b special optimized case for 16bit stereo Max Kellermann 2008-04-12 04:20:30 +00:00
  • 3db2b98718 read num_channels once Max Kellermann 2008-04-12 04:20:25 +00:00
  • a91f2a1f05 assume the buffer is empty in flacWrite() Max Kellermann 2008-04-12 04:20:19 +00:00
  • ca1090f93b convert blocks until the buffer is full Max Kellermann 2008-04-12 04:20:13 +00:00
  • 0673c9a84d calculate bytes_per_channel, check for buffer flush once Max Kellermann 2008-04-12 04:20:06 +00:00
  • 51e9044098 don't calculate bytes per sample within the loop Max Kellermann 2008-04-12 04:19:59 +00:00
  • 96eb0119cc use unsigned integers and size_t in the flac plugin Max Kellermann 2008-04-12 04:19:55 +00:00
  • 14529af732 pass dc to decoder_task() Max Kellermann 2008-04-12 04:19:50 +00:00
  • 66f1d1ddb3 pass pc to set_current_song() Max Kellermann 2008-04-12 04:19:44 +00:00
  • 1465bfab82 pass pc to player_task() Max Kellermann 2008-04-12 04:19:38 +00:00
  • 8098d8ff8e whitespace cleanup Max Kellermann 2008-04-12 04:19:32 +00:00
  • c89b358c8a clean up CPP includes Max Kellermann 2008-04-12 04:19:26 +00:00
  • 159fb3803b removed "volatile" from OutputBufferChunk properties Max Kellermann 2008-04-12 04:18:54 +00:00
  • b0e47fce09 pass pc to player notify functions Max Kellermann 2008-04-12 04:18:49 +00:00
  • 7642d10fe9 pass DecoderControl object to decoder_sleep() Max Kellermann 2008-04-12 04:18:43 +00:00
  • f2cdac6ee7 added output_buffer_free() Max Kellermann 2008-04-12 04:18:38 +00:00
  • b688134586 remove the local variable "end" Max Kellermann 2008-04-12 04:18:32 +00:00
  • 0c46dd6831 don't use short chunk numbers Max Kellermann 2008-04-12 04:18:28 +00:00
  • 20c4638a2e added output_buffer_skip() Max Kellermann 2008-04-12 04:18:19 +00:00
  • e20b71ed63 remove buffered_chunks, use cb->size Max Kellermann 2008-04-12 04:18:12 +00:00
  • e9e557c8d1 pass buffered_chunks to initOutputBuffer() Max Kellermann 2008-04-12 04:18:04 +00:00
  • b2819e12e7 make playerData_pd static Max Kellermann 2008-04-12 04:17:55 +00:00
  • 288a7087f6 allocate playerData_pd from heap instead of shm Max Kellermann 2008-04-12 04:17:46 +00:00
  • eb5d51c988 fixed another shadow warning Max Kellermann 2008-04-12 04:17:22 +00:00
  • 70ba525144 don't allocate pd.auddioDeviceStates from shm Max Kellermann 2008-04-12 04:17:12 +00:00
  • 4b2a10825d fix typo in comment Max Kellermann 2008-04-12 04:17:01 +00:00
  • 78f606078e let initOutputBuffer() allocate memory Max Kellermann 2008-04-12 04:16:56 +00:00
  • f0e28ede4d fix deadlock at end of song Max Kellermann 2008-04-12 04:16:50 +00:00
  • 9cfb4c0390 decode: fix some uninitialized variable warnings Eric Wong 2008-04-12 04:16:44 +00:00
  • e566c4c64c decode: fix unsigned comparision and add some paranoid assertions Eric Wong 2008-04-12 04:16:37 +00:00
  • f275a1a1ab Fix a few more warnings from -Wshadow Eric Wong 2008-04-12 04:16:32 +00:00
  • 4e4441fd32 configure: better CFLAGS checking Eric Wong 2008-04-12 04:16:22 +00:00
  • dd20681daa missing const in disabled code path Max Kellermann 2008-04-12 04:16:18 +00:00
  • ee64bba4d9 some assertions to check the unsigned changes Max Kellermann 2008-04-12 04:16:13 +00:00
  • 1ad2f07a39 use size_t in audio.c Max Kellermann 2008-04-12 04:16:08 +00:00
  • c9d80d6090 use free()/malloc() instead of realloc() Max Kellermann 2008-04-12 04:16:03 +00:00
  • 1d18ca6909 use size_t in audioOutput.c internals Max Kellermann 2008-04-12 04:15:58 +00:00
  • 01bf822896 use size_t and constant pointer in ao plugins Max Kellermann 2008-04-12 04:15:52 +00:00
  • a2380928db use size_t for pcm_sizeOfConvBuffer() result Max Kellermann 2008-04-12 04:15:40 +00:00
  • 2bd2957a7a yet more unsigned integers Max Kellermann 2008-04-12 04:15:35 +00:00
  • f7e97c9a89 constant pointers Max Kellermann 2008-04-12 04:15:30 +00:00
  • 05c41a80ed fix parameter types in the faad calls Max Kellermann 2008-04-12 04:15:24 +00:00
  • 2ede0780f6 fix compilation error in wavpack plugin Max Kellermann 2008-04-12 04:15:16 +00:00
  • a5aa5a0258 yet more unsigned integers Max Kellermann 2008-04-12 04:15:10 +00:00
  • 4e0891337a whitespace cleanup Max Kellermann 2008-04-12 04:15:00 +00:00
  • 7503518bac added inline function successor() Max Kellermann 2008-04-12 04:14:55 +00:00
  • 079f13bc7d moved currentChunk into OutputBuffer Max Kellermann 2008-04-12 04:14:50 +00:00
  • 4ee8396f41 use the notify API in the main thread Max Kellermann 2008-04-12 04:14:45 +00:00
  • b7ac3fab46 use the notify API in the player Max Kellermann 2008-04-12 04:14:38 +00:00
  • 701cf6884c use the notify API in the decoder Max Kellermann 2008-04-12 04:14:32 +00:00
  • 0146fbe3ce use the pthread API in notify.c Max Kellermann 2008-04-12 04:14:25 +00:00
  • 38e0dafc4c rename the notify.c methods Max Kellermann 2008-04-12 04:14:19 +00:00
  • 00a16b49ba use break instead of quitDecode()+return Max Kellermann 2008-04-12 04:14:14 +00:00
  • 646260b19e moved expression to audioFormatSizeToTime() Max Kellermann 2008-04-12 04:14:09 +00:00
  • dc55e13ca1 let calculateCrossFadeChunks() decide Max Kellermann 2008-04-12 04:14:01 +00:00
  • b009b2a437 moved code to playChunk() Max Kellermann 2008-04-12 04:13:56 +00:00
  • 2e648b57f3 added outputBufferShift() Max Kellermann 2008-04-12 04:13:51 +00:00
  • 11a5728e1d continue main loop instead of nesting loops Max Kellermann 2008-04-12 04:13:45 +00:00
  • f25ff42639 sleep when waiting for cross-fade chunks Max Kellermann 2008-04-12 04:13:41 +00:00
  • 9760325ee6 moved code to crossFade() Max Kellermann 2008-04-12 04:13:36 +00:00
  • bc20b64302 use sizeof(chunk.data) instead of CHUNK_SIZE Max Kellermann 2008-04-12 04:13:30 +00:00
  • 74910df0f3 added struct OutputBufferChunk Max Kellermann 2008-04-12 04:13:24 +00:00
  • 68a625b5b8 moved CHUNK_SIZE to outputBuffer.h Max Kellermann 2008-04-12 04:13:17 +00:00
  • 7a6c31ae06 added outputBufferChunkData() Max Kellermann 2008-04-12 04:13:11 +00:00
  • 71b24e0950 removed "quit" Max Kellermann 2008-04-12 04:13:05 +00:00
  • e9b7aae3f0 do not reset nextChunk Max Kellermann 2008-04-12 04:13:00 +00:00
  • 4e60343e55 added outputBufferRelative() Max Kellermann 2008-04-12 04:12:53 +00:00
  • 50dc380f23 added outputBufferEmpty() Max Kellermann 2008-04-12 04:12:47 +00:00
  • e626028b41 moved check to outputBufferAbsolute() Max Kellermann 2008-04-12 04:12:42 +00:00
  • a546428263 make variables more local Max Kellermann 2008-04-12 04:12:36 +00:00
  • b89b019723 moved the initial buffering code into the big loop Max Kellermann 2008-04-12 04:12:31 +00:00
  • aaebd9ef2b some comments in decode.c Max Kellermann 2008-04-12 04:12:26 +00:00
  • 7ee436b435 integrated macro handleDecodeStart() into caller Max Kellermann 2008-04-12 04:12:21 +00:00
  • 753b5cf360 use clearOutputBuffer() Max Kellermann 2008-04-12 04:12:16 +00:00
  • 199ea5f2c1 do not check dc->start after loop Max Kellermann 2008-04-12 04:12:11 +00:00
  • e63f388b04 use DECODE_ERROR_NOERROR instead of 0 Max Kellermann 2008-04-12 04:12:07 +00:00
  • f6ed3eaeae converted macro processDecodeInput() to function Max Kellermann 2008-04-12 04:12:01 +00:00
  • 82fbf1a24c added clearPlayerQueueLocked() Max Kellermann 2008-04-12 04:11:56 +00:00
  • 7aa78d9b4a don't set quit=1 before break Max Kellermann 2008-04-12 04:11:51 +00:00
  • fae23a5111 simplified some code in decode.c Max Kellermann 2008-04-12 04:11:46 +00:00
  • a7b19012d3 add method availableOutputBuffer() Max Kellermann 2008-04-12 04:11:41 +00:00
  • 0defe87da7 replace advanceOutputBufferTo() with trivial assignment Max Kellermann 2008-04-12 04:11:34 +00:00
  • 4150a49b36 removed unused parameters from advanceOutputBufferTo() Max Kellermann 2008-04-12 04:11:29 +00:00
  • 1ecebd4686 moved code to function tailChunk() Max Kellermann 2008-04-12 04:11:23 +00:00
  • 63b55b9a48 use free()+malloc() instead of realloc() Max Kellermann 2008-04-12 04:11:17 +00:00
  • d3f72d1023 some documentation about OutputBuffer Max Kellermann 2008-04-12 04:08:35 +00:00
  • efa4642356 Start using song pointers in core data structures Eric Wong 2008-04-12 04:08:29 +00:00
  • b323040489 outputBuffer: remove unused variable Eric Wong 2008-04-12 04:08:22 +00:00
  • 3c52652032 song: document get_song_url() Eric Wong 2008-04-12 04:08:18 +00:00
  • 45ebb851f4 Drop metadata updates from HTTP for now (input HTTP, and shout) Eric Wong 2008-04-12 04:08:12 +00:00