diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2010-02-02 19:34:26 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2010-02-02 19:34:26 +0800 |
commit | 56437ff38f13afcffa4c7f281d43ff5aa349e9a8 (patch) | |
tree | 09f7c8c60394ea26f772b69b3b727dda3a873868 /src | |
parent | 707adf0b1d2347be7381459f5e2945c0459565b5 (diff) |
Nexus: fixed two warnings.
Diffstat (limited to 'src')
-rw-r--r-- | src/device_nexus.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device_nexus.cpp b/src/device_nexus.cpp index 737d590..5603774 100644 --- a/src/device_nexus.cpp +++ b/src/device_nexus.cpp @@ -120,7 +120,7 @@ namespace audiere { sample_left = read(sample_len, sample_buf); while (sample_left > 0) { - int16_t *buffer; + void *buffer; size_t buffersize; BERR_Code err; @@ -131,7 +131,7 @@ namespace audiere { if (buffersize) { /* Copy samples into buffer */ - int samples = buffersize / 4; + size_t samples = buffersize / 4; if (samples > sample_left) samples = sample_left; memcpy(buffer, sample_buf, samples * 4); |