No, I did not revert back to the original datatypes. Should that really matter? sound.datatype is what is in control of the output level, not the wav/mpeg.datatype, yes?
Workbench Explorer - A better way to browse drawers
No, I did not revert back to the original datatypes. Should that really matter? sound.datatype is what is in control of the output level, not the wav/mpeg.datatype, yes?
I'm not sure if it matters. I was just thinking of a reason for the failure. However, I removed the Enhancer datatypes and reverted to the OS4 datatypes for testing. I tested with an AIFF sound file and a WAV sound file. The pause and resume didn't seem to work at all with the OS4 sound datatypes and only one volume change worked. I tried a decrease in volume and a few seconds later an increase in volume. The volume decrease worked but the sound just stopped playing when I increased the volume.
Unless we're both doing something wrong, the prospects for using datatypes to write a sound player with good user control don't look good
Amiga X1000 with 2GB memory & OS 4.1FE + Radeon HD 5450
That's what I was afraid of: seems to have never worked from day 1.
I just wanted some simple controls in Workbench Explorer, not intending to be a full blown player or anything. But nice to have.
STM_PAUSE and STM_RESUME I believe are A-EON options only. I had to STM_STOP with OS4; that works fine, but not ideal.
You would think changing volume would be a common thing and not an old bug/defect in the sound.datatype. No one has wanted to change the volume in the last 5+ years?
For the record, the A-Eon implementations all route to the sound.datatype to control volume, the subclasses do very little other than process the data source to pass it up the chain. If you're saying the volume changes don't work on these, let me know.
I cannot vouch for the OS supplied dt classes. I do know that the aiff/8svx didn't interact with the sound data type as expected and had to account for it to "make it work".
@sierratu O.K. I think the problem mritter0 needs to overcome with Enhancer sound.datatype is pause/play. When play is resumed the sound is garbled. His MP3 player would be fantastic if that problem is fixed.
Amiga X1000 with 2GB memory & OS 4.1FE + Radeon HD 5450