13
0

add std:: to clarify use of llabs on OS X

This commit is contained in:
Paul Davis 2013-09-02 17:43:55 -04:00
parent 01e0f51223
commit d2cdc7da64
3 changed files with 3 additions and 3 deletions

View File

@ -925,7 +925,7 @@ AudioDiskstream::internal_playback_seek (framecnt_t distance)
boost::shared_ptr<ChannelList> c = channels.reader();
for (chan = c->begin(); chan != c->end(); ++chan) {
(*chan)->playback_buf->increment_read_ptr (llabs(distance));
(*chan)->playback_buf->increment_read_ptr (std::llabs(distance));
}
if (first_recordable_frame < max_framepos) {

View File

@ -315,7 +315,7 @@ AudioTrack::roll (pframes_t nframes, framepos_t start_frame, framepos_t end_fram
if (!lm.locked()) {
boost::shared_ptr<AudioDiskstream> diskstream = audio_diskstream();
framecnt_t playback_distance = diskstream->calculate_playback_distance(nframes);
if (can_internal_playback_seek(llabs(playback_distance))) {
if (can_internal_playback_seek(std::llabs(playback_distance))) {
/* TODO should declick */
internal_playback_seek(playback_distance);
}

View File

@ -321,7 +321,7 @@ MidiTrack::roll (pframes_t nframes, framepos_t start_frame, framepos_t end_frame
if (!lm.locked()) {
boost::shared_ptr<MidiDiskstream> diskstream = midi_diskstream();
framecnt_t playback_distance = diskstream->calculate_playback_distance(nframes);
if (can_internal_playback_seek(llabs(playback_distance))) {
if (can_internal_playback_seek(std::llabs(playback_distance))) {
/* TODO should declick, and/or note-off */
internal_playback_seek(playback_distance);
}