Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
7d106eff
There was an error fetching the commit references. Please try again later.
Commit
7d106eff
authored
9 years ago
by
MerryMage
Browse files
Options
Downloads
Patches
Plain Diff
AudioCore: Implement NullSink
parent
73624b47
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/audio_core/CMakeLists.txt
+1
-0
1 addition, 0 deletions
src/audio_core/CMakeLists.txt
src/audio_core/null_sink.h
+29
-0
29 additions, 0 deletions
src/audio_core/null_sink.h
with
30 additions
and
0 deletions
src/audio_core/CMakeLists.txt
+
1
−
0
View file @
7d106eff
...
...
@@ -15,6 +15,7 @@ set(HEADERS
hle/filter.h
hle/pipe.h
interpolate.h
null_sink.h
sink.h
)
...
...
This diff is collapsed.
Click to expand it.
src/audio_core/null_sink.h
0 → 100644
+
29
−
0
View file @
7d106eff
// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include
<cstddef>
#include
"audio_core/audio_core.h"
#include
"audio_core/sink.h"
namespace
AudioCore
{
class
NullSink
final
:
public
Sink
{
public:
~
NullSink
()
override
=
default
;
unsigned
int
GetNativeSampleRate
()
const
override
{
return
native_sample_rate
;
}
void
EnqueueSamples
(
const
std
::
vector
<
s16
>&
)
override
{}
size_t
SamplesInQueue
()
const
override
{
return
0
;
}
};
}
// namespace AudioCore
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment