flat assembler
Message board for the users of flat assembler.
Index
> Windows > How to produce sound on PC Speaker ? Goto page 1, 2 Next |
Author |
|
vbVeryBeginner 10 Jun 2006, 21:37
check http://www.codeproject.com/audio/MidiPorts.asp?df=100&forumid=4425&exp=0&fr=26
how about converting it to fasm source |
|||
10 Jun 2006, 21:37 |
|
sylwek32 10 Jun 2006, 22:03
sorry.. you havnt understand me..
i mean the INTERNAL PC SPEAKER which is on every pc´s board and produces the beep on the bootup post process.. |
|||
10 Jun 2006, 22:03 |
|
UCM 10 Jun 2006, 22:27
Well, as far as I know, Windows provides very very few facilities for creating sounds on the PC speaker. Maybe a series of Beeps and Sleeps could work, but would be very complicated.
|
|||
10 Jun 2006, 22:27 |
|
sylwek32 10 Jun 2006, 22:37
Here i made a simple test wich uses the windows beep command..
But its sh|tty ^^ RAR Password is sylwek32
|
|||||||||||
10 Jun 2006, 22:37 |
|
Quantum 11 Jun 2006, 03:11
2 UCM:
You get less restrictive access to PC speaker in DOS (DVM also works fine). It's possible sequencing the basic notes to make some lo-fi midi-like tunes. The only problem is timing an appripriate delay, because it depend's on CPU clock. There was a nice DOS music player in some of the older topics @ wasm.ru, but it's not available now |
|||
11 Jun 2006, 03:11 |
|
sylwek32 11 Jun 2006, 13:26
wasm.ru says "due to anonimous (no one claimed responsibility) DDoS-attack made by unknown terrorists we had to move to another place. check within fortnight."
Does somebody know the new url ? |
|||
11 Jun 2006, 13:26 |
|
Quantum 11 Jun 2006, 15:25
2 sylwek32:
Quote:
It's not a mirror of the old wasm, but a new forum-centric project. |
|||
11 Jun 2006, 15:25 |
|
saigon 11 Jun 2006, 18:13
I found something interesting:
http://www.cubic.org/player/screenshot.html It looks like a very promising engine, but I haven't tested it. It should play MP3's propably on a PC speaker (which does the beeps) |
|||
11 Jun 2006, 18:13 |
|
Tomasz Grysztar 11 Jun 2006, 18:33
It was (and perhaps still is) a really great player for DOS, however it didn't support PC speaker as an output.
I recall the Interia Player did support PC speaker output and was said to be 100% assembly code, however the source was never released to the public. |
|||
11 Jun 2006, 18:33 |
|
rugxulo 11 Jun 2006, 18:58
I'd suggest searching http://www.sac.sk (under /SOUND/) for something since they have lots of MOD player stuff, some with source, etc.
Or, try the following (no source, and I personally couldn't get to work): Quote: MP3PC.EXE 70,021 bytes DOS32 |
|||
11 Jun 2006, 18:58 |
|
Tomasz Grysztar 11 Jun 2006, 19:18
Here's some nice library: http://www.programmersheaven.com/zone10/cat135/15982.htm (pure DOS only, however, and it seems to lack the complete sources).
As for Windows, there's a driver for Win95/98/Me that allows to play samples on PC speaker: http://support.microsoft.com/kb/q138857/ It's hard to find something with full source code, however. |
|||
11 Jun 2006, 19:18 |
|
sylwek32 11 Jun 2006, 22:23
@all:
Thank you very much for your help.. @rugxulo Doesnt work But thanks.. @tomasz: the lib is nice , but i have no "c" and i know the win driver... but it hungs the pc.. |
|||
11 Jun 2006, 22:23 |
|
sylwek32 11 Jun 2006, 22:27
Does somebody know a website where i can download C ?
|
|||
11 Jun 2006, 22:27 |
|
Quantum 12 Jun 2006, 00:41
2 sylwek32: Do you mean a C compiler? Which one?
Visual C/C++: http://msdn.microsoft.com/vstudio/express/visualc/ Borland C++: http://www.borland.com/downloads/download_cbuilder.html GCC: Well, It comes with Cygwin, AFAIR. Intel C/C++: Not free |
|||
12 Jun 2006, 00:41 |
|
blacky 12 Jun 2006, 01:08
|
|||
12 Jun 2006, 01:08 |
|
Vasilev Vjacheslav 13 Jun 2006, 08:16
also search for LCC (free c compiler)
|
|||
13 Jun 2006, 08:16 |
|
rugxulo 14 Jun 2006, 20:55
http://www.freebasic.net/forum/viewtopic.php?t=2702&highlight=speaker
P.S. FreeBASIC 0.16 has been released! |
|||
14 Jun 2006, 20:55 |
|
kohlrak 22 Jul 2006, 09:40
Can't copy any of the code there... IT has syntax errors and i don't know enough about ASM to edit out the syntax errors...
|
|||
22 Jul 2006, 09:40 |
|
yetifoot 23 Jul 2006, 02:41
Hello, I was the poster of the mentioned FreeBASIC/ASM code. I basically borrowed from two websites. Maybe these will help. They only do simple beep with freq/duration, but perhaps you can modify them to work the way you want. Something to note though is that only admins on modern windows can do port access (without some hack), so in that instance i used the Beep function in the WinAPI.
http://www.frontiernet.net/~fys/snd.htm http://delphi.about.com/cs/adptips2003/a/bltip0303_3.htm |
|||
23 Jul 2006, 02:41 |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.