-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flac: Add preliminary encoding support.
Support for encoding metadata has been added. Proper support for encoding audio samples is yet to be implemented. For now, simply copy the original encoded audio data from the source FLAC file. The API mirrors that of image.Encode. Updates #14.
- Loading branch information
Showing
8 changed files
with
439 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,13 +172,13 @@ type Type uint8 | |
|
||
// Metadata block body types. | ||
const ( | ||
TypeStreamInfo Type = iota | ||
TypePadding | ||
TypeApplication | ||
TypeSeekTable | ||
TypeVorbisComment | ||
TypeCueSheet | ||
TypePicture | ||
TypeStreamInfo Type = 0 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mewmew
Author
Member
|
||
TypePadding Type = 1 | ||
TypeApplication Type = 2 | ||
TypeSeekTable Type = 3 | ||
TypeVorbisComment Type = 4 | ||
TypeCueSheet Type = 5 | ||
TypePicture Type = 6 | ||
) | ||
|
||
func (t Type) String() string { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why change to explicitly typed values?