Skip to content

Commit

Permalink
Need to loosen some return Type constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanstowe committed Dec 9, 2015
1 parent 8084426 commit 44f0c4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Audio/Encode/LameMP3.pm
Expand Up @@ -392,13 +392,13 @@ A comment. The id3v2 tag is created with a language of "XXX" for some reason.
=end pod

class Audio::Encode::LameMP3:ver<v0.0.4>:auth<github:jonathanstowe> {
class Audio::Encode::LameMP3:ver<v0.0.5>:auth<github:jonathanstowe> {
use NativeCall;
use AccessorFacade;
use NativeHelpers::Array;

# Output of ':raw' methods for notational convenience
subset RawEncode of Array where ($_.elems == 2 ) && ($_[0] ~~ CArray[uint8]) && ($_[1] ~~ Int);
subset RawEncode of Array where ($_.elems == 2 ) && ($_[0] ~~ CArray) && ($_[1] ~~ Int);

enum EncodeError ( Okay => 0, BuffTooSmall => -1, Malloc => -2, NotInit => -3, Psycho => -4 );

Expand Down Expand Up @@ -524,7 +524,7 @@ class Audio::Encode::LameMP3:ver<v0.0.4>:auth<github:jonathanstowe> {
$num;
}

sub get-out-buffer(Int $size) returns CArray[uint8] {
sub get-out-buffer(Int $size) returns CArray {
my $buff = CArray[uint8].new;
$buff[$size] = 0;
$buff;
Expand Down

0 comments on commit 44f0c4c

Please sign in to comment.