Files
icecast-ripper/vendor/github.com/tcolgate/mp3/frameversion_string.go
Dmitry Andreev b5f23a50b7
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
Docker / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Integrate MP3 duration extraction and silence handling (#6)
* feat: integrate MP3 duration extraction and silence handling

- Added a new dependency on github.com/tcolgate/mp3 for MP3 frame decoding.
- Implemented actual MP3 duration retrieval in the scanRecordings function, falling back to an estimation if retrieval fails.
- Introduced a silent frame asset for generating silence in audio streams.
- Created a silence reader to provide a continuous stream of silent frames.
- Added necessary documentation and licensing for the new MP3 package.
- Updated .gitignore to exclude MP3 files except for the internal data directory.

* feat: update README and improve application configuration and logging

* refactor: remove unused GenerateFileHash function and improve resource cleanup in MP3 and recorder modules
2025-04-13 15:56:22 +03:00

17 lines
438 B
Go

// Code generated by "stringer -type=FrameVersion"; DO NOT EDIT
package mp3
import "fmt"
const _FrameVersion_name = "MPEG25MPEGReservedMPEG2MPEG1VERSIONMAX"
var _FrameVersion_index = [...]uint8{0, 6, 18, 23, 28, 38}
func (i FrameVersion) String() string {
if i >= FrameVersion(len(_FrameVersion_index)-1) {
return fmt.Sprintf("FrameVersion(%d)", i)
}
return _FrameVersion_name[_FrameVersion_index[i]:_FrameVersion_index[i+1]]
}