DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Position features added to WaveAudio(to check by Kambiz)&

 
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
ddantoni
Member


Joined: 05 Oct 2004
Posts: 4

PostPosted: 05/10/04 11:10    Post subject: Position features added to WaveAudio(to check by Kambiz)& Reply with quote

I have added SetPosition and GetPosition to StockAudioPlayer class.
Please, Kambiz can you check if the algorith is ok.
The modifications are in WavePlayers.

I have also modified :
function Percent2DWVolume(prVol: WORD): DWORD;
begin
Result := 0;
Result := MulDiv(prVol, $FFFF, 100);
Result := Result Or (Result ShL 16);
end;
because when we changed the volume, all sound was in left speaker.

And I have also developped a MP3Storage class that is inherited of TWaveStorage that Load MP3 to Stream and save Stream to MP3 file.

The component icon is in WaveReg.dcr
This is a beta version.

I'm currently develop TStockAudioPlayerRecorder that must allow to do a TMediaPlayer.

Thanks.
PS : Excuse for my very bad english, I am French.



Modif&MP3.zip;
 Description:

Download
 Filename:  Modif&MP3.zip;
 Filesize:  114.76 KB
 Downloaded:  35 Time(s)

Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 428
Location: Tehran, Iran

PostPosted: 06/10/04 09:10    Post subject: Reply with quote

Thanks a lot for these improvements.

I'll look at the code on this weekend and let you know.

Cheers for now,
Kambiz
Back to top
View user's profile Send e-mail Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 428
Location: Tehran, Iran

PostPosted: 22/10/04 11:47    Post subject: Reply with quote

Hi David,

Sorry for being so late.

Just today I could look at your code, well done, compliments!

Because MP3 stuff uses external dlls, if you don't mind I'll publish it as a third-party pack besides the main package.

Regarding to StockAudioPlayer, I couldn't get the usage of DSamplesPerSec property. Could you please describe this property? I'll put your answer in the component's documentation too.

Thank you very much,
Kambiz
Back to top
View user's profile Send e-mail Visit poster's website
ddantoni
Member


Joined: 05 Oct 2004
Posts: 4

PostPosted: 24/10/04 09:32    Post subject: Reply with quote

Hi Kambiz,

DSamplesPerSec property define speed/pitch of playback (sample rate of playback). I wrote this because Pitch property cannot be modify on my computer.

For MP3Storage, I will make it in production. So I will post final version soon.

GetPosition function is not right. I dont know why but when playback, Position advance and move back (we see the problem when we getposition in a slide bar).

For WavePlayerRecorder, I have correct lot of bugs and added some features. You can see getposition problem with this component and set OnPositionChange event to a procedure that move slide bar.

Thanks a lot,
David



WavePlayerRecorder.zip
 Description:

Download
 Filename:  WavePlayerRecorder.zip
 Filesize:  3.3 KB
 Downloaded:  37 Time(s)

Back to top
View user's profile
ddantoni
Member


Joined: 05 Oct 2004
Posts: 4

PostPosted: 25/10/04 08:35    Post subject: Reply with quote

There is a bug in TWaveAudioPlayerRecorder : this bug appear when we Play and Stop fastly.

Replace TMultimediaTimer to TTimer and delete line FPosTimer.Resolution
TMultimediaTimer bug if we change Enable proterty Fastly.
Back to top
View user's profile
ddantoni
Member


Joined: 05 Oct 2004
Posts: 4

PostPosted: 25/10/04 08:35    Post subject: Reply with quote

There is a bug in TWaveAudioPlayerRecorder : this bug appear when we Play and Stop fastly.

Replace TMultimediaTimer to TTimer and delete line FPosTimer.Resolution
TMultimediaTimer bug if we change Enable proterty Fastly.
Back to top
View user's profile
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group