-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure that punchblock uses .WAV extension for wav49 format #259
Ensure that punchblock uses .WAV extension for wav49 format #259
Conversation
Does asterisk never produce .wav49? Is this documented anywhere? |
See the related issue: #258 Asterisk hardcodes the same extension replacement. |
I'm pretty sure the correct replacement is |
@bklang you are correct, I'll fix that. It should be .WAV I'll also write a spec. |
e318af9
to
56582fa
Compare
Ok changes are now correct, and spec is passing. |
@@ -80,7 +80,8 @@ def filename | |||
end | |||
|
|||
def recording | |||
Punchblock::Component::Record::Recording.new :uri => "file://#{filename}.#{@format}" | |||
uri = "file://#{filename}.#{@format}".gsub('wav49', 'WAV') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more it: to be safe, the gsub
really should only be applied to @format
and not the entire filename
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the change
56582fa
to
eaf3298
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we get an entry in the changelog also before merging this?
… it with Asterisk
eaf3298
to
b4a5dcd
Compare
Thanks Lloyd. Would you perhaps prep this against Adhearsion 2, which merges Punchblock? |
Ensures that the uri returned when wav49 format is used, has the same file extension as what asterisk will use.