Added user configurable frequency offset for surroundopl. #73
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
Please refer to the issue of "User configurable FREQ_OFFSET? #70 ". For some music tracks, perhaps it is necessary to set a surroundopl frequency offset value greater than 128 in order to avoid "distortion" of certain voice. So I think a user configurable frequency offset for surroundopl is pretty useful.
I have added the feature of user configurable freq offset. Now the default frequency offset value is still defined by FREQ_OFFSET, which is 128. Frontend developers could set a new frequency offset value with something like:
opl->set_offset(cfg.offset);