{"id":36443472,"url":"https://github.com/lexesv/gobass.dll","last_synced_at":"2026-01-11T22:01:35.291Z","repository":{"id":54804478,"uuid":"106852974","full_name":"lexesv/gobass.dll","owner":"lexesv","description":"Go bindings for bass.dll","archived":false,"fork":false,"pushed_at":"2021-01-28T12:08:23.000Z","size":157,"stargazers_count":11,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T05:41:08.691Z","etag":null,"topics":["audio-player","bass","go","golang","libbass"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lexesv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-13T17:17:29.000Z","updated_at":"2023-10-03T05:29:04.000Z","dependencies_parsed_at":"2022-08-14T03:20:44.522Z","dependency_job_id":null,"html_url":"https://github.com/lexesv/gobass.dll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lexesv/gobass.dll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexesv%2Fgobass.dll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexesv%2Fgobass.dll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexesv%2Fgobass.dll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexesv%2Fgobass.dll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lexesv","download_url":"https://codeload.github.com/lexesv/gobass.dll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexesv%2Fgobass.dll/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28324835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T18:42:50.174Z","status":"ssl_error","status_checked_at":"2026-01-11T18:39:13.842Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio-player","bass","go","golang","libbass"],"created_at":"2026-01-11T22:01:34.351Z","updated_at":"2026-01-11T22:01:35.284Z","avatar_url":"https://github.com/lexesv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gobass.dll\nGo bindings for [bass.dll](http://www.un4seen.com/)\n\nNote: wrapped a few basic functions\n\n### Install\n```sh\n$ go get github.com/lexesv/gobass.dll\n```\n\n### Usage\n\nExample 1\n```go\nif ok, err := bass.Init(-1, 44100, 0); ok {\n\tfmt.Println(\"bass init\")\n} else {\n\tpanic(err)\n}\nc, err := bass.StreamCreateURL(\"http://music.myradio.ua:8000/PopRock_news128.mp3\")\nif err == nil {\n\tfmt.Println(bass.ChannelPlay(c))\n} else {\n\tpanic(err)\n}\nbass.SetVol(50)\nbass.ChannelSetVolume(c, 40.5)\n```\n\nExample 2\n```go\nplugin, err := bass.PluginLoad(\"libbass_aac.so\")\nif err != nil {\n\tfmt.Println(err)\n} else {\n\tdefer bass.PluginFree(plugin)\n}\n\ncfg := bass.PlayerConf{\n\tDevice: -1,\n\tFreq:   44100,\n\tFlags:  0,\n\tVolume: 50.5,\n\tSource: \"http://online-hitfm.tavrmedia.ua/HitFM_Live\", \n\t// or Source: \"file.mp3\",\n}\n\n// or\ncfg = bass.PlayerConf{}\ncfg.Source = \"http://music.myradio.ua:8000/main_stream_rock_news128.mp3\"\n\nplayer, err := bass.NewPlayer(cfg)\nif err != nil {\n\tpanic(err)\n} \n\nfmt.Println(player.Play())\nfmt.Println(\"Volume:\", player.GetVol())\ntime.Sleep(time.Second * 1)\nplayer.SetVol(55)\nfmt.Println(\"Volume:\", player.GetVol())\n\nr := regexp.MustCompile(`(?isU)StreamTitle='(.*)';`)\nfor {\n\tm := r.FindStringSubmatch(bass.ChannelGetTags(player.Channel, bass.BASS_TAG_META))\n\tif len(m) \u003e 0 {\n\t\tfmt.Printf(\"\\r%s\", m[1])\n\t}\n\ttime.Sleep(time.Second * 3)\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexesv%2Fgobass.dll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flexesv%2Fgobass.dll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexesv%2Fgobass.dll/lists"}