diff --git a/code/BasicFeature/Media/Audio/README.md b/code/BasicFeature/Media/Audio/README.md index 08c315d85aaed72581730031b00482ee93fc0675..4f19a11c5e3c2d8730d43924e6ec0cf086dac19b 100644 --- a/code/BasicFeature/Media/Audio/README.md +++ b/code/BasicFeature/Media/Audio/README.md @@ -192,7 +192,7 @@ library/ ``` git init git config core.sparsecheckout true -echo Audio/Audio/ > .git/info/sparse-checkout +echo code/BasicFeature/Media/Audio > .git/info/sparse-checkout git remote add origin https://gitee.com/openharmony/applications_app_samples.git git pull origin master ``` \ No newline at end of file diff --git a/code/BasicFeature/Media/Audio/entry/src/main/ets/pages/PreferOutputDevice.ets b/code/BasicFeature/Media/Audio/entry/src/main/ets/pages/PreferOutputDevice.ets index f9b32900608c58ef4dcbb4cc2e4fbd01d9c74f40..8aa1f63abf1d56f58e3768e20c866bd777ddb77e 100644 --- a/code/BasicFeature/Media/Audio/entry/src/main/ets/pages/PreferOutputDevice.ets +++ b/code/BasicFeature/Media/Audio/entry/src/main/ets/pages/PreferOutputDevice.ets @@ -1,5 +1,5 @@ /* -* Copyright (C) 2023 Huawei Device Co., Ltd. +* Copyright (C) 2023-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -30,7 +30,7 @@ struct PreferOutputDevice { private appContext?: common.Context; private audioRendererOption: audio.AudioRendererOptions = { streamInfo: { - samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_44100, + samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_48000, channels: audio.AudioChannel.CHANNEL_2, sampleFormat: audio.AudioSampleFormat.SAMPLE_FORMAT_S16LE, encodingType: audio.AudioEncodingType.ENCODING_TYPE_RAW