diff options
| author | 2019-02-18 00:48:52 +1100 | |
|---|---|---|
| committer | 2019-02-18 00:48:52 +1100 | |
| commit | 01ccbd89c9445771bf30a5520bb5a1ad0b575fa4 (patch) | |
| tree | b2712ff0df3894774bcbcb3ce0837dc081e42ed4 /src/osd | |
| parent | e65f6d75e1a135e796a123d6a0c5e06291cfcb9a (diff) | |
(nw) remove some superfluous const, eliminate a superfluous temp, remove superflous semicolons, etc. and also fix a known broken build script change
Diffstat (limited to 'src/osd')
| -rw-r--r-- | src/osd/modules/sound/sdl_sound.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/osd/modules/sound/sdl_sound.cpp b/src/osd/modules/sound/sdl_sound.cpp index a04a44c0298..5af464bc546 100644 --- a/src/osd/modules/sound/sdl_sound.cpp +++ b/src/osd/modules/sound/sdl_sound.cpp @@ -80,7 +80,7 @@ private: static void sdl_callback(void *userdata, Uint8 *stream, int len); - int lock_buffer(); + void lock_buffer(); void unlock_buffer(); void attenuate(int16_t *data, int bytes); void copy_sample_data(bool is_throttled, const int16_t *data, int bytes_to_copy); @@ -179,7 +179,7 @@ int sound_sdl::ring_buffer::pop(void *data, size_t size) //============================================================ // lock_buffer //============================================================ -int sound_sdl::lock_buffer() +void sound_sdl::lock_buffer() { if (!buf_locked) SDL_LockAudio(); @@ -187,8 +187,6 @@ int sound_sdl::lock_buffer() if (LOG_SOUND) *sound_log << "locking\n"; - - return 0; } //============================================================ |
