Skip to content

Commit

Permalink
Change return type on ctl wrapper method
Browse files Browse the repository at this point in the history
  • Loading branch information
emlynmac committed Apr 20, 2022
1 parent a7f8272 commit a5b29aa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Sources/Opus/Opus.Custom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,15 @@ public extension Opus {

///
/// Wrapper onto the opus_custom_encoder_ctl function
/// https://www.opus-codec.org/docs/opus_api-1.3.1/group__opus__encoderctls.html
/// - Parameter request The Opus CTL to change
/// - Parameter value The value to set it to
///
/// - Returns Opus.Error code raw type
public func encoderCtl(request: Int32, value: Int32) -> Opus.Error.RawValue {
opus_custom_encoder_ctl_wrapper(encoder, request, value)
/// - Returns Opus.Error code
public func encoderCtl(request: Int32, value: Int32) -> Opus.Error {
Opus.Error(
rawValue: opus_custom_encoder_ctl_wrapper(encoder, request, value)
)
}

///
Expand Down

0 comments on commit a5b29aa

Please sign in to comment.