News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

32bit Tone Generation?

Started by ChillyWilly, February 26, 2010, 03:48:28 AM

Previous topic - Next topic

ChillyWilly

A little nostalgia here  :U
Is it possible to create different frequency tones in windows
there used to be old DOS,commodore tone generators from the old bbs days
I havent seen any examples on how to do this in Windows though
is there any examples kicking around anywhere to look into?

MichaelW

eschew obfuscation

dedndave

direct i/o to the counter/timer probably requires ring 0 access privilege level
it might be easier to play it as a midi file
midi file format is fairly simple

PBrennick

I guess you will recall that this was done by sending commands to the DAC. If it is at all possible you may try googling "programming the DAC". (include the quotes)

Paul
The GeneSys Project is available from:
The Repository or My crappy website

BlackVortex

Yep, Vista and newer don't allow easy access to the PC speaker, forget that, better try some instrumentation (midi)

This is the awesomest library to play around with :
http://ufmod.sourceforge.net/

The features are unreal ! So is usability. It's written in freaking assembly  \m/

oex

 ::) Trojan found in dl.... Reportedly
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

BlackVortex

My magic powers tell me your antivirus sucks. Don't post things like that  :naughty:

ChillyWilly

yea what i did originally was program with it using PLAYSOUND and have the .wavs in the .rc
that was a nice program on the winasm forums that allows you to inject a fake .wav header on an .mp3 and still play it as a .wav

so that allowed me to use smaller mp3's in my app and keep the file size down

but was looking for a better way to create the tones programatically

dedndave

if you just want tones, midi is the way to go - the files are much smaller than a wav or mp3 to make the same notes
midi has it's limitations - it can't reproduce a soundtrack, for example
but for simple tones - it is a breeze
entries can specify the frequency and the duration - no need to carry all the DAC audio information

shill

Quote from: BlackVortex on February 26, 2010, 05:24:21 PM
Yep, Vista and newer don't allow easy access to the PC speaker, forget that, better try some instrumentation (midi)

This is the awesomest library to play around with :
http://ufmod.sourceforge.net/

The features are unreal ! So is usability. It's written in freaking assembly  \m/

I love XM format. It gives you more freedom than MIDI, but it's still smaller than MP3.

You may also be interested in CSound.