BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

noise when I play sound from db file

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Gilbert
Guest





PostPosted: Mon Feb 14, 2005 3:58 am    Post subject: noise when I play sound from db file Reply with quote



I use delphi 6 ,xp
use Tmediaplayer,ado,dblookuplistbox

I created a program that gets a mp3 from db file and plays it. At first the
sound was great. Then (3 weeks ) later, the mp3 has a noise on it. I created
the db with MS access. I have not change the mp3 read procedure

I checked with MS access and it plays clear.


Back to top
Viatcheslav V. Vassiliev
Guest





PostPosted: Mon Feb 14, 2005 5:16 pm    Post subject: Re: noise when I play sound from db file Reply with quote



If you place mp3 into table using Access UI, it appends header info into
BLOB. For bitmaps, header is 78 bytes. If you write mp3 into table using
BLOB field, there is no header. I do not know how mp3 will sound if it is
prepended with Access OLE field header. Try to add one mp3 using Access UI
and another using TBlobField and compare how they sound.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Gilbert" <jinjeeh (AT) hotmail (DOT) com> сообщил/сообщила в новостях следующее:
news:421020ba$1 (AT) newsgroups (DOT) borland.com...
Quote:
I use delphi 6 ,xp
use Tmediaplayer,ado,dblookuplistbox

I created a program that gets a mp3 from db file and plays it. At first
the
sound was great. Then (3 weeks ) later, the mp3 has a noise on it. I
created
the db with MS access. I have not change the mp3 read procedure

I checked with MS access and it plays clear.





Back to top
Detlef Roъ
Guest





PostPosted: Mon Feb 28, 2005 8:40 pm    Post subject: Re: noise when I play sound from db file Reply with quote



Viatcheslav V. Vassiliev wrote:
Quote:
If you place mp3 into table using Access UI, it appends header info into
BLOB. For bitmaps, header is 78 bytes. If you write mp3 into table using
BLOB field, there is no header. I do not know how mp3 will sound if it is
prepended with Access OLE field header. Try to add one mp3 using Access UI
and another using TBlobField and compare how they sound.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Gilbert" <jinjeeh (AT) hotmail (DOT) com> сообщил/сообщила в новостях следующее:
news:421020ba$1 (AT) newsgroups (DOT) borland.com...

I use delphi 6 ,xp
use Tmediaplayer,ado,dblookuplistbox

I created a program that gets a mp3 from db file and plays it. At first
the
sound was great. Then (3 weeks ) later, the mp3 has a noise on it. I
created
the db with MS access. I have not change the mp3 read procedure

I checked with MS access and it plays clear.





Hi be carefully, I found that 78 byte is not allways the header length

because access stores the path information in this heading.
Here is the correct solution for pictures:
http://delphi.about.com/compute/delphi/library/weekly/aa030601a.htm

I hope it helps

Detlef Ross

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) 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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.