1.0rc3
- ensure silencebuf is set to silence
- avoid sending STMo on track jumps
- send elapsed time of 0 as soon as track changes (to make UI update to 0 faster)
Adrian Smith
11 years ago
|
0 |
# OSX build - adjust -I to point to header files for codecs and portaudio
|
|
1 |
CFLAGS = -arch x86_64 -arch i386 -Wall -fPIC -O2 -I./include
|
|
2 |
LDFLAGS = -arch x86_64 -arch i386 -lpthread libportaudio.a -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
|
|
3 |
|
|
4 |
EXECUTABLE ?= squeezelite-osx
|
|
5 |
|
|
6 |
include Makefile
|
120 | 120 |
u32_t now = gettime_ms();
|
121 | 121 |
u32_t ms_played;
|
122 | 122 |
|
123 | |
if (status.current_sample_rate) {
|
|
123 |
if (status.current_sample_rate && status.frames_played && status.frames_played > status.device_frames) {
|
124 | 124 |
ms_played = (u32_t)(((u64_t)(status.frames_played - status.device_frames) * (u64_t)1000) / (u64_t)status.current_sample_rate);
|
125 | 125 |
if (now > status.updated) ms_played += (now - status.updated);
|
126 | 126 |
} else {
|
|
222 | 222 |
sendSTAT("STMt", strm->replay_gain); // STMt replay_gain is no longer used to track latency, but support it
|
223 | 223 |
break;
|
224 | 224 |
case 'q':
|
225 | |
stream_disconnect();
|
|
225 |
output_flush();
|
|
226 |
status.frames_played = 0;
|
|
227 |
if (stream_disconnect()) {
|
|
228 |
sendSTAT("STMf", 0);
|
|
229 |
}
|
226 | 230 |
buf_flush(streambuf);
|
227 | |
output_flush();
|
228 | 231 |
break;
|
229 | 232 |
case 'f':
|
230 | |
stream_disconnect();
|
|
233 |
output_flush();
|
|
234 |
status.frames_played = 0;
|
|
235 |
if (stream_disconnect()) {
|
|
236 |
sendSTAT("STMf", 0);
|
|
237 |
}
|
231 | 238 |
buf_flush(streambuf);
|
232 | |
output_flush();
|
233 | 239 |
break;
|
234 | 240 |
case 'p':
|
235 | 241 |
{
|
17 | 17 |
*
|
18 | 18 |
*/
|
19 | 19 |
|
20 | |
#define VERSION "v1.0rc2"
|
|
20 |
#define VERSION "v1.0rc3"
|
21 | 21 |
|
22 | 22 |
// build detection
|
23 | 23 |
#if defined(linux)
|
|
346 | 346 |
void stream_close(void);
|
347 | 347 |
void stream_file(const char *header, size_t header_len, unsigned threshold);
|
348 | 348 |
void stream_sock(u32_t ip, u16_t port, const char *header, size_t header_len, unsigned threshold, bool cont_wait);
|
349 | |
void stream_disconnect(void);
|
|
349 |
bool stream_disconnect(void);
|
350 | 350 |
|
351 | 351 |
// decode.c
|
352 | 352 |
typedef enum { DECODE_STOPPED = 0, DECODE_RUNNING, DECODE_COMPLETE, DECODE_ERROR } decode_state;
|