Soundcard input

Feature requests for future versions of Hollywood can be voiced here
Post Reply
User avatar
JurassicC
Posts: 36
Joined: Fri May 25, 2012 9:48 pm

Soundcard input

Post by JurassicC »

Would love to see the ability to have a function that grabs samples from an input on a soundcard
Put these into a buffer or save directly to a raw file.

Eg:

Grab .125ms of 8Bit mono speech from LineIN put into buffer, then use CreateUDPobject to transmit the buffer
Then have an incoming server running to grab the buffer and play it back again.

Thinking VOIP client for all AOS,MOS,AROS, 2D puzzle game that would allow players to talk to each other etc etc
AmigaOne X1000 - RadeonHD 7870, 4GB RAM - AmigaOS 4.1ß
AmigaOne X5000 - Radeon R7 250, 2GB RAM - AmigaOS 4.1ß
Bugala
Posts: 1390
Joined: Sun Feb 14, 2010 7:11 pm

Re: Soundcard input

Post by Bugala »

I second that, That would be a good idea.
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Soundcard input

Post by airsoftsoftwair »

Support for recording audio is planned for a future version.
User avatar
JurassicC
Posts: 36
Joined: Fri May 25, 2012 9:48 pm

Re: Soundcard input

Post by JurassicC »

I would just like to bump this one.
As a long time supporter of Hollywood (7 Years Now V4 to V8). :D Its the only language I use now. I've had a project on the back burner and wish to revisit it.
Could you add the ability to sample audio, via AHI, put it into a buffer that could be be sent using SendData() and play the buffer at the destination.

In the past I've run a amiga dos script from with in hollywood to sample to a file using audio: device. Then used hollywood to read the file as a string and send it. At the destination save the incoming data to file, then play the file. The overheads and delay create large gaps.

I did find this recently

https://wiki.amigaos.net/wiki/AHI_Devic ... AHI_Device
AmigaOne X1000 - RadeonHD 7870, 4GB RAM - AmigaOS 4.1ß
AmigaOne X5000 - Radeon R7 250, 2GB RAM - AmigaOS 4.1ß
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Soundcard input

Post by airsoftsoftwair »

It's still on my list, I've bumped it now :)
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Soundcard input

Post by airsoftsoftwair »

Only took like 13 years or so but here it finally is, sorry for the delay ;)

Code: Select all

- New: Audio recording is finally supported using the new RecordAudio() function; this function allows you
  to record audio directly to a file in various audio formats (also extensible via plugins); you can also
  configure things like channels, bit depth and sampling frequency in the optional table argument; finally
  asynchronous recording is also supported by setting the "Async" tag to TRUE; note that on slower systems
  like AmigaOS 3 it's recommended to use an output audio format that doesn't use any compression (e.g.
  uncompressed RIFF WAVE) to make sure the file saver can keep up with the audio recorder
mds
Posts: 12
Joined: Sun May 01, 2022 7:54 am

Re: Soundcard input

Post by mds »

In the next release of Hollywood?
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Soundcard input

Post by airsoftsoftwair »

Yup.
mds
Posts: 12
Joined: Sun May 01, 2022 7:54 am

Re: Soundcard input

Post by mds »

:D
User avatar
Juan Carlos
Posts: 932
Joined: Mon Sep 06, 2010 1:02 pm

Re: Soundcard input

Post by Juan Carlos »

airsoftsoftwair wrote: Sun May 11, 2025 7:26 pm Only took like 13 years or so but here it finally is, sorry for the delay ;)

Code: Select all

- New: Audio recording is finally supported using the new RecordAudio() function; this function allows you
  to record audio directly to a file in various audio formats (also extensible via plugins); you can also
  configure things like channels, bit depth and sampling frequency in the optional table argument; finally
  asynchronous recording is also supported by setting the "Async" tag to TRUE; note that on slower systems
  like AmigaOS 3 it's recommended to use an output audio format that doesn't use any compression (e.g.
  uncompressed RIFF WAVE) to make sure the file saver can keep up with the audio recorder
Well, thank you with this function, now will be possible to make an easy sound convert.
Post Reply