 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Gilbert Guest
|
Posted: Mon Feb 14, 2005 3:58 am Post subject: noise when I play sound from db file |
|
|
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
|
Posted: Mon Feb 14, 2005 5:16 pm Post subject: Re: noise when I play sound from db file |
|
|
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
|
Posted: Mon Feb 28, 2005 8:40 pm Post subject: Re: noise when I play sound from db file |
|
|
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 |
|
 |
|
|
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
|
|