Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
25 May, 2013, 06:15:24 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: [OTZ80] Features - planning and FINAL chance for suggestions!! -  (Read 696 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
calc84maniac
Epic z80 roflpwner
Coder Of Tomorrow
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: Today at 03:47:14
Date Registered: 28 August, 2008, 05:09:05
Location: Right behind you.
Posts: 2735


Total Post Ratings: +373

View Profile
« on: 28 June, 2011, 21:32:02 »
0

Quote from: calc84
It would be nice if the 3.5mm jack could output levels between high and low
Hmm, it should. I'm not sure technically how this is done (software wise or HW wise), but it's definitely possible.
One way to do this is with Pulse-Width Modulation, which is somewhat similar to how grayscale is done on monochrome screens. Basically, you have some period of time (in the case of sound, it should be well under 1/20000 seconds to be outside the audible range) which is divided into, in the case of 8-bit sound, 256 cycles. For an output level X, the hardware would output low for X cycles and high for 256-X cycles. As you might imagine, it's a super pain to have to do this manually through the CPU. Dedicated hardware for this wouldn't be too hard to implement, I think.

Edit: Actually, since 8-bit values only go from 0 to 255, you'd have 255 cycles, go low for X cycles and go high for 255-X cycles.
« Last Edit: 28 June, 2011, 21:47:16 by calc84maniac » Logged

"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.158 seconds with 33 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.