| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Help! Tough Prog Questio |
-=> Quoting Peter Fitzsimmons to Rob Basler <=-
RB> activates a time critical thread every second clock
RB> tick to POLL the Playlist to figure out which buffer
RB> is playing. I figure the average latency with this
PF> I allocated enough buffers (min 2) to hold as many seconds of audio
PF> data as required. Each buffer also gets its own event sem. As
PF> each buffer is played, and i get the MMOS2 notification,
PF> I post the event sem for that buffer -- at which time
PF> another thread, blocked on that sem (the sems are always
PF> cleared in the same round robin order) wakes up and fills
PF> the buffer with new data.
PF> They playlist looks something like this:
PF> DATA_OPERATION
PF> MESSAGE_OPERATION // to get the sem posted.
PF> DATA_OPERATION
PF> MESSAGE_OPERATION // to get the sem posted.
PF> DATA_OPERATION
PF> MESSAGE_OPERATION // to get the sem posted.
PF> ...
PF> BRANCH_OPERATION (goto top)
The newest DEVCON DOCs directory in mmref2.inf also now has
SEMPOST_OPERATION
SEMWAIT_OPERATION
to help with your programming MMOS/2 events - but I cannot find
these defines in the mm....x.h header files !
-Jeffrey-
... Not all tracks are the correct path ......
--- Maximus 3.00
* Origin: The MOCHINE BBS * Irving, TX * 214/399-8414 * HST DS * (1:124/1301)SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2808 2809 @PATH: 124/1301 1030 1208 1 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.