diff options
author | Matthew Gregan <[email protected]> | 2012-01-18 14:13:34 +1300 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2012-01-18 14:13:34 +1300 |
commit | 0d0209225e334b256c72432723de811c8b9592f4 (patch) | |
tree | 0a808e42b4b426e26dd55af3ed8e27c45ba0b049 /src | |
parent | 4faab781b18e4e1e33340bd889e9b3af8ce2e3f5 (diff) | |
download | cubeb-0d0209225e334b256c72432723de811c8b9592f4.tar.gz cubeb-0d0209225e334b256c72432723de811c8b9592f4.zip |
winmm, directsound: fix bytes_per_frame calculator for s16.
Diffstat (limited to 'src')
-rw-r--r-- | src/cubeb_directsound.cpp | 2 | ||||
-rw-r--r-- | src/cubeb_winmm.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cubeb_directsound.cpp b/src/cubeb_directsound.cpp index 452291a..ea6b9a8 100644 --- a/src/cubeb_directsound.cpp +++ b/src/cubeb_directsound.cpp @@ -56,7 +56,7 @@ bytes_per_frame(cubeb_stream_params params) switch (params.format) {
case CUBEB_SAMPLE_S16LE:
- bytes = sizeof(signed int);
+ bytes = sizeof(signed short);
break;
case CUBEB_SAMPLE_FLOAT32LE:
bytes = sizeof(float);
diff --git a/src/cubeb_winmm.c b/src/cubeb_winmm.c index 1a0b983..06925c1 100644 --- a/src/cubeb_winmm.c +++ b/src/cubeb_winmm.c @@ -52,7 +52,7 @@ bytes_per_frame(cubeb_stream_params params) switch (params.format) { case CUBEB_SAMPLE_S16LE: - bytes = sizeof(signed int); + bytes = sizeof(signed short); break; case CUBEB_SAMPLE_FLOAT32LE: bytes = sizeof(float); |