Mp3Play
 properties
 commands
 events
 error
Picture
 commands

AboutBox ( ) shows about box

Authorize ( Name, Password ) enter the license name and password
OK ReturnValue = 0 else 5

ReturnValue = Mp3Play1.Authorize(``Password", ``Keyword")

Open ( Inputfile, Outputfile ) opens mpeg audio file.
If playback on sound card then outputfile = ``"
If write as wave file then outputfile = wavefile name
returned 0 if OK else Errorcode

ReturnValue = Mp3Play1.Open(``C:\Song.mp3", "")
or
ReturnValue = Mp3Play1.Open(``C:\Song.mp3", "C:\Song.wav")

Close: Closed the mp3-file

ChannelMode: 0-stereo, 1-left, 2-right, 3-mono.

DelTag: Delete the complete tag entry

GetAlbum: Returns the name of the album

GetArtist: Returns the name of the artist

GetComment: Returns the comment from the mp3 file

GetDevName (Device): Returned product name of the device.

GetDevParam (Device): Returned supported formats of the device. The following values are hexadecimal and decimal. If several formats are supported, the sum of the formats is returned.

0x00000000 = 0 invalid format
0x00000001 = 1 11.025 kHz, Mono, 8-bit
0x00000002 = 2 11.025 kHz, Stereo, 8-bit
0x00000004 = 4 11.025 kHz, Mono, 16-bit
0x00000008 = 8 11.025 kHz, Stereo, 16-bit
0x00000010 = 16 22.05 kHz, Mono, 8-bit
0x00000020 = 32 22.05 kHz, Stereo, 8-bit
0x00000040 = 64 22.05 kHz, Mono, 16-bit
0x00000080 = 128 22.05 kHz, Stereo, 16-bit
0x00000100 = 256 44.1 kHz, Mono, 8-bit
0x00000200 = 512 44.1 kHz, Stereo, 8-bit
0x00000400 = 1024 44.1 kHz, Mono, 16-bit
0x00000800 = 2048 44.1 kHz, Stereo, 16-bit

GetFrameCount: Returned number of frames of the wavefile.

GetGenre: Returns the genre

GetGenreString(i): Returns the Text to the Genre i.

GetHasTag: Return true if mp3 file has tag entry

GetNumDevs: Returned number of existing devices in this system.

GetOutDevice: Returned the selected Output-Device.

GetTitle: Returns the mp3 song title

GetVolumeLeft,GetVolumeRight: Returned System Wave volume as long ( 0 - 65536 ).

GetVolumeLeftP,GetVolumeRightP: Returned System Wave volume as percent ( 0 - 100 ).

GetWaveLengthSecs: Returned the full runtime of the wavefile in seconds.

GetYear: Returns or set the year of the mp3 song

Pause ( ) Toggle to Pause-Mode 1. time pause, 2. time play

Play ( ) Start Decoder-Thread.
If OK ReturnValue = 0

PlayFromTo (FrameA, FrameB): Start Decoder-Thread at a specified FrameA and play to FrameB. The largest possible value of FrameB you can get with GetFrameCount. If OK Return Value = 0

PlayFromToS (SecondA, SecondB): Start the wavefile at SecondA and play to SecondB. The largest possible value of SecondB you can get with GetWaveLengthSecs. If OK Return Value = 0

Seek ( Frame ) Seek to frame

SetAlbum(Album): Sets the name of the album

SetArtist(Artist): Sets the name of the artist

SetComment(Comment): Sets the comment from the mp3 file

SetErrorMode (Errormode ) SetErrorMode() set the error handling.
If Errormode = 0 then return = errorcode
If Errormode <> 0 then error return
COleControl::FireError ( ) or
COleControl::ThrowError ( )

SetOutDevice (Device): Select one of the existing system-devices.

SetSpeed (short Percent) You can regulate the speed of play in percent, 100% is normal, 50% means the half duration, therefore the double speed. The maximal possible Speed is 50%, the minimal possible Speed 1000% .

SetTitle (Title): Sets the mp3 song title

SetVolume: Set the System Wave volume ( left channel, right channel ) long. ( 0- 65536 ) The wavefile must be opened before.

ReturnValue = Mp3Play1.SetVolume(32768,32768)

SetVolumeP: Set the System Wave volume ( left channel, right channel ) integer ( 0 - 100 ). The wavefile must be opened before.

ReturnValue = Mp3Play1.SetVolumeP(50, 50)

SetYear(Year): Sets the year of the mp3-song

Stop ( ) Stop playback and decoding.
Returned 0 if OK, else Errorcode

WriteTag: Write the tag ( details set with properties ), if the mp3-File is opened by the Player, you first have to call Close.

ReturnValue = Mp3Play1.Seek( 0 )

 


[Mp3Play] [Manual]