Play a frequency...

DOS specific questions.
yuri
Posts: 110
Joined: Jul 31, 2005 15:28
Location: BRASIL

Play a frequency...

Postby yuri » Dec 05, 2005 15:00

I want to play a frequency not with the PC Speaker, but with the normal speakers. How do i send a information to the sound card to tell that i want to play a frequency? (Without a DLL, please)

...yuri
DOS386
Posts: 798
Joined: Jul 02, 2005 20:55

RE: Play a frequency...

Postby DOS386 » Dec 07, 2005 17:59

"I want to play a frequency not with the PC Speaker"

Well, some base info (I am NOT an expert):

2 Possibilities:

1. Using a driver: Is a driver available for your card ?
Do you have a programm working with it ?
Then check the driver developer manual or some SB16 example code.

2. Direct access: BETTER, no diver bugging, but difficult:
Check MPXPLAY source.

"Without a DLL, please"

No problem, CWSDPMI does NOT support DLL's. :D

Sound in DOS is a problem, there is no standard,
F**K "Creative" & other sound cards developers :-(
yuri
Posts: 110
Joined: Jul 31, 2005 15:28
Location: BRASIL

Postby yuri » Dec 09, 2005 17:53

Can you give me a short example?

...yuri
DOS386
Posts: 798
Joined: Jul 02, 2005 20:55

Sound in DOS

Postby DOS386 » Dec 16, 2005 23:07

Can you give me a short example?

...yuri


Sorry, I can't.

1. You failed to provide needed info's (sound card type / chip, existence
of a driver)

2. I am not an expert about this topic (it is NOT trivial :-( )
There are only few ressources, as far as I know the best / only one
is MPXPLAY.

www.mpxplay.net

Well, there would be a workaround, if you do NOT INSIST on real-time
playing:

Instead writing data into the soundcard, write it into a file (.WAV) and
play it later using MPXPLAY. :-)
Antoni
Posts: 1393
Joined: May 27, 2005 15:40
Location: Barcelona, Spain

Postby Antoni » Dec 18, 2005 12:10

Most examples use the Soundblaster 16 interface (one of the few published) so your card should comply with it. If not, forget it, switch to Windows and use the multimedia dll's. Another solution is running your programs in Windows, using the Dos box provided by vdmsound http://sourceforge.net/projects/vdmsound/
it will use the multimedia dll's to make any card compatible with the SB16

I don't know if the sound examples at ABC packets http://www.qbasicnews.com/abc/showpacke ... =SOUND.ABC
or at Toshi's page
http://www.ocf.berkeley.edu/~horie/project.html
will compile well in FB. Probably they will need some tweaking
yuri
Posts: 110
Joined: Jul 31, 2005 15:28
Location: BRASIL

Postby yuri » Dec 19, 2005 13:40

I will try the links

...yuri
DOS386
Posts: 798
Joined: Jul 02, 2005 20:55

SOUND in DOS

Postby DOS386 » Dec 20, 2005 7:53

Most examples use the Soundblaster 16 interface (one of the few published) so your card should comply with it. If not, forget it, switch to Windows and use the multimedia dll's.


Sorry but this is a BAD idea. This would mean DOS to be unusable.

Another solution is running your programs in Windows, using the Dos box provided by vdmsound http://sourceforge.net/projects/vdmsound/
it will use the multimedia dll's to make any card compatible with the SB16"


Sorry but this is even WORSE. Running DOS software in a "BOX"
or even developing it extra for the "BOX" (with compilers "optimized"
for the "BOX" instead of DOS) ruins DOS developement.

I don't know if the sound examples at ABC packets http://www.qbasicnews.com/abc/showpacke ... =SOUND.ABC
or at Toshi's page
http://www.ocf.berkeley.edu/~horie/project.html
will compile well in FB. Probably they will need some tweaking


This might be an aproach ... but it definitely needs MUCH tweaking
because of the 16-bit-real vs 32-bit-DPMI .

SOUND definitely IS POSSIBLE in DOS, but, unfortunately, it is difficult and
there is a lack of people having knowledge, motivation and time to
create good drivers, or includable source code.



I will try the links

...yuri


You also might try to post more information about your sound card and
your intention.
cha0s
Site Admin
Posts: 5317
Joined: May 27, 2005 6:42
Location: Illinois
Contact:

Postby cha0s » Dec 20, 2005 8:38

guess what? we have fb cuz dos is dead. enough said, flame away, dinosaurs.
DOS386
Posts: 798
Joined: Jul 02, 2005 20:55

dead chaos

Postby DOS386 » Dec 20, 2005 8:49

cha0s wrote:cuz dos is dead. enough said, flame away, dinosaurs.


OK. flame away, worm, and do not post in the DOS subforum.

Return to “DOS”

Who is online

Users browsing this forum: No registered users and 0 guests