Fix minor warnings from some of the backend modules and make the configure messages a little more helpful.

This commit is contained in:
Mike Brady
2018-05-18 15:22:20 +01:00
parent e6fb380677
commit 3fbd47ad05
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -167,7 +167,7 @@ static void start(int sample_rate, int sample_format) {
debug(1, "libsoundio output started\n");
}
static void play(short buf[], int samples) {
static void play(void *buf, int samples) {
// int err;
int free_bytes = soundio_ring_buffer_free_count(ring_buffer);
int written_bytes = 0;
@@ -181,7 +181,7 @@ static void play(short buf[], int samples) {
free_bytes);
if (write_bytes) {
memcpy(write_ptr, (char *)buf, write_bytes);
memcpy(write_ptr, buf, write_bytes);
written_bytes += write_bytes;
soundio_ring_buffer_advance_write_ptr(ring_buffer, write_bytes);
debug(3, "[<<---] Written to buffer : %d\n", written_bytes);