Codebase list squeezelite / 573061c
0.9beta9 - support for 384000, 352800 sample rates - ensure windows version recovers from disconnected server - move some warn to info to hide debugging on stream disconnect - fix costmetic issue displaying latency requested value for portaudio Adrian Smith 11 years ago
5 changed file(s) with 13 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
148148 if (m) alsa_mmap = atoi(m);
149149 #endif
150150 #if PORTAUDIO
151 pa_latency = atoi(optarg);
151 pa_latency = (unsigned)atoi(optarg);
152152 #endif
153153 }
154154 break;
161161 return false;
162162 }
163163
164 if (*max_rate > 192000) {
165 *max_rate = 192000;
164 if (*max_rate > 384000) {
165 *max_rate = 384000;
166166 }
167167
168168 if ((err = snd_pcm_close(pcm)) < 0) {
382382 static bool test_open(const char *device, u32_t *max_rate) {
383383 PaStreamParameters outputParameters;
384384 PaError err;
385 u32_t rates[] = { 192000, 176400, 96000, 88200, 48000, 44100, 0 };
385 u32_t rates[] = { 384000, 352800, 192000, 176400, 96000, 88200, 48000, 44100, 0 };
386386 int device_id, i;
387387
388388 if ((device_id = pa_device_id(device)) == -1) {
1717 *
1818 */
1919
20 #define VERSION "v0.9beta8"
20 #define VERSION "v0.9beta9"
2121
2222 // build detection
2323 #if defined(linux)
373373 bool track_started;
374374 #if PORTAUDIO
375375 bool pa_reopen;
376 double latency;
376 unsigned latency;
377377 #endif
378378 unsigned frames_played;
379379 unsigned current_sample_rate;
4949 usleep(1000);
5050 continue;
5151 }
52 LOG_WARN("failed writing to socket: %s", strerror(last_error()));
52 LOG_INFO("failed writing to socket: %s", strerror(last_error()));
5353 stream.disconnect = LOCAL_DISCONNECT;
5454 stream.state = DISCONNECT;
5555 wake_controller();
127127 UNLOCK;
128128 continue;
129129 }
130 LOG_WARN("error reading headers: %s", n ? strerror(last_error()) : "closed");
130 LOG_INFO("error reading headers: %s", n ? strerror(last_error()) : "closed");
131131 _disconnect(STOPPED, LOCAL_DISCONNECT);
132132 UNLOCK;
133133 continue;
169169 UNLOCK;
170170 continue;
171171 }
172 LOG_WARN("error reading icy meta: %s", n ? strerror(last_error()) : "closed");
172 LOG_INFO("error reading icy meta: %s", n ? strerror(last_error()) : "closed");
173173 _disconnect(STOPPED, LOCAL_DISCONNECT);
174174 UNLOCK;
175175 continue;
186186 UNLOCK;
187187 continue;
188188 }
189 LOG_WARN("error reading icy meta: %s", n ? strerror(last_error()) : "closed");
189 LOG_INFO("error reading icy meta: %s", n ? strerror(last_error()) : "closed");
190190 _disconnect(STOPPED, LOCAL_DISCONNECT);
191191 UNLOCK;
192192 continue;
222222 _disconnect(DISCONNECT, DISCONNECT_OK);
223223 }
224224 if (n < 0 && last_error() != EAGAIN) {
225 LOG_WARN("error reading: %s", strerror(last_error()));
225 LOG_INFO("error reading: %s", strerror(last_error()));
226226 _disconnect(DISCONNECT, REMOTE_DISCONNECT);
227227 }
228228
311311 fd = open(stream.header, O_RDONLY);
312312 stream.state = STREAMING_FILE;
313313 if (fd < 0) {
314 LOG_WARN("can't open file: %s", stream.header);
314 LOG_INFO("can't open file: %s", stream.header);
315315 stream.state = DISCONNECT;
316316 }
317317
164164 #if WINEVENT
165165 handles[0] = WSACreateEvent();
166166 handles[1] = e;
167 WSAEventSelect(s, handles[0], FD_READ);
167 WSAEventSelect(s, handles[0], FD_READ | FD_CLOSE);
168168 #elif SELFPIPE
169169 handles[0].fd = s;
170170 handles[1].fd = e.fds[0];