That teaches the author for not using libsndfile! If he had used this cross-platform standard library instead of his own code, not only would more sample formats be supported but also endianness would play no role because libsndfile is endian-agnostic.
That teaches the author for not using libsndfile! If he had used this cross-platform standard library instead of his own code, not only would more sample formats be supported but also endianness would play no role because libsndfile is endian-agnostic.
smarkusg has compiled a new version, it contains some fixes, could you test it again on your machine?
.Mod/Sample (.iff) Saving, loading and playback should not cause any problems. I did a few quick tests and it works as it should.
Otherwise there would still be the possibility that I could contact the PT2 clone developer "8bitbubsy" and point out current problems with AmigaOs.4.1 and MorphOs. Maybe it could be helpful to be able to get a clean port with all functions.
K-L wrote:@Maijestro 55-60% CPU usage on my X1000 with a fast module. No stereo ?
The CPU load should be okay, although not optimal. Also take a look at the protracker.ini "Audio settings", here you can play around with the settings. If you only use the test binary, the Protracker.ini and its settings are not available and standard values are configured. You should test it in combination with the Os4depot version.
[AUDIO SETTINGS]
; Audio output frequency
; Syntax: Number, in hertz
; Default value: 48000
; Comment: Ranges from 44100 to 192000. Does not apply to MOD2WAV.
;
FREQUENCY=48000
; Audio input frequency
; Syntax: Number, in hertz
; Default value: 44100
; Comment: Ranges from 44100 to 192000. This should be set to match
; the frequency used for your audio input device (for sampling).
;
SAMPLINGFREQ=44100
; MOD2WAV output frequency
; Syntax: Number, in hertz
; Default value: 44100
; Comment: Ranges from 44100 to 192000.
;
MOD2WAVFREQUENCY=44100
; Filter model (Amiga model)
; Syntax: A500 or A1200
; Default value: A1200
; Comment: Selects what kind of Amiga to simulate (lp/hp filters).
; A1200 has sharper sound but more aliasing, while A500 has more
; filtered (muddy) sound but less aliasing. The filter model can
; also be toggled by pressing F12 in the program.
;
FILTERMODEL=A1200
; Stereo separation
; Syntax: 0 to 100 (percent)
; Default value: 20 (good value for headphones)
; Comment: Set to 100 for the hard panning Amiga uses.
; Set to 0 for mono, which might be preferred in some cases.
;
STEREOSEPARATION=20
; Audio buffer size
; Syntax: Number, in unit of samples (not bytes)
; Default value: 1024
; Comment: Ranges from 128 to 8192. Should be a number that is 2^n
; (128, 256, 512, 1024, 2048, 4096, 8192, ...). The number you input
; isn't necessarily the actual value the audio API decides to use.
; Lower means less audio latency but possible audio issues, higher
; means more audio latency but less chance for issues.
;
BUFFERSIZE=1024
; End of config file
MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
You have to ask @trixie if this version meets his current expectations. He is probably the most involved in the topic to make pt2-clone work as well as possible. It is possible that he has already compiled a better version himself. Updating a not fully working version every few days on os4depot is probably not the best idea.
You have to ask @trixie if this version meets his current expectations. He is probably the most involved in the topic to make pt2-clone work as well as possible. It is possible that he has already compiled a better version himself. Updating a not fully working version every few days on os4depot is probably not the best idea.
In my opinion it doesn't matter how often an archive is updated. If this means program xyz works better under AmigaOs4.1. It is better to update a program than to do nothing and leave it unfinished and unusable. There are countless cases of this on os4depot because many people don't care.
It shows people that quick fixes have taken place.
MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
The new version works very well, saving data looks fixed. The only serious problem I get is when I click on the "Sample" button in the Sampler section. The program just stops responding; no freeze but nothing can be selected any more.
@smarkusg
Quote:
It is possible that he has already compiled a better version himself.
No, I stopped messing with the PT2 clone seeing that you're working on it in cooperation with beworld; you two are doing a great job.
The new version works very well, saving data looks fixed. The only serious problem I get is when I click on the "Sample" button in the Sampler section. The program just stops responding; no freeze but nothing can be selected any more.
I was also able to replicate it under Qemu Pegasos2, the program freezes without any error message. I can also see on the CPU display that the resources such as RAM/CPU are then released. As if the tracker has been stopped and the window is wearing out too. hmmm strange...
MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
The only serious problem I get is when I click on the "Sample" button in the Sampler section.
Yes - I checked. The debug from SDL2 looks like this when frozen
--
[OS4_SetPointerForEachWindow] Setting pointer object 0x615A11E4 (type 16) for window 0x615A18C0
[SDL_CreateMutex] Created mutex 0x6FFAA2C0
[OS4_OpenDevice] devname (null)
[OS4_OpenDevice] 16 bits requested, use AUDIO_S16MSB
[OS4_OpenDevice] SDL audio format = 0x9010
[OS4_OpenDevice] Buffer size = 4096
[OS4_OpenDevice] Channels = 2
[OS4_OpenDevice] AHI format 0x3
[SDL_SYS_CreateThread] Node 0x6155EDA0
[SDL_SYS_CreateThread] Created new thread 'SDLAudioC3' (task 0x62AA1850)
[OS4_RunThread] This task 0x62AA1850, node 0x6155EDA0, SDL_Thread 0x601A2F90
[OS4_TimerCreate] Creating timer 0x6155EDB0 for task 0x62AA1850
[SDL_SYS_SetThreadPriority] Changed task 0x62AA1850 priority from 0 to 5
[OS4_ThreadInit] Called
[OS4_OpenAhiDevice] ahi.device opened
[OS4_OpenAhiDevice] IO requests created
[OS4_OpenAhiDevice] deviceOpen = 1
[OS4_CaptureFromDevice] Start recording
[SDL_SYS_WaitThread] Waiting for 'SDLAudioC3'
--
Currently I have blocked these two things. The theme is not the last solution, but it is better not to cause problems until possible improvement. I tried to hide it , that is samples blocked only when selecting sample and MOD2WAV only when approving. It will not be so striking to those people who have no intention of using it. The rest of the functionality should work. Sorry for the problems.
I will ask @Maijestro to edit the post with new files : https://www.amigans.net/modules/newbb/ ... id=144339#forumpost144339 so as not to litter the forum. Also a request for @trixie to check if everything is working now. He is probably the most knowledgeable person on the PT topic - thank you for your help.
I also checked testaudiocapture in the test directory with the SDL2 source when he filed the problem @trixie. I didn't write about it because I checked on the old SDL2 sources and thought that was the problem. I don't know what SDL2 sources Morphos uses but the version in morphos-store pt2clone has the same problem.
Thanks @Capehill for checking
and as for the pt2clone itself the mod problem with the export should be able to be fixed with the use of. https://aminet.net/package/mus/edit/mod2wav It works better than the export itself implemented in pt2clone and it should be possible to adapt it
@Maijestro Yes , I think it is currently better to make a patch and I will send you. I will also put it on github. The current version is not suitable for uploading to the repository. It is an open project and out of respect for the author of the code, every modification should be available and not hidden in a cupboard.