Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
5dae7902
Commit
5dae7902
authored
19 years ago
by
llea
Browse files
Options
Downloads
Patches
Plain Diff
Add missing file
parent
05ac30a5
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/tonegenerator.cpp
+1
-1
1 addition, 1 deletion
src/audio/tonegenerator.cpp
utilspp/creation_using_new.hpp
+55
-0
55 additions, 0 deletions
utilspp/creation_using_new.hpp
with
56 additions
and
1 deletion
src/audio/tonegenerator.cpp
+
1
−
1
View file @
5dae7902
...
...
@@ -61,7 +61,7 @@ ToneThread::run (void) {
unsigned
int
play_time
=
(
size
*
1000
)
/
SAMPLING_RATE
;
// Create a new stereo buffer with the volume adjusted
spkrVolume
=
mngr
->
getSpkrVolume
();
spkrVolume
=
Manager
::
instance
().
getSpkrVolume
();
for
(
int
j
=
0
;
j
<
size
;
j
++
)
{
k
=
j
*
2
;
buf_ctrl_vol
[
k
]
=
buf_ctrl_vol
[
k
+
1
]
=
buffer
[
j
]
*
spkrVolume
/
100
;
...
...
This diff is collapsed.
Click to expand it.
utilspp/creation_using_new.hpp
0 → 100644
+
55
−
0
View file @
5dae7902
/*
* Copyright (c) <2002-2004> <Jean-Philippe Barrette-LaPierre>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (cURLpp), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef CREATION_USING_NEW_HPP
#define CREATION_USING_NEW_HPP
/**
* This class is a creation policy for the utilspp::singleton_holder. The
* policy is creating the singleton by a "new" call.
*/
namespace
utilspp
{
template
<
typename
T
>
struct
creation_using_new
{
static
T
*
create
();
static
void
destroy
(
T
*
obj
);
};
};
template
<
typename
T
>
T
*
utilspp
::
creation_using_new
<
T
>::
create
()
{
return
new
T
;
}
template
<
typename
T
>
void
utilspp
::
creation_using_new
<
T
>::
destroy
(
T
*
obj
)
{
delete
obj
;
}
#endif
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