English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 09 October 2022, 07:02   #1
sandruzzo
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
sandruzzo is offline  
Old 09 October 2022, 11:29   #2
a/b
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.
a/b is offline  
Old 09 October 2022, 12:17   #3
roondar
Registered User
 
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
Quote:
Originally Posted by sandruzzo View Post
All sfx are saved as .iff
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.
roondar is online now  
Old 09 October 2022, 13:35   #4
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,281
Quote:
Originally Posted by a/b View Post
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.
Did it!
sandruzzo is offline  
Old 09 October 2022, 13:37   #5
sandruzzo
Registered User
 
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,281
Thanks to all for the help!
sandruzzo is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:35.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08868 seconds with 15 queries