Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
implement more opus functions
  • Loading branch information
dafoxia committed Nov 29, 2015
commit 8e4a101e6e8c31b0133b31b82e6d976471a14fca
6 changes: 3 additions & 3 deletions lib/opus-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module Constants
OPUS_SIGNAL_VOICE = 3001
OPUS_SIGNAL_MUSIC = 3002

# WE SHOULD NOT USE THESE (Begin) ------------------------------------------------------------------------
# WE SHOULD NOT USE NUMBERS (could change) (Begin) ------------------------------------------------------------------------
OPUS_SET_APPLICATION_REQUEST = 4000
OPUS_GET_APPLICATION_REQUEST = 4001
OPUS_SET_BITRATE_REQUEST = 4002
Expand Down Expand Up @@ -65,7 +65,7 @@ module Constants
OPUS_GET_SIGNAL_REQUEST = 4025

OPUS_GET_LOOKAHEAD_REQUEST = 4027
OPUS_RESET_STATE = 4028 # OLD! should not used anymore
OPUS_RESET_STATE = 4028
OPUS_GET_SAMPLE_RATE_REQUEST = 4029

OPUS_GET_FINAL_RANGE_REQUEST = 4031
Expand All @@ -81,7 +81,7 @@ module Constants
OPUS_GET_EXPERT_FRAME_DURATION_REQUEST= 4041
OPUS_SET_PREDICTION_DISABLED_REQUEST = 4042
OPUS_GET_PREDICTION_DISABLED_REQUEST = 4043
# WE SHOULD NOT USE THESE (End) --------------------------------------------------------------------------
# WE SHOULD NOT USE NUMBERS (could change) (End) --------------------------------------------------------------------------


OPUS_FRAMESIZE_ARG = 5000 # Select frame size from the argument (default)
Expand Down
3 changes: 3 additions & 0 deletions lib/opus-ruby/decoder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# The MIT License (MIT) #
# #
# Copyright (c) 2014, Aaron Herting 'qwertos' <[email protected]> #
# Copyright (c) 2015, dafoxia <[email protected]> #
# Heavily based on code (c) GitHub User 'perrym5' and code found in the #
# libopus public documentation. #
# #
Expand Down Expand Up @@ -87,6 +88,8 @@ def get_lasterror_string
else "UNKNOWN ERROR / ERROR NOT DEFINED (should never happen)"
end
end


end
end

Loading