|
|
Rockbox mail archiveSubject: Re: Voice Box updatesRe: Voice Box updates
From: Jens Arnold <arnold-j_at_t-online.de>
Date: 2005-11-01
On 01.11.2005, Brian Wolven wrote:
> extension = LCase(Right(Name,3))
> If ((extension="mp3") or _
> isVoiced = true
> End If
That'll never match .flac files, because "extension" will be "lac"
My suggestion would be as follows:
extpos = InStrRev(Name, ".")
If (extpos > 0 and extpos < Len(Name)) Then
extension = LCase(Mid(Name, extpos + 1))
If ((extension = "mp2") or _
(extension = "mp1") or _
isVoiced = true
Ideally, the script should also be configurable for archos or iriver.
Hth, Jens
Page was last modified "Mar 9 2008" The Rockbox Crew |