github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/mediatypes/media-types-audio.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package mediatypes
     4  
     5  import (
     6  	"../mediatype"
     7  	"../protocol"
     8  )
     9  
    10  var (
    11  	AAC mediatype.MediaType
    12  
    13  	WAV  mediatype.MediaType
    14  	WEBA mediatype.MediaType
    15  
    16  	OGA mediatype.MediaType
    17  
    18  	MID  mediatype.MediaType
    19  	MIDI mediatype.MediaType
    20  
    21  	ThreeGPAudio mediatype.MediaType
    22  	ThreeG2Audio mediatype.MediaType
    23  )
    24  
    25  func init() {
    26  	AAC.Init("audio/aac")
    27  	AAC.SetFileExtension("aac")
    28  	AAC.SetDetail(protocol.LanguageEnglish, "AAC audio file", "", "", "", "", []string{})
    29  
    30  	WAV.Init("audio/x-wav")
    31  	WAV.SetFileExtension("wav")
    32  	WAV.SetDetail(protocol.LanguageEnglish, "Waveform Audio Format", "", "", "", "", []string{})
    33  
    34  	WEBA.Init("audio/webm")
    35  	WEBA.SetFileExtension("webm")
    36  	WEBA.SetDetail(protocol.LanguageEnglish, "WEBM audio", "", "", "", "", []string{})
    37  
    38  	OGA.Init("audio/ogg")
    39  	OGA.SetFileExtension("ogg")
    40  	OGA.SetDetail(protocol.LanguageEnglish, "OGG audio", "", "", "", "", []string{})
    41  
    42  	MID.Init("audio/mid")
    43  	MID.SetFileExtension("mid")
    44  	MID.SetDetail(protocol.LanguageEnglish, "Musical Instrument Digital Interface", "", "", "", "", []string{})
    45  
    46  	MIDI.Init("audio/midi")
    47  	MIDI.SetFileExtension("midi")
    48  	MIDI.SetDetail(protocol.LanguageEnglish, "Musical Instrument Digital Interface", "", "", "", "", []string{})
    49  
    50  	ThreeGPAudio.Init("audio/3gpp")
    51  	ThreeGPAudio.SetFileExtension("3gp")
    52  	ThreeGPAudio.SetDetail(protocol.LanguageEnglish, "3GPP audio container", "", "", "", "", []string{})
    53  
    54  	ThreeG2Audio.Init("audio/3gpp2")
    55  	ThreeG2Audio.SetFileExtension("3g2")
    56  	ThreeG2Audio.SetDetail(protocol.LanguageEnglish, "3GPP2 audio container", "", "", "", "", []string{})
    57  }