mirror of
https://github.com/kemko/icecast-ripper.git
synced 2026-01-01 15:55:42 +03:00
* 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
17 lines
495 B
Go
17 lines
495 B
Go
// Code generated by "stringer -type=FrameChannelMode"; DO NOT EDIT
|
|
|
|
package mp3
|
|
|
|
import "fmt"
|
|
|
|
const _FrameChannelMode_name = "StereoJointStereoDualChannelSingleChannelChannelModeMax"
|
|
|
|
var _FrameChannelMode_index = [...]uint8{0, 6, 17, 28, 41, 55}
|
|
|
|
func (i FrameChannelMode) String() string {
|
|
if i >= FrameChannelMode(len(_FrameChannelMode_index)-1) {
|
|
return fmt.Sprintf("FrameChannelMode(%d)", i)
|
|
}
|
|
return _FrameChannelMode_name[_FrameChannelMode_index[i]:_FrameChannelMode_index[i+1]]
|
|
}
|