X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FAudio%2FOpusfile.pm;h=e0546ba435f09e2a77f964735c3c909697c5010a;hb=5fbea9a258070b0c9e770e80aa52d17d66730d44;hp=e3e2f41c2932c94bc19dca4f06ad32a165596f0b;hpb=74630599cbd740ae41a7573fd64fb5c98c1c5df0;p=audio-opusfile.git diff --git a/lib/Audio/Opusfile.pm b/lib/Audio/Opusfile.pm index e3e2f41..e0546ba 100644 --- a/lib/Audio/Opusfile.pm +++ b/lib/Audio/Opusfile.pm @@ -83,6 +83,11 @@ sub new_from_file { open_file($file) } +sub new_from_memory { + my ($class, $buf) = @_; + open_memory($buf) +} + 1; __END__