Jump to content

Audio Player


 Share

Recommended Posts

[size="3"][b][font="Comic Sans MS"]Selam arkadaşlar ben sitenizde yeni üye degilim aslında bu nikim yeni o yüzden yeni üye sayılırım? :D AMS ile Audio Player tasarlıyorum.Audio player de sorun var yardımlarınızı bekliyorum.Şimdiden teşekkür ederim herkese ...

1-) ListBox'a attıgım mp3'ler sırayla çalmıyor?
2-) Progress ilerlemiyor?
3-) Label3 ( zaman ) çalışmıyor? { Çalan Mp3'ün Label2 de isminin yanında kaç dakika kaç saniye oldugunu göstertmek istiyorum? }
4-) SliderEx'de de ses yükseltme ve alçaltmada sorunum var?
5-) Mp3 atlatma geri ve ileri tusu atmak istiyorum.

Projem:[/font][/b][/size]

[img]http://www.tnctr.com/uploads/imgs/pre_1308820195__proje.png[/img]

[b][size="3"][font="Comic Sans MS"]ListBox1 - On Double-Click Evresi:[/font][/size][/b]

[b][size="3"][font="Comic Sans MS"][codebox]tblSel = ListBox.GetSelected(this);
if tblSel then
local sLBData = ListBox.GetItemData(this, tblSel[1]);
Audio.Load(CHANNEL_BACKGROUND, sLBData, true, false);
local tblSplit = String.SplitPath(sLBData);
Label.SetText("Label2", tblSplit.Filename);

end[/codebox][/font][/size][/b]

[size="3"][b][font="Comic Sans MS"]On Timer Evresi:[/font][/b][/size]

[size="3"][font="Comic Sans MS"][b][codebox]if editexcellent then
nCurPos = Audio.GetCurrentPos(CHANNEL_BACKGROUND);
nGetLength = Audio.GetLength(CHANNEL_BACKGROUND);
Label.SetText("Label3", SecondsToClock(nCurPos));
Progress.SetCurrentPos("Progress1", (nCurPos/nGetLength)*100)
if Math.Round(nCurPos)== Math.Round(nGetLength) then
item = item + 1
itemdatasi = ListBox.GetItemData("ListBox1", item);
ListBox.DeselectItem("ListBox1", -1);
ListBox.SelectItem("ListBox1", item);
muzikcal(itemdatasi)
Application.Sleep(2000)
end
end[/codebox][/b][/font][/size]

[size="3"][font="Comic Sans MS"][b]On PreLoad Evresi:[/b][/font][/size]

[size="3"][font="Comic Sans MS"][b][codebox]result = Audio.GetVolume(CHANNEL_BACKGROUND);
SliderEx.SetRange("Plugin2", 0, 100);
Audio.SetVolume(CHANNEL_BACKGROUND, result);[/codebox][/b][/font][/size]

[size="3"][font="Comic Sans MS"][b]Gözat Butonu OnClick Evresi:[/b][/font][/size]

[size="3"][font="Comic Sans MS"][b][codebox]
dinle = Dialog.FolderBrowse("Mp3 Klasörünü seçin", _DesktopFolder)
StatusDlg.Show(0, false);
tblFiles = File.Find(dinle, "*.mp3", true, false, nil, nil);
ListBox.SetVisible("ListBox1", true);
Label.SetVisible("Label1", true);
Label.SetVisible("zaman", true);


if tblFiles then
for i,v in pairs (tblFiles) do
local tblSplit = String.SplitPath(v)
ListBox.AddItem("ListBox1", tblSplit.Filename, v);
end
end
StatusDlg.Hide();[/codebox][/b][/font][/size]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...