Comments (5)
Effectively the header does not have length information, the only way is to actually to run the song and see if it ends in silence or loops forever.
from gbsplay.
The best way to add this would be to have a database file with information about all known game music dumps.
from gbsplay.
this seems like a candidate for a backwards-compatible GBSv2. maybe past a certain point in the data (how many banks do games USE for audio?) there could be data about estimated song lengths. this data could be summed to create a total length.
from gbsplay.
gbsplay actually has a spec for an extended format, see https://github.com/mmitch/gbsplay/blob/master/gbsformat.txt which includes "Length of Subsong" already.
However that requires updating the files themselves, by now I think that a hvsc-style database file is a better approach (https://hvsc.de/download/C64Music/DOCUMENTS/Songlengths.faq).
from gbsplay.
With commit 9f3e0ed we have removed the support of the extended format mentioned above. So there currently is no subsong specific information available that gbsinfo could display.
The hvsc style database would be a solution to the original request, but I think that is more of a separate general community project than a new feature to gbsplay.
from gbsplay.
Related Issues (20)
- Allow .gbs code to switch to more ROM banks HOT 8
- How to build on Windows? HOT 2
- Vibrato effect messing up note detection HOT 5
- auto-detect song length (detect emulation state looping) HOT 11
- dump sound as WAV file HOT 5
- verbose build HOT 4
- 'start_at_subsong' option not honored HOT 2
- some files play only silence
- add new gbsplay features to xgbsplay
- add a discussion tab to this repo please HOT 1
- support for dumping into the VGM file format HOT 1
- cycles should be unsigned, that remove huge delays when overflow happens, which is quite often. HOT 8
- oss is not known output plugin error HOT 1
- No sound when playing files with VBlank ugetab
- Unsupported VGZ lead to memory released twice
- Bug in TAC counter rate calculation HOT 1
- muting channels in midi output HOT 13
- MIDI output slowly gets out of sync if written to separate tracks HOT 6
- channel isolated wav output can be out-of-sync HOT 1
- Typo in plugout_midi ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gbsplay.