-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GetMetaTag] Added the Mix_GetMetaTag function. #36
Conversation
A quick-and-dirty way to get meta tags from a Mix_Music pointer. Added it for a project I'm working on.
@sezero , do you think yourself is this a good thing? |
A think looks interesting 🦊 |
Yeah yeah. I wasn't thinking of doing a pull request at first, hence the named comments. I'm away from my computer at the moment (am typing on phone), so I'll have to do that later. |
src/music.h
Outdated
@@ -23,6 +23,9 @@ | |||
#ifndef MUSIC_H_ | |||
#define MUSIC_H_ | |||
|
|||
#define LOOP_DEBUG_PRINTOUT 1 | |||
/*#define LOOP_DEBUG_PRINTOUT 0*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to keep this here. Please make the CMake side option to turn this on/off 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No worry, make any necessary changes once you can 😉 |
Thanks :^) |
src/codecs/music_gme.c
Outdated
@@ -547,6 +547,7 @@ Mix_MusicInterface Mix_MusicInterface_GME = | |||
NULL, /* LoopEnd [MIXER-X]*/ | |||
NULL, /* LoopLength [MIXER-X]*/ | |||
GME_GetMetaTag,/* GetMetaTag [MIXER-X]*/ | |||
NULL, /* GetUserTa [MIXER-X-snstruthers]*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A typo: GetUserTa
. Did you meant the GetUserTag
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOL
The debug print stuff pollutes the whole thing badly. Apart from that, I think it needs explanation as to how it differs from other metadata functionality, whether it can be merged with the existing metatags stuff etc. |
That was me forgetting to turn that flag off. I'll change it to a CMAKE flag later. |
That would require some sort of associative array at the to keep all meta-tags at the |
I was thinking of doing that, but
|
|
Well at least I gave you guys an idea or starting off point lol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I already mentioned my views on this PR, so I don't have anything further. (As per reviewing the suggested code line by line: sorry, not interested in the topic much myself.)
Also removed my name from the source/header files
I do think, the idea is good, but it should be implemented differently:
I'll close this as it became stale, but I will make the task issue to implement the ability once upon. |
A quick-and-dirty way to get meta tags from a Mix_Music pointer. I added it for a project I'm working on.