Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Sample Player
New Member
August 12, 2020 - 4:59 am
Member Since: August 12, 2020
Forum Posts: 1
sp_UserOfflineSmall Offline

I want to develop a sample player. How can I do disk streaming? How to implement round robins, presets, and serial registration for final product in case I decide to sell one day? 

W Pirkle
October 21, 2020 - 11:03 am
Member Since: January 28, 2017
Forum Posts: 515
sp_UserOfflineSmall Offline

To do disk streaming, you will need to create multiple threads for reading from disc and synchronizing the threads. Each voice has its own file reading thread, and then you implement a mixer thread to blend the voices (notes). 

The main issue here is that disc streaming is slow (there is a section of my new Synth book that addresses this issue), so one option is to pre-load the first bunch of samples from every file, then output those while you start your worker thread that streams from disc. Be careful, as there are patents out there regarding this very thing. 


Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 48

Derek: 46

Frodson: 45

Chaes: 45

Peter: 43

TheSmile: 43

clau_ste: 39

JimmyM: 33

Gwen: 32

jim: 31

Member Stats:

Guest Posters: 1

Members: 658

Moderators: 1

Admins: 5

Forum Stats:

Groups: 13

Forums: 41

Topics: 716

Posts: 2754

Newest Members:

John Fuhrman, YizAKat, studentcode, moritzsur_1, moritzsur, alehouse, Scarlett, kait, smadger, jcayetano

Moderators: W Pirkle: 515

Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 515, VariableCook: 3