19 Jun '13 - 14:42 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: xmplay control dde, provide song with length and name  (Read 1538 times)
Elrinth
Posts: 103


« on: 23 May '11 - 09:50 »
Reply with quoteQuote

Trying to get control over XMPLAY via DDE.
I got it working via both dde_run, and cmcdde. I decided to use cmcdde as it's alittle shorter argumentlist. Tongue
My question is: is there any way to set length and NAME of track and subtrack id?
Or will I have to provide a m3u list then?
If so, how would such a list look? (I think I asked about such a list before, but I don't remember Tongue)
Let's say I want to play a .nsf and the subsong 2 and I want it to end after 2 minutes. (maybe I can also specify when it should start? like if there is an intro of no sound?)
I take it's something like this:
$pathNfileWithinQuotes $titleWithinQuotes $subSongNr $songLengthInMilliSec $startAfterMilliSec
"c:\song.nsf" "[NES]Hip Tanaka - Kid Icarus song nr2" 2 20000 1000

Thanks for any help!

Edit: Regarding m3u (searched old threads):
Extended playlist source

Example:
filename::NSF,[1 based songno|$songno],[title],[time(h:m:s)],[loop(h:m:s)][-],[fade(h:m:s)],[loopcount]
Fantasm Soldier Valis (PSG).kss::KSS,$09,Fantasm Soldier Valis - PSG (MSX) (C)Telenet [ Miss Blue ],1:34,,3

Can this be also be applied to mp3 inside zip? Like I only want to play the second mp3 inside the zip?
Or are these m3u limited to NEZplug?
« Last Edit: 23 May '11 - 14:06 by Elrinth » Logged
Ian @ un4seen
Administrator
Posts: 15363


« Reply #1 on: 23 May '11 - 16:01 »
Reply with quoteQuote

I don't think there is currently any way to open a particular archive entry directly via DDE (I'll look into it), but it should be possible via a temporary M3U file (which you can open via DDE), as you suggest. The contents of the M3U file would look something like this: "c:\path\archive.zip|entry.mp3".
Logged
Elrinth
Posts: 103


« Reply #2 on: 23 May '11 - 16:45 »
Reply with quoteQuote

thank you very much, that will do just great Smiley
Logged
Ian @ un4seen
Administrator
Posts: 15363


« Reply #3 on: 26 May '11 - 13:14 »
Reply with quoteQuote

Here's an update that should allow archive entries to be provided directly via DDE (as well as OLE and the command-line)...

   www.un4seen.com/stuff/xmplay.exe
Logged
Elrinth
Posts: 103


« Reply #4 on: 27 May '11 - 10:51 »
Reply with quoteQuote

this is great, I'll give it a try now on lunch.

tried it with the dde and it works great! Smiley
"C:\Program Files (x86)\xmplay\CMCDDE.EXE" xmplay system [list("C:\Program Files (x86)\xmplay\test.zip|0029. Elrinth_foreign_3.0_mashed_BA_DownMix2.mp3")]

Also tried with m3u and it worked great! Smiley
"C:\Program Files (x86)\xmplay\CMCDDE.EXE" xmplay system [list("C:\Program Files (x86)\xmplay\test.m3u")]
the m3u file:
C:\Program Files (x86)\xmplay\test.zip|0029. Elrinth_foreign_3.0_mashed_BA_DownMix2.mp3

one note: adding quotes around file path in m3u made it borken, like so:
"C:\Program Files (x86)\xmplay\test.zip|0029. Elrinth_foreign_3.0_mashed_BA_DownMix2.mp3"

Let's say I want to give the song a custom name to the song in the m3u? is this possible or can you make it possible? Normally it's okay if it grabs artist / title from a mp3. But sometimes there is wrong info or no info at all. And even more so for module files.
C:\Program Files (x86)\xmplay\test.zip|0029. Elrinth_foreign_3.0_mashed_BA_DownMix2.mp3::"Elrinth - Forgein Girl 3.0 (BitArts Mix)"
« Last Edit: 27 May '11 - 12:29 by Elrinth » Logged
Ian @ un4seen
Administrator
Posts: 15363


« Reply #5 on: 27 May '11 - 15:18 »
Reply with quoteQuote

It is possible to provide a title in an M3U file (using the "#EXTM3U" form), but it would be overridden by the file's tags (or tags stored in the library). If there are no tags though, then the provided title should survive.
Logged
Elrinth
Posts: 103


« Reply #6 on: 30 May '11 - 10:16 »
Reply with quoteQuote

EXTM3U syntax:
http://en.wikipedia.org/wiki/M3U

Now I check "options and stuff" in xmplay and check Titles section. (there is a "condtional", I'm guess conditional)
By default it is:  %?2{%2 - }%?1{%1|%0}

Would be awesome if I could set: grab title from m3u as first here. Is this something possible, or would it screw things up?
Logged
Ian @ un4seen
Administrator
Posts: 15363


« Reply #7 on: 31 May '11 - 15:02 »
Reply with quoteQuote

That isn't currently possible, but perhaps something can be arranged, eg. a way to mark a playlist entry as having locked tags so that XMPlay doesn't try to refresh them. That could probably only be applied to the PLS format though, which is more flexible/extensible than M3U. I'll look into it.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines