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
Chris Robinson
4e281350a0
Print the name of the device when opening it in the example apps
2012-10-31 17:16:56 -07:00
Chris Robinson
f3dddb6e63
Add an example program showing how to apply reverb to a source
2012-10-31 04:04:49 -07:00
Chris Robinson
2c802cc10a
Reorder and comment some function in alhelpers.c
2012-10-25 23:53:46 -07:00
Chris Robinson
f7655d44a2
Move alhelpers and alffmpeg code to a common sub-directory
2012-10-14 01:55:39 -07:00
Chris Robinson
29b11db13f
Update the example to use avcodec_decode_audio4
2012-10-03 02:01:52 -07:00
Chris Robinson
dca6254b35
Update some ffmpeg functions
2012-10-03 00:29:08 -07:00
Chris Robinson
cccec40e87
Fix some signed/unsigned comparisons
2012-10-02 18:55:39 -07:00
Chris Robinson
5a43cd3b64
Use avformat_free_context to free a format context that failed to open
2012-03-21 13:54:13 -07:00
Chris Robinson
2747c87893
Print out unsupported audio format info from ffmpeg
2012-02-28 04:04:52 -08:00
Chris Robinson
e870c22f87
av_find_stream_info is also deprecated, in favor of avformat_find_stream_info
2012-01-29 20:06:30 -08:00
Chris Robinson
fd6f03cf74
Use AVMEDIA_TYPE_AUDIO instead of the deprecated CODEC_TYPE_AUDIO
2012-01-29 16:21:57 -08:00
Chris Robinson
c543611897
Add some casts
2012-01-11 00:55:02 -08:00
Chris Robinson
d88596e13c
There's no need to pass a buffer to avio_alloc_context
2012-01-11 00:43:24 -08:00
Chris Robinson
c59bbe7c22
Handle a couple of special AVSEEK_ seek modes
2012-01-11 00:32:16 -08:00
Chris Robinson
d4670faafd
Fix compiling the example program, and support AL_SOFT_buffer_samples with it
2012-01-10 02:12:54 -08:00