summaryrefslogtreecommitdiffstats
path: root/src/audio_core/cubeb_sink.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-03-10audio_core/cubeb_sink: Convert _MSC_VER ifdefs to _WIN32Lioncash1-3/+3
This behavior also needs to be visible for MinGW builds as well.
2019-02-27audio_core/cubeb_sink: Ensure COM is initialized on Windows prior to calling cubeb_initLioncash1-0/+15
cubeb now requires that COM explicitly be initialized on the thread prior to calling cubeb_init.
2019-02-25audio_core/cubeb_sink: Initialize CubebSinkStream's last_frame data memberLioncash1-1/+1
Ensures that all member variables are initialized in a deterministic manner across the board.
2019-02-25audio_core/cubeb_sink: Add override specifier to destructorLioncash1-1/+1
CubebSinkStream inherits from a base class with a virtual destructor, so override can be appended to CubebSinkStream's destructor.
2019-02-25audio_core/cubeb_sink: Resolve variable shadowing warnings in SamplesInQueueLioncash1-2/+2
The name of the parameter was shadowing the member variable of the same name. Instead, alter the name of the parameter to prevent said shadowing.
2018-12-13audio_core: Make g_sink_details internally linkedLioncash1-1/+1
We can hide the direct array from external view and instead provide functions to retrieve the necessary info. This has the benefit of completely hiding the makeup of the SinkDetails structure from the rest of the code. Given that this makes the array hidden, we can also make the array constexpr by altering the members slightly. This gets rid of several static constructor calls related to std::vector and std::function. Now we don't have heap allocations here that need to occur before the program can even enter main(). It also has the benefit of saving a little bit of heap space, but this doesn't matter too much, since the savings in that regard are pretty tiny.
2018-10-27cubeb_sink: ignore null-name device when selectingWeiyi Wang1-1/+2
We already ignore them on listing devices. We should do the same when selecting devices. This fix a crash when opening a specific device while there is a null device in the list
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi1-10/+11
2018-09-14cubeb_sink: Get rid of variable shadowing within CubebSink's constructorLioncash1-4/+4
The parameter of the lambda was shadowing the variable that was being assigned to.
2018-09-14cubeb_sink: Correct context name in ListCubebSinkDevices()Lioncash1-1/+1
This ain't Citra.
2018-09-12audio_core: Flush stream when not playing anythingMerryMage1-0/+11
2018-09-09cubeb_sink: Downsample arbitrary number of channelsMerryMage1-10/+9
2018-09-08cubeb_sink: Perform audio stretchingMerryMage1-17/+20
2018-09-08cubeb_sink: Hold last available value instead of writing zerosMerryMage1-5/+15
This reduces clicking in output audio should we underrun.
2018-09-08cubeb_sink: Use RingBufferMerryMage1-40/+26
2018-09-08Add audio stretching supportfearlessTobi1-0/+7
2018-08-12cubeb_sink: Protect queue with a mutexMerryMage1-0/+6
2018-08-05audio_core: Use s16 where possible for audio samples.bunnei1-6/+5
2018-08-04cubeb_sink: Support variable sample_rate and num_channels.bunnei1-15/+25
2018-08-04audio_core: Sinks need unique names as well.bunnei1-5/+6
2018-07-31audio_core: Implement Sink and SinkStream interfaces with cubeb.bunnei1-0/+190