Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: AMIP - the complete now playing plug-in (Read 231199 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

AMIP - the complete now playing plug-in

Reply #200
Yes, you can copy plugin.ini between machines, no matter what player is used.

AMIP - the complete now playing plug-in

Reply #201
as you guys can see, the font, the size, and the color is exactly the same as the theme that i am using right now. however, the problem is that it isn't perfectly aligned. can anyone tell me why?

AMIP - the complete now playing plug-in

Reply #202
I see, I'll add an option to fine tune vertical alignment in one of the future builds.


AMIP - the complete now playing plug-in

Reply #204
I just started using this and it's great. Thanks.

But maybe someone can help me, I am using fb2k v0.9.1, and this is the preset I am using for mIRC

//describe $active now playing: %1 - [%4 #%3] - %2 - %min:%sec [%br~kbps]

And it works fine for mp3's and flac files (though I would like it to display the codec too, can't figure that out.)

lextune now playing: Morbid Angel - [Blessed Are The Sick #02] - Fall From Grace - 05:13 [insert codec here1010kbps]

But files with ape tags (WavPack, MPC) are missing the track number and title tags.

lextune now playing: Bloodbath - [Nightmares Made Flesh #] - - 03:37 [1058kbps]

?

Can someone help out an AMIP n00b, and give me the string that will add the missing tags to the ape tagged files? And ideally add the codec to the display for all of them as well.
foobar2000 + EAC + Burrrn = Happiness

AMIP - the complete now playing plug-in

Reply #205
a proposal: you could use the %s variable and define your desired string through foobar-amip-configuration!

AMIP - the complete now playing plug-in

Reply #206
Try configuring the string you need in foobar using foobar formatting variables (in AMIP Wrapper settings) and in AMIP use %s for this string.

AMIP - the complete now playing plug-in

Reply #207
Sweet! Thanks again ;D
foobar2000 + EAC + Burrrn = Happiness

AMIP - the complete now playing plug-in

Reply #208
Hi, thanks for the plugin, I use it to create playback log with "Callbacks/Web". The behaviour just seems a bit weird:

- "Play & change" writes a new entry when starting to play, when coming back from pause mode and when e.g. editing some of the tags
- "Play" seems to write an entry only when stopping the playback and starting again, not even when the playback naturally continues to next song

I don't quite understand the logic, at least with the latter one. What I'd expect to see is an entry every time playback is started from the beginning of the track (as when using play, next, random or letting foobar continue to the next track after finishing the current one).

 

AMIP - the complete now playing plug-in

Reply #209
Yeah, I know, it's a bit confusing, because you need only Change action. Actually, change action is invoked using the IRC Integration preset. So, instead of Callbacks/Web, put your command in the IRC Integration Preset.

For consistency I'll add Change Tab to the Callbacks/Web in one of the future builds.

AMIP - the complete now playing plug-in

Reply #210
Yeah, I know, it's a bit confusing, because you need only Change action. Actually, change action is invoked using the IRC Integration preset. So, instead of Callbacks/Web, put your command in the IRC Integration Preset.

Thank you again, this indeed does the trick. It doesn't add another entry if I play some track twice, but that's not a big deal.

AMIP - the complete now playing plug-in

Reply #211
Um ... i would like to display the codec used, but i didn't find a variable matching this, and I'm not really understanding the syntax (kinda dumb today  ), so i could code myself a variable/conditions-construct with the flags. Does anybody have a solution by hand?

AMIP - the complete now playing plug-in

Reply #212
AMIP doesn't have variable for codec (only for mp3 codecs), but you can use format flags and conditions to write codec info.

Also you can use foobar variables in wrapper settings and in AMIP use %s.

AMIP - the complete now playing plug-in

Reply #213
Uh ... have written a whole lot of crap :/

AMIP - the complete now playing plug-in

Reply #214
Should %vol tag work with Foobar2000? I'm trying to write the volume information into a text file, but the value is always 254. I'm using Foobar v0.91 and AMIP v2.53. (more info..)

AMIP - the complete now playing plug-in

Reply #215
I'm not sure, I'm using the standard API function to get the volume from player, but probably it returns the same constant volume.

Code: [Select]
static_api_ptr_t<playback_control> pc;
int vol = pc->get_volume();

AMIP - the complete now playing plug-in

Reply #216
Code: [Select]
class NOVTABLE playback_control : ...
    //! Retrieves playback volume level.
    //! @returns current playback volume level, in dB; 0 for full volume.
    virtual float get_volume() = 0;

The return type of this function has changed in 0.9. It might be a good idea to change your compiler settings so that it will generate a warning about potential data loss because of the implicit float to int conversion.

AMIP - the complete now playing plug-in

Reply #217
The problem here is not with the type conversion and possible data loss, but with the change in the scale. In 0.8 it was -10000..0 int, in 0.9 it is -100..0 float.

My code is converting it to 0..255 scale and of course it doesn't work correctly now. It would be nice to have it documented.

I'll change my code to work correctly with 0.9 for the next AMIP build.

I should also note that it's not the same as Winamp's 0..255 scale because with foobar it's logarithmic. I'll try to consider it in my new coversion code.

AMIP - the complete now playing plug-in

Reply #218
Is it possible to add a variable for total playlist time, not just number of songs in playlist (%ll)?

AMIP - the complete now playing plug-in

Reply #219
No, since such variable needs to be calculated and it can take a lot of time for large playlists.

AMIP - the complete now playing plug-in

Reply #220
when i'm using ctrl + alt + z, it writes only first played song... anyone know how to fix it? version 2.53 beta

AMIP - the complete now playing plug-in

Reply #221
Do you play streams, CUE files or real mp3/other standalone files? What is the state of player when you use the hotkey? Anything unusual with your playlist? Does Ctrl+J dialog work and show the correct current song?

AMIP - the complete now playing plug-in

Reply #222
ctrl + j don't work... all the songs are in white, can't see anything, playing mp3

AMIP - the complete now playing plug-in

Reply #223
Make sure that playlist is actually active and selected in foobar. What foobar version do you use? Any plug-ins that affect playlists?

AMIP - the complete now playing plug-in

Reply #224
only advanced control plugin, version 0.91