2 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/devel-api/adaptor-framework/sound-player.h>
22 #include <dali/internal/system/common/sound-player-impl.h>
26 SoundPlayer::SoundPlayer()
30 SoundPlayer SoundPlayer::Get()
32 return Internal::Adaptor::SoundPlayer::Get();
35 SoundPlayer::~SoundPlayer()
39 int SoundPlayer::PlaySound(const std::string fileName)
41 return GetImplementation(*this).PlaySound(fileName);
44 void SoundPlayer::Stop(int handle)
46 GetImplementation(*this).Stop(handle);
49 SoundPlayer::SoundPlayFinishedSignalType& SoundPlayer::SoundPlayFinishedSignal()
51 return GetImplementation(*this).SoundPlayFinishedSignal();
54 SoundPlayer::SoundPlayer(Internal::Adaptor::SoundPlayer* player)