OSDN Git Service
(root)
/
timidity41
/
timidity41.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0b281e
)
Fix loop offset calculation
author
Starg
<starg@users.osdn.me>
Sun, 29 Apr 2018 10:17:42 +0000
(19:17 +0900)
committer
Starg
<starg@users.osdn.me>
Sun, 29 Apr 2018 10:17:42 +0000
(19:17 +0900)
timidity/sndfont.c
patch
|
blob
|
history
diff --git
a/timidity/sndfont.c
b/timidity/sndfont.c
index
b9780c7
..
13dab38
100644
(file)
--- a/
timidity/sndfont.c
+++ b/
timidity/sndfont.c
@@
-859,7
+859,7
@@
static Instrument *load_from_file(SFInsts *rec, InstList *ip)
if (sample->loop_start >= sample->loop_end)
{
sample->loop_start = sample->data_length;
- sample->loop_end = sample->data_length +
1
;
+ sample->loop_end = sample->data_length +
(1 << FRACTION_BITS)
;
}
if (sdr.channels > 1) {