Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > Bug Reports & Feature Requests > Delay between keyboard press and sound playing Owner: Patashu New post
Page 1 of 1 Sort:  
Delay between keyboard press and sound playing Posted: 2012-11-28 04:28 Reply | Quote
Patashu

Avatar

Member for: 3749 days
Location: Sydney, Australia
Status: Offline

#42372
There's a small but consistent (16-50ms, haven't measured exact amount) delay between the pressing of a key (or receiving of a midi input) by Famitracker and the playing of a sound by Famitracker. Is there anyway to fix or decrease this? It messes me up when trying to play something fast.

Posted: 2012-11-28 06:18 Reply | Quote
rainwarrior

Avatar

Member for: 4150 days
Location: Canada
Status: Offline

#42377
Well, an audio buffer of 4096 samples at 44100Hz takes ~93ms to empty. If it's double buffered it could be double that in the worst case.

You can reduce latency by decreasing your buffer size (it's in the configuration settings), but you'll probably find you can't get it very low before it starts to stutter.

ASIO drivers allow for very low latency and demand high priority processing to accomplish it; I'm not sure whether they'd require extra work to implement on Famitracker's end, but it's maybe possible they'd work as-is. Look up ASIO4ALL if you need an ASIO driver and your sound hardware didn't come with one.

Posted: 2012-11-28 17:15 Reply | Quote
DalekSam

Avatar

Member for: 4280 days
Location: United Kingdom, Belfast
Status: Offline

#42390
I don't quite think FamiTracker *needs* ASIO support, but I could see it being useful - I've only really needed to use ASIO when working in big projects for FL, though.

Page 1 of 1 Sort: