-=-
.
.....
  
 
RSS
Direkomendasikan menggunakan brower Opera/Chrome/Firefox. Resolusi minimal 1024x768 | Powered by ____ |
 
  
 
Nikmati Delphi-ID dalam berbagai versi tampilan :
Basic View (LOW Bandwidth)
Default View (Full)
Mobile Edition
Main Menu
..:: onWebTools ::..
..:: onLastPosts ::..
goto Postjumlah komponen maksimal dalam sebuah project(6)
 by d4mnf1y32
 on 21.May at 12:16
goto Posttanya grayscale to biner dengan scanline(1)
 by luckynvic
 on 20.May at 20:44
goto Posttanya looping biner to matriks(1)
 by luckynvic
 on 20.May at 20:10
goto Postsql error:acces denied for user....(2)
 by nasbms
 on 19.May at 16:54
goto Postpemanggilan frame(4)
 by nasbms
 on 19.May at 16:14
goto Posttanya AvLock(0)
 by azuriza
 on 19.May at 11:24
goto PostGet TDBEdit Value Menggunakan LookUp Grid(10)
 by henry_sys
 on 18.May at 11:27
goto Postmenghitung record dalam perulangan(4)
 by idhiel
 on 16.May at 13:53
goto Posttanya ascii(4)
 by mas_kofa
 on 16.May at 12:11
goto PostRawPrint Untuk Delphi XE2(0)
 by adewijaya
 on 15.May at 22:34
goto Postdatabase error..(4)
 by idhiel
 on 15.May at 15:57
goto Postbekasi, pt arila putra mahkota(3)
 by mas_kofa
 on 15.May at 15:37
goto Postbagaimana cara membaca file *.doc dg delphi?(0)
 by ficky
 on 15.May at 06:14
goto Posttanya biner to matriks(13)
 by diandewi
 on 14.May at 20:30

..:: onLast Articles ::..
..:: New Download ::..
Pascal-id.Org
Feeds -  Popular -  Latest
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: Perkenalan dan Absen
8 months, 3 weeks ago
RE: Alhamdulillah Buka Puasa Bersama
8 months, 3 weeks ago
RE: تَقَبَّلَ اللهُ مِنَّا وَمِنْكَ - Selamat Hari Raya Idul Fitri
8 months, 3 weeks ago
Lintas Situs
«
free web site stats and visitor tracking

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
tox2wowOffline
Location: Qnchay
Post subject: Nanya : TMediaPlayer  PostPosted: 25/Aug/2005 18:13
onKnowledgeable


Joined: 13-May-2005
Posts: 146
Location: Qnchay
Status: Offline
Kalo buat mainin TMediaPlayer, yang filenya diambil dari string, gimana ya ??? Misalnya, kita punya TMemo yang isinya 'Down To My Last', 'Broken Wings'. Tapi ini cuma string di TMemo tersebut. Terus file wav nya sendiri ada di folder 'MP3'. Untuk memainkan file tersebut menggunakan TMediaPlayer, gimana ya ??? Maksudnya untuk mengacu ke folder dan ke file sebenarnya dengan menggunakan string dari TMemo.

_________________
http://www.geocities.com/tox2wow/Sig.jpg
 
 View user's profile Send private message Send e-mail Yahoo Messenger  
Reply with quote Back to top
ZeALOffline
Location:
Post subject:   PostPosted: 26/Aug/2005 08:23
onProfessional


Joined: 07-Apr-2005
Posts: 763

Status: Offline
err....Logikanya aja ya... Ambil nama filenya dari memo trus tambahin embel2 ".wav" atau ".mp3" trus depannya tambahin embel2 path letak filenya.. trus tutup dulu TMediaPlayernya, Load filenya trus di play....
Tapi syaratnya nama file di memo harus sama dengan yang ada di drive dan path filenya harus diketahui...

_________________
do i know you?

[ My Blog : http://www.monyetpinter.com ] [ My RPG Project : http://einarc.wordpress.com ] [ FJBex : http://www.fjbex.com ]
 
 View user's profile Send private message  
Reply with quote Back to top
light_cc80Offline
Location: bandung
Post subject:   PostPosted: 26/Aug/2005 08:31
onConfident


Joined: 22-Aug-2005
Posts: 20
Location: bandung
Status: Offline
ya.. bener kata si ZeAL. (bravo ZeAL ^_^)

Tapi klo misalnya lo mo ambil file mp3 dari tempat/path yang berbeda2, lo bisa sync TMemo lo dengan TStrings. TMemo dipake buat kasi liat daftar judul lagunya. TStrings bisa lo pake buat list path files-nya.
 
 View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger  
Reply with quote Back to top
tox2wowOffline
Location: Qnchay
Post subject: Re : TMediaPlayer  PostPosted: 26/Aug/2005 18:54
onKnowledgeable


Joined: 13-May-2005
Posts: 146
Location: Qnchay
Status: Offline
yup .. yup ... terimakasah buat mas ZeAL dan mas cc80. Udah dicobain, and ternyata berhasil ... jadi malu nihhhh, kebanyakan ga taunya and kebanyakan nanya .. tapi seperti kata cyber_hecker, malu bertanya program error ... wakakaka Laughing

_________________
http://www.geocities.com/tox2wow/Sig.jpg
 
 View user's profile Send private message Send e-mail Yahoo Messenger  
Reply with quote Back to top
cyber_heckerOffline
Location: Ponti Hot City
Post subject:   PostPosted: 27/Aug/2005 15:40
onProfessional


Joined: 19-May-2005
Posts: 981
Location: Ponti Hot City
Status: Offline
wakakakakak.....
nah ternyata pada pinter semua neh . kok pada malu ngeluarin ilmunya. disini gue pengen nambah in dikit.
menurut ku kalo pengen mbikin program untuk menjalankan berbagai file mp3 ataupun film. kamu bisa memakai tree list dan file .ini. disini gue mo beri contoh sederhana. itung-itung buat nambah perbendaharaan logika kita
      Code:
unit uTreeData;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ComCtrls, ExtCtrls, MPlayer;

type
  TFTreeData = class(TForm)
    tvMain: TTreeView;
    MediaPlayer1: TMediaPlayer;
    panView: TPanel;
    procedure FormCreate(Sender: TObject);
    procedure tvMainChange(Sender: TObject; Node: TTreeNode);
  private
    { Private declarations }
    procedure DoINI;
  public
    { Public declarations }
    FTree : TStrings;
  end;

var
  FTreeData: TFTreeData;

implementation

uses IniFiles;

type
  TtvTreeItem = class
  private
    FFileName: string;
  public
    property FileName: string read FFileName write FFileName;
  end;

{$R *.dfm}

procedure TFTreeData.DoINI;
var
  Parent: TTreeNode;
  FileIni : TIniFile;
  Files : TStrings;
  i : Integer;
  sName, sValue, sFile : String;
  T : TtvTreeItem;
begin
  Parent := nil;
  tvMain.Items.Clear;
  FileIni := TIniFile.Create(ExtractFilePath(ParamStr(0))+'setting.ini');
  Files := TStringList.Create;
  try
    FileIni.ReadSectionValues('Tree',FTree);
    FileIni.ReadSectionValues('Files',Files);
    for i:=0 to FTree.Count - 1 do
    begin
      sName := FTree.Names[i];
      sValue:= FTree.Values[sName];
      if sValue <> '' then
        if sValue[1] = ' ' then
        begin
          tvMain.Items.AddChild(Parent, Trim(sValue));
        end else
          Parent := tvMain.Items.Add(nil,sValue);
      sFile := Files.Values[sName];
      T := TtvTreeItem.Create;
      T.FileName := sFile;
      FTree.Objects[i] := T;
    end;
  finally
    Files.Free;
    FileIni.Free;
  end;
end;

procedure TFTreeData.FormCreate(Sender: TObject);
begin
  FTree := TStringList.Create;
  DoIni;
  tvMain.FullExpand;
  tvMain.Selected := tvMain.Items.Item[0];
end;

procedure TFTreeData.tvMainChange(Sender: TObject; Node: TTreeNode);
var
  FilmCaption, aFileName: string;
begin
  FilmCaption := '';
  aFileName := TtvTreeItem(FTree.Objects[node.AbsoluteIndex]).FileName;
  try
    if aFileName <> '' then begin
      FilmCaption := Node.Text + '  ';
      Caption := 'Media Player - ' + FilmCaption;

      with MediaPlayer1 do begin
        FileName := aFileName;
        Open;
      end;
    end;
  except
    on e: Exception do
      MessageDlg(e.ClassName + #10#13+
        e.Message,mtError,[mbOK],0);
  end;
end;

end.

untuk file ini nya (setting.ini) diletakkan pada folder tempat program kita.
      Code:
[Localization]
Language=Indonesia
Author=CyberTech Corp.
Date=27.08.2005

[Tree]
01="Aplikasi Multi Media"
02="Film Aksi"
03="  Die Hard 3"
04="  Mission Impossible"
05="Film Kartun"
06="  Doraemon"
07="  DragonBall"
08="  Gundam"
09="Film Bokep"
10="  Vivid Video"
11="  Private Video"
12="  Asian4You"

[Files]
01=
02=
03=D:\ICDSee\Cleo1.DAT
04=D:\ICDSee\Cleo2.DAT
05=
06=c:\File1.mp3
07=c:\File2.mp3
08=c:\File3.mp3
09=
10=D:\ICDSee\PlayBoy.DAT
11=c:\anu.dat
12=c:\ihik2.dat

nanti akhirnya kayak gini deh...

_________________
 
 View user's profile Send private message Yahoo Messenger MSN Messenger  
Reply with quote Back to top
ZeALOffline
Location:
Post subject:   PostPosted: 29/Aug/2005 09:08
onProfessional


Joined: 07-Apr-2005
Posts: 763

Status: Offline
eh, bokepnya tolong di upload donk... Very Happy

_________________
do i know you?

[ My Blog : http://www.monyetpinter.com ] [ My RPG Project : http://einarc.wordpress.com ] [ FJBex : http://www.fjbex.com ]
 
 View user's profile Send private message  
Reply with quote Back to top
light_cc80Offline
Location: bandung
Post subject:   PostPosted: 29/Aug/2005 09:20
onConfident


Joined: 22-Aug-2005
Posts: 20
Location: bandung
Status: Offline
wakakakak.... bener2... kita2 lebih perlu bokep-nya.. huahahahaha =))
 
 View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger  
Reply with quote Back to top
inrasaragihOffline
Location:
Post subject:   PostPosted: 02/Oct/2006 21:41
onNewBie


Joined: 15-Sep-2006
Posts: 3

Status: Offline
Mas Gimana Kalau Media player yang kita buat nantinya menjadi autorun di CD
Yang pernah aku coba Error...
Bagaimana Dengan perintah load
ThanQ Buat Bantuannya
 
 View user's profile Send private message  
Reply with quote Back to top
inrasaragihOffline
Location:
Post subject:   PostPosted: 02/Oct/2006 21:45
onNewBie


Joined: 15-Sep-2006
Posts: 3

Status: Offline
Mas saya Mau nanya...!!!!
Dalam String Grid menurut pengalaman mas Mungkin gak dimasuki data real....
Soalnya Aku dah coba data yang diminta selalu Integer,

Masalahnya Kalo di ubah ke Integer nilainya berubah
saya mahasiswa teknik sipil universitas riau sedang skripsi...Judul Pemrograman penelusuran banjir metode muskingum dengan borlan delphi 7 tanh Q ya mas atas bantuannya
 
 View user's profile Send private message  
Reply with quote Back to top
pebbieOffline
Location: di dapur
Post subject:   PostPosted: 03/Oct/2006 10:24
onUber-Skilled


Joined: 16-Sep-2006
Posts: 459
Location: di dapur
Status: Offline
orang yang aneh.. ya bisa lah.. namanya string grid, apapun bisa masuk.. tingal di convert aja floattostr, sama strtofloat (hati-hati dengan setting lokalisasi pemisah desimal(koma atau titik))
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
wullyOffline
Location:
Post subject:   PostPosted: 04/Oct/2006 13:09
onBeginner


Joined: 04-Oct-2006
Posts: 4

Status: Offline
asyiikk..ikutan blajar delphi mas...!!! ;P
kangen ma delphi euy!!
 
 View user's profile Send private message  
Reply with quote Back to top
fafa
Location: djakarta macet+banjir
Post subject:   PostPosted: 17/Jan/2008 15:05
onSkilled


Joined: 14-Aug-2007
Posts: 88
Location: djakarta macet+banjir
swry kalo dah ada,,tapi pas dicari2 g ketemu,,

para bos ada yang tau g cara ngerekam suara, tpi buat nya dengn 2 btn,(g pake TmediaPlayer),yang satu buat merekam dan yang satu buat berhentiin...dan disave dengan format *.wav PCM 8 KHz Mono ??

thank before

_________________
__________________________________________________
=====================================

/\ - I wanna change my life to becoming programmer - /\
in order to change other perception about being betawiness
=====================================
__________________________________________________
 
 View user's profile Send private message Yahoo Messenger  
Reply with quote Back to top
mrzie05Offline
Location:
Post subject:   PostPosted: 07/Oct/2009 16:01
onConfident


Joined: 21-Oct-2006
Posts: 19

Status: Offline
Mas cyber_hecker, Kan Mas tadi kasih Coding menggunakan Tree dan File INI, nah gimana caranya Program tersebut bisa Repeat kayak WINAM...gimana tuh mas codingnya..?? makasih Pencerahannya..??
 
 View user's profile Send private message  
Reply with quote Back to top
mas_kofa
Location: New York Arto
Post subject:   PostPosted: 07/Oct/2009 16:36
onElite


Joined: 18-Mar-2006
Posts: 1753
Location: New York Arto
ya indexnya memo dibalikin ke nol ...........

_________________
Pay Per Day | Pesbuk
Me isn't mine
Aku Ini adalah satu

Cerdik seperti ular, Tulus seperti merpati
 
 View user's profile Send private message  
Reply with quote Back to top
mrzie05Offline
Location:
Post subject:   PostPosted: 09/Oct/2009 17:23
onConfident


Joined: 21-Oct-2006
Posts: 19

Status: Offline
      mas_kofa wrote:
ya indexnya memo dibalikin ke nol ...........
Maksudnya gimana ya mas_kofa....kan ga pake memo..???? ada contoh listingnya ga mas kalo make memo..????makasih atas pencerahannya...
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic





Powered by PNphpBB2 © 2003-2009 The Zafenio Team
Credits


| Register | Lost Password ? |