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 

WAVE file settings

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia
View previous topic :: View next topic  
Author Message
MK
Guest





PostPosted: Fri Aug 04, 2006 12:06 am    Post subject: WAVE file settings Reply with quote



Hello,

How do I set the wave file output?
By that I mean, how do I tell Delphi using DSPack that the output wav file
should be 16 bit, 44100Hz, 2Ch/Stereo?

Thanks,
SA
Back to top
Tsviatko Jongov
Guest





PostPosted: Fri Aug 04, 2006 8:12 am    Post subject: Re: WAVE file settings Reply with quote



Hi,
By setting the Default Sound Capture filter settings to 16 bit, 44100
Hz, stereo.
After this filter you must connect WAVDest filter, which will add WAV
header data to the stream and FileWriter, which will write your wave
file.

Regards,
Tsviatko Jongov


MK написа:
Quote:
Hello,

How do I set the wave file output?
By that I mean, how do I tell Delphi using DSPack that the output wav file
should be 16 bit, 44100Hz, 2Ch/Stereo?

Thanks,
SA
Back to top
Riki Wiki
Guest





PostPosted: Sat Aug 05, 2006 12:47 am    Post subject: Re: WAVE file settings Reply with quote



On 3 Aug 2006 23:08:24 -0700, Tsviatko Jongov wrote:

Quote:
Hi,
By setting the Default Sound Capture filter settings to 16 bit, 44100
Hz, stereo.
After this filter you must connect WAVDest filter, which will add WAV
header data to the stream and FileWriter, which will write your wave
file.

Hoi Tsviatko

Good answer, but unfortunately MK will not see it, because you posted on
Google Groups, that means your answer is invisible to MK and most other
people that reads these groups. You need to repost it on the Borland news
server.

How to post to Delphi newsgroups:
<http://delphi.wikia.com/wiki/Delphi_Newsgroups>
Back to top
Tsviatko Jongov
Guest





PostPosted: Sat Aug 05, 2006 5:46 pm    Post subject: Re: WAVE file settings Reply with quote

Hi,
By setting the Default Sound Capture filter settings to 16 bit, 44100
Hz, stereo.
After this filter you must connect WAVDest filter, which will add WAV
header data to the stream and FileWriter, which will write your wave
file.

Regards,
Tsviatko Jongov



"MK" <mk_astrotel (AT) hotmail (DOT) com> wrote:
Quote:
Hello,

How do I set the wave file output?
By that I mean, how do I tell Delphi using DSPack that the output wav file
should be 16 bit, 44100Hz, 2Ch/Stereo?

Thanks,
SA

Back to top
Tsviatko Jongov
Guest





PostPosted: Sat Aug 05, 2006 5:47 pm    Post subject: Re: WAVE file settings Reply with quote

Thanks Riki.

Riki Wiki написа:
Quote:
On 3 Aug 2006 23:08:24 -0700, Tsviatko Jongov wrote:

Hi,
By setting the Default Sound Capture filter settings to 16 bit, 44100
Hz, stereo.
After this filter you must connect WAVDest filter, which will add WAV
header data to the stream and FileWriter, which will write your wave
file.

Hoi Tsviatko

Good answer, but unfortunately MK will not see it, because you posted on
Google Groups, that means your answer is invisible to MK and most other
people that reads these groups. You need to repost it on the Borland news
server.

How to post to Delphi newsgroups:
http://delphi.wikia.com/wiki/Delphi_Newsgroups
Back to top
MK
Guest





PostPosted: Sun Aug 06, 2006 2:43 am    Post subject: Re: WAVE file settings Reply with quote

Thanks for the reply!

Just to make it clear I've got 2 filters, FileSource and FileWriter which
connect to each other.

What I need to do is add a third filter called WAVDEST and in it's
properties (viewed by double clicking the filter) set the output type (16
bit, 44.1khz, stereo).

Then I make the FileSource filter connect to WAVDEST and WAVDEST to
FileWriter, is this correct?

Regards,
SA

"Tsviatko Jongov" <johngov (AT) yahoo (DOT) com> wrote in message
news:44d49320$1 (AT) newsgroups (DOT) borland.com...
Quote:

Hi,
By setting the Default Sound Capture filter settings to 16 bit, 44100
Hz, stereo.
After this filter you must connect WAVDest filter, which will add WAV
header data to the stream and FileWriter, which will write your wave
file.

Regards,
Tsviatko Jongov



"MK" <mk_astrotel (AT) hotmail (DOT) com> wrote:
Hello,

How do I set the wave file output?
By that I mean, how do I tell Delphi using DSPack that the output wav file
should be 16 bit, 44100Hz, 2Ch/Stereo?

Thanks,
SA


Back to top
Tsviatko Jongov
Guest





PostPosted: Sun Aug 06, 2006 11:29 pm    Post subject: Re: WAVE file settings Reply with quote

Hi,
From your first letter I thought that you want to capture audio data from default sound capture filter.

Now I see that you want to convert existing wave file to 44.1 KHz, 16 bps, stereo wave file. If that is correct, you'll need an audio resampler filter. I don't know if there are any free resampling filters, so you must write your own.

WaveDest filter takes care only for the wave file header and doesn't tuch the audio data.

Regards,
Tsviatko Jongov
tsviatko.jongov.com



"MK" <mk_astrotel (AT) hotmail (DOT) com> wrote:
Quote:
Thanks for the reply!

Just to make it clear I've got 2 filters, FileSource and FileWriter which
connect to each other.

What I need to do is add a third filter called WAVDEST and in it's
properties (viewed by double clicking the filter) set the output type (16
bit, 44.1khz, stereo).

Then I make the FileSource filter connect to WAVDEST and WAVDEST to
FileWriter, is this correct?

Regards,
SA

"Tsviatko Jongov" <johngov (AT) yahoo (DOT) com> wrote in message
news:44d49320$1 (AT) newsgroups (DOT) borland.com...

Hi,
By setting the Default Sound Capture filter settings to 16 bit, 44100
Hz, stereo.
After this filter you must connect WAVDest filter, which will add WAV
header data to the stream and FileWriter, which will write your wave
file.

Regards,
Tsviatko Jongov



"MK" <mk_astrotel (AT) hotmail (DOT) com> wrote:
Hello,

How do I set the wave file output?
By that I mean, how do I tell Delphi using DSPack that the output wav file
should be 16 bit, 44100Hz, 2Ch/Stereo?

Thanks,
SA




Back to top
MK
Guest





PostPosted: Mon Aug 07, 2006 5:54 pm    Post subject: Re: WAVE file settings Reply with quote

Hi, thanks for the reply!

I've got the resampling filter written/coded and I can even output it to wav
but the only problem I had was sometimes the wav file produced would be in
mono and sometimes in stereo. That's why I wanted to know if there was a
way to guarantee the output is always in stereo.

SA


"Tsviatko Jongov" <johngov (AT) yahoo (DOT) com> wrote in message
news:44d6350e$1 (AT) newsgroups (DOT) borland.com...
Quote:

Hi,
From your first letter I thought that you want to capture audio data from
default sound capture filter.

Now I see that you want to convert existing wave file to 44.1 KHz, 16 bps,
stereo wave file. If that is correct, you'll need an audio resampler
filter. I don't know if there are any free resampling filters, so you must
write your own.

WaveDest filter takes care only for the wave file header and doesn't tuch
the audio data.

Regards,
Tsviatko Jongov
tsviatko.jongov.com



"MK" <mk_astrotel (AT) hotmail (DOT) com> wrote:
Thanks for the reply!

Just to make it clear I've got 2 filters, FileSource and FileWriter which
connect to each other.

What I need to do is add a third filter called WAVDEST and in it's
properties (viewed by double clicking the filter) set the output type (16
bit, 44.1khz, stereo).

Then I make the FileSource filter connect to WAVDEST and WAVDEST to
FileWriter, is this correct?

Regards,
SA

"Tsviatko Jongov" <johngov (AT) yahoo (DOT) com> wrote in message
news:44d49320$1 (AT) newsgroups (DOT) borland.com...

Hi,
By setting the Default Sound Capture filter settings to 16 bit, 44100
Hz, stereo.
After this filter you must connect WAVDest filter, which will add WAV
header data to the stream and FileWriter, which will write your wave
file.

Regards,
Tsviatko Jongov



"MK" <mk_astrotel (AT) hotmail (DOT) com> wrote:
Hello,

How do I set the wave file output?
By that I mean, how do I tell Delphi using DSPack that the output wav
file
should be 16 bit, 44100Hz, 2Ch/Stereo?

Thanks,
SA





Back to top
Tsviatko Jongov
Guest





PostPosted: Tue Aug 08, 2006 8:11 am    Post subject: Re: WAVE file settings Reply with quote

Hi,
You can check your resampler filter output pin's media type before connecting it to the file writer filter. The Format filed must be WAVFormatEx structure and the nChannels will give you if the output wave file will be mono or stereo. If it is mono you can write a transform filter which will convert mono data to stereo (you can add silence in the new channel or double the existing channel). You can also embed this code in your resampler filter.

Regards,
Tsviatko Jongov



"MK" <mk_astrotel (AT) hotmail (DOT) com> wrote:
Quote:
Hi, thanks for the reply!

I've got the resampling filter written/coded and I can even output it to wav
but the only problem I had was sometimes the wav file produced would be in
mono and sometimes in stereo. That's why I wanted to know if there was a
way to guarantee the output is always in stereo.

SA


"Tsviatko Jongov" <johngov (AT) yahoo (DOT) com> wrote in message
news:44d6350e$1 (AT) newsgroups (DOT) borland.com...

Hi,
From your first letter I thought that you want to capture audio data from
default sound capture filter.

Now I see that you want to convert existing wave file to 44.1 KHz, 16 bps,
stereo wave file. If that is correct, you'll need an audio resampler
filter. I don't know if there are any free resampling filters, so you must
write your own.

WaveDest filter takes care only for the wave file header and doesn't tuch
the audio data.

Regards,
Tsviatko Jongov
tsviatko.jongov.com



"MK" <mk_astrotel (AT) hotmail (DOT) com> wrote:
Thanks for the reply!

Just to make it clear I've got 2 filters, FileSource and FileWriter which
connect to each other.

What I need to do is add a third filter called WAVDEST and in it's
properties (viewed by double clicking the filter) set the output type (16
bit, 44.1khz, stereo).

Then I make the FileSource filter connect to WAVDEST and WAVDEST to
FileWriter, is this correct?

Regards,
SA

"Tsviatko Jongov" <johngov (AT) yahoo (DOT) com> wrote in message
news:44d49320$1 (AT) newsgroups (DOT) borland.com...

Hi,
By setting the Default Sound Capture filter settings to 16 bit, 44100
Hz, stereo.
After this filter you must connect WAVDest filter, which will add WAV
header data to the stream and FileWriter, which will write your wave
file.

Regards,
Tsviatko Jongov



"MK" <mk_astrotel (AT) hotmail (DOT) com> wrote:
Hello,

How do I set the wave file output?
By that I mean, how do I tell Delphi using DSPack that the output wav
file
should be 16 bit, 44100Hz, 2Ch/Stereo?

Thanks,
SA







Back to top
MK
Guest





PostPosted: Fri Aug 11, 2006 3:23 am    Post subject: Re: WAVE file settings Reply with quote

Thank you for all your help! I will give that a try!

Regards,
SA

"Tsviatko Jongov" <johngov (AT) yahoo (DOT) com> wrote in message
news:44d832db$1 (AT) newsgroups (DOT) borland.com...
Quote:

Hi,
You can check your resampler filter output pin's media type before
connecting it to the file writer filter. The Format filed must be
WAVFormatEx structure and the nChannels will give you if the output wave
file will be mono or stereo. If it is mono you can write a transform
filter which will convert mono data to stereo (you can add silence in the
new channel or double the existing channel). You can also embed this code
in your resampler filter.

Regards,
Tsviatko Jongov



"MK" <mk_astrotel (AT) hotmail (DOT) com> wrote:
Hi, thanks for the reply!

I've got the resampling filter written/coded and I can even output it to
wav
but the only problem I had was sometimes the wav file produced would be in
mono and sometimes in stereo. That's why I wanted to know if there was a
way to guarantee the output is always in stereo.

SA


"Tsviatko Jongov" <johngov (AT) yahoo (DOT) com> wrote in message
news:44d6350e$1 (AT) newsgroups (DOT) borland.com...

Hi,
From your first letter I thought that you want to capture audio data
from
default sound capture filter.

Now I see that you want to convert existing wave file to 44.1 KHz, 16
bps,
stereo wave file. If that is correct, you'll need an audio resampler
filter. I don't know if there are any free resampling filters, so you
must
write your own.

WaveDest filter takes care only for the wave file header and doesn't
tuch
the audio data.

Regards,
Tsviatko Jongov
tsviatko.jongov.com



"MK" <mk_astrotel (AT) hotmail (DOT) com> wrote:
Thanks for the reply!

Just to make it clear I've got 2 filters, FileSource and FileWriter
which
connect to each other.

What I need to do is add a third filter called WAVDEST and in it's
properties (viewed by double clicking the filter) set the output type
(16
bit, 44.1khz, stereo).

Then I make the FileSource filter connect to WAVDEST and WAVDEST to
FileWriter, is this correct?

Regards,
SA

"Tsviatko Jongov" <johngov (AT) yahoo (DOT) com> wrote in message
news:44d49320$1 (AT) newsgroups (DOT) borland.com...

Hi,
By setting the Default Sound Capture filter settings to 16 bit, 44100
Hz, stereo.
After this filter you must connect WAVDest filter, which will add WAV
header data to the stream and FileWriter, which will write your wave
file.

Regards,
Tsviatko Jongov



"MK" <mk_astrotel (AT) hotmail (DOT) com> wrote:
Hello,

How do I set the wave file output?
By that I mean, how do I tell Delphi using DSPack that the output wav
file
should be 16 bit, 44100Hz, 2Ch/Stereo?

Thanks,
SA








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