Chris Robinson
8253014fe9
Fix some types to make MSVC happy
2017-12-17 15:56:30 -08:00
Chris Robinson
0e2e9e9a29
Add a simple non-streaming play example
2017-11-07 23:12:12 -08:00
Chris Robinson
4ec67e6226
Add missing include for std::array
2017-07-23 00:18:32 -07:00
Chris Robinson
5048322fff
Update alffplay's command line message
2017-07-11 00:38:52 -07:00
Chris Robinson
56a33ef955
Print the opened device in alffplay
2017-07-05 12:32:19 -07:00
Chris Robinson
74139c914d
Skip past the -device switch even if the device doesn't open
2017-07-01 20:44:56 -07:00
Chris Robinson
cb83f48105
Add an option to enable direct channels for alffplay
2017-07-01 19:18:57 -07:00
Chris Robinson
4b7cbb50ab
Add a whitenoise generator to altonegen
2017-06-25 08:00:55 -07:00
Chris Robinson
be552a35e6
Support 32-bit float with the recording example
2017-06-25 06:10:20 -07:00
Chris Robinson
e07166e93c
Add a recording example app
2017-06-23 05:19:24 -07:00
Chris Robinson
07bb5f1322
Add a missing include
2017-05-28 00:53:33 -07:00
Chris Robinson
5308ea7e2a
Put the app name after filename in the window title
2017-05-07 04:29:18 -07:00
Chris Robinson
710bbde09c
Ensure SDL_AUDIO_BITSIZE is defined for older SDL2 versions
2017-04-07 03:33:03 -07:00
Chris Robinson
c040491615
Update alffplay for newer ffmpeg and convert to C++
2017-03-05 01:20:19 -08:00
Chris Robinson
87fd288359
Remove unnecessary wrappers around SDL_sound
...
Also remove wrappers for the now-unsupported buffer_samples extension.
2017-03-04 22:30:57 -08:00
Chris Robinson
4486043ae5
Skip audio packets that fail to decode in alffplay
2016-09-14 13:37:20 -07:00
Chris Robinson
0f24f49a44
Allow specifying the device to open for the examples
2016-09-08 12:14:28 -07:00
Chris Robinson
6d7f9aacd6
Print whether direct channels are off or on to stdout in alffplay
2016-08-29 22:18:44 -07:00
Chris Robinson
4859984e33
Add an option to alffplay to toggle AL_DIRECT_CHANNELS_SOFT
...
Using the 'd' key will toggle the playback source's AL_DIRECT_CHANNELS_SOFT
property. Although there is no visual feedback showing when it's on or off.
2016-08-29 01:55:44 -07:00
Chris Robinson
d8e9b3c621
Also rotate stereo sounds in the alhrtf example
2016-08-24 03:49:45 -07:00
Ryan P.C. McQuen
69af50cadb
Fix for ffmpeg.
...
Closes https://github.com/kcat/openal-soft/issues/48 .
2016-07-21 08:09:31 -07:00
gero
cec03f39ae
fix audio play error in sample
...
fix audio play error in sample
2016-04-22 17:33:00 +08:00
Chris Robinson
0c4653085c
Don't request a specific HRTF when one isn't specified
2016-03-11 21:01:32 -08:00
Chris Robinson
4fb2526779
Fix "signed and unsigned type in conditional expression" warning
2016-01-24 02:29:26 -08:00
Chris Robinson
482372577e
Avoid using usleep in the examples
...
We already have an al_nssleep wrapper in the common lib we can use.
2015-12-04 19:09:48 -08:00
Chris Robinson
203c249bf7
Add missing math.h include for sin()
2015-11-06 00:13:02 -08:00
Chris Robinson
4a9dd6576f
Add an impulse "waveform" to altonegen
2015-10-31 05:15:13 -07:00
Chris Robinson
f4a53cf609
Add an HRTF example
...
Doubles as a psuedo-test to play a sound with HRTF.
2015-10-28 18:52:49 -07:00
Chris Robinson
f654767395
Silence implicit double-to-float cast MSVC warning
2015-10-14 05:00:11 -07:00
Chris Robinson
d386675efe
Print the wave type being played
2015-10-14 02:41:39 -07:00
Chris Robinson
9012bcf327
Make the tonegen sampling rate match the device rate by default
2015-10-14 01:54:50 -07:00
Chris Robinson
c18e23477c
Add a tone generator test program
...
Currently used to test the general output, particularly the resampler, by
checking the results with a spectrum analyzer and/or oscilloscope (for example
using PulseAudio's "Monitor of ..." devices feeding an external app).
2015-10-13 11:43:25 -07:00
Chris Robinson
475a566e35
Play a 1khz sine wave for 4 seconds in the loopback example
2015-09-07 21:17:26 -07:00
Chris Robinson
e60e0761f5
Use the default channel layout in alffplay if one isn't specified
2014-12-12 06:10:23 -08:00
Chris Robinson
01a1e6f102
Fallback to 16-bit samples in alffmpeg if a float32 format isn't supported
2014-11-07 04:50:16 -08:00
Chris Robinson
0185bdd8ca
Support 5.1 and 7.1 in alffplay
2014-11-05 03:55:36 -08:00
Chris Robinson
17682cb0ce
Explicitly include libavutil/channel_layout.h for the channel layout stuff
2014-07-18 01:21:42 -07:00
Chris Robinson
5de7271bcd
AL_SOFT_source_length is complete
2014-07-05 04:25:37 -07:00
Chris Robinson
8ca1f4f371
Open and close the file in the main thread in alffplay
...
This avoid problems with the file being closed while a video refresh is still
scheduled.
2014-06-08 03:26:34 -07:00
Chris Robinson
d2c0a43498
Add an ffmpeg-based example player
...
This example shows proper timing and A/V synchronization with an OpenAL stream.
Requires the in-progress AL_SOFTX_source_length extension to avoid manually
keeping track of the buffer queue length.
2014-06-02 17:33:11 -07:00
Chris Robinson
13eac2552e
Update the examples to use SDL2
...
This should make it easier to build the examples on 64-bit, where there are no
premade dev libs for SDL1 on 64-bit mingw. FindSDL_sound.cmake has been
updated to accept SDL or SDL2.
2014-05-23 12:14:51 -07:00
Chris Robinson
160e901381
Handle non-native endian formats with SDL_sound
2013-06-19 22:47:17 -07:00
Chris Robinson
ff44ebfd5b
Add a loopback extension example
2013-06-16 16:10:21 -07:00
Chris Robinson
9fd8731480
Use SDL_sound for the other examples
2013-06-05 20:12:13 -07:00
Chris Robinson
056fa2a474
Use SDL_sound for the alstream example
2013-06-05 19:50:18 -07:00
Chris Robinson
2290e08053
Make some example function pointers static
2013-05-30 13:29:50 -07:00
Chris Robinson
89fae876a4
Only print the filename in alstream, without the path
2013-02-03 04:55:44 -08:00
Chris Robinson
2b27d243ca
Use stdout to print alstream information
2012-11-04 22:37:10 -08:00
Chris Robinson
41b1ba146a
Add an example to get and show the source latency
2012-10-31 23:53:10 -07:00
Chris Robinson
6450d0cbca
Avoid prefixing function pointers in the streaming example
2012-10-31 22:38:27 -07:00