09 October 2022, 07:02 | #1 |
Registered User
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,281
|
Ptplayer sfx problem
When I play an sfx, I hear some sort of "tac", when it starts. Is there something that I have to take care of to get rid of it? I tried it with dopus, and it played well without this strange thing.
All sfx are saved as .iff |
09 October 2022, 11:29 | #2 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,039
|
Players typically set the first word of each sample to 0 to prevent that (in mt_init or similar routine). If you are playing external samples, I'd guess you have to do that by yourself.
|
09 October 2022, 12:17 | #3 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
|
PTPlayer doesn't play .iff files, it plays raw samples. If you pass the sample without the IFF header it'll work without a tac sound. You could also keep them in .IFF format and add the size of the header to the pointer you pass, which will also fix this.
|
09 October 2022, 13:35 | #4 |
Registered User
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,281
|
|
09 October 2022, 13:37 | #5 |
Registered User
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,281
|
Thanks to all for the help!
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ptplayer question | sandruzzo | Coders. General | 11 | 06 October 2022 05:47 |
PTPlayer / Vertical Blank Interrupt / 060 | DanielAllsopp | Coders. Asm / Hardware | 41 | 08 April 2022 23:15 |
Amiblitz 3 and PtPlayer | Nightshft | Coders. Blitz Basic | 4 | 14 November 2021 00:28 |
Problem with ptplayer | MacSpain | support.Other | 2 | 23 January 2020 19:52 |
No SFX in IK+ | tim_calladine | support.Games | 21 | 25 October 2008 00:00 |
|
|