diff options
author | 2018-11-05 19:11:18 +0100 | |
---|---|---|
committer | 2018-11-05 19:11:18 +0100 | |
commit | 13247311f650d2190ca50f05f2879c63a3ad0b6b (patch) | |
tree | 565cf81b012b0879a1ef304c955908ea016d2dc6 /src/lib/formats/cassimg.cpp | |
parent | 884465327b05bdbc0eae9894d4b84744a8ab5567 (diff) |
Renamed flipendian -> swapendian, as I spent minutes trying to find the functions to tell to another person who spent minutes trying to find the functions, and we refer to such functions as swapping just about everywhere else in the codebase, nw
Diffstat (limited to 'src/lib/formats/cassimg.cpp')
-rw-r--r-- | src/lib/formats/cassimg.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/formats/cassimg.cpp b/src/lib/formats/cassimg.cpp index df8322ff8be..474bf9db589 100644 --- a/src/lib/formats/cassimg.cpp +++ b/src/lib/formats/cassimg.cpp @@ -468,13 +468,13 @@ cassette_image::error cassette_get_samples(cassette_image *cassette, int channel case 2: word = interpolate16(sum); if (waveform_flags & CASSETTE_WAVEFORM_ENDIAN_FLIP) - word = flipendian_int16(word); + word = swapendian_int16(word); *((int16_t *) dest_ptr) = word; break; case 4: dword = sum; if (waveform_flags & CASSETTE_WAVEFORM_ENDIAN_FLIP) - dword = flipendian_int32(dword); + dword = swapendian_int32(dword); *((int32_t *) dest_ptr) = dword; break; } @@ -539,13 +539,13 @@ cassette_image::error cassette_put_samples(cassette_image *cassette, int channel case 2: word = *((int16_t *) source_ptr); if (waveform_flags & CASSETTE_WAVEFORM_ENDIAN_FLIP) - word = flipendian_int16(word); + word = swapendian_int16(word); dest_value = extrapolate16(word); break; case 4: dword = *((int32_t *) source_ptr); if (waveform_flags & CASSETTE_WAVEFORM_ENDIAN_FLIP) - dword = flipendian_int32(dword); + dword = swapendian_int32(dword); dest_value = dword; break; default: |