CN105262797A - Music file loading method and related equipment - Google Patents

Music file loading method and related equipment Download PDF

Info

Publication number
CN105262797A
CN105262797A CN201510596114.1A CN201510596114A CN105262797A CN 105262797 A CN105262797 A CN 105262797A CN 201510596114 A CN201510596114 A CN 201510596114A CN 105262797 A CN105262797 A CN 105262797A
Authority
CN
China
Prior art keywords
memory value
memory
target
play parameter
threshold table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510596114.1A
Other languages
Chinese (zh)
Other versions
CN105262797B (en
Inventor
骆智彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510596114.1A priority Critical patent/CN105262797B/en
Publication of CN105262797A publication Critical patent/CN105262797A/en
Application granted granted Critical
Publication of CN105262797B publication Critical patent/CN105262797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a music file loading method and related equipment, relates to the technical field of Internet, and can solve the problems that music files cannot be loaded and processed aiming at terminals with different memories and the music file loading flexibility is poor in the prior art. Wherein, the method comprises the following steps: acquiring a target memory value of the terminal equipment in a current application scene, and searching a target audio playing parameter corresponding to the target memory value from a preset memory threshold value table; transcoding the music file in the application scene according to the target audio playing parameter to obtain a target music file; and loading the target music file into the application scene.

Description

A kind of music file loading method and relevant device
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of music file loading method and relevant device.
Background technology
Along with the raising of people's living standard, various terminal equipment is used widely, and also can get more and more, thus enhance the recreational of terminal in the game of terminal equipment as mobile phone runs.Meanwhile, in terminal, running game too increases the requirement to internal memory, and in general, terminal free memory is less, and running game is also more difficulty.
In actual applications, when loading game music, first game music file is carried out prestrain, namely whole bag is loaded in tag memory, if the free memory of present terminal is less, when namely detecting that music file is excessive relative to this free memory, then can cause that audio is poor does not even have the problems such as sound as music is discontinuous.Related personnel need be designed by audio and lossy compression method is carried out to this music file, and then be loaded in game, repack issue game version.Terminal use is now then needed to solve this problem according to the version updating game application of this new issue.
But because the free memory of each terminal is different, the music file size that can support is also just different.And this mode of repacking issue is carried out is unified lossy compression method process, thus compression obtains a less music file, cannot carry out the loading processing of corresponding music file, cause music file to load flexibility poor for the terminal of different internal memory.And terminal use usually can not more new opplication in time, cause problem not to be resolved in time, this mode efficiency of repacking issue is lower, makes the life cycle that greatly have impact on game.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, a kind of music file loading method and relevant device are provided, cannot carry out music file loading processing for the terminal of different internal memory for solving in prior art, music file loads the poor problem of flexibility.
Embodiments provide a kind of music file loading method, comprising:
The target memory value of terminal equipment under acquisition current application scene, and the target audio play parameter corresponding with described target memory value is found out from preset memory threshold table;
According to described target audio play parameter, transcoding process is carried out to the music file under described application scenarios, obtain target sound music file;
Described target sound music file is loaded in described application scenarios.
Optionally, described described target sound music file is loaded in described application scenarios after, described method also comprises:
The real-time free memory value that under monitoring described application scenarios, described terminal equipment is all;
Minimum real-time free memory value is filtered out from all real-time values monitored;
Described minimum real-time free memory value and described target audio play parameter are sent to server, upgrade with the memory value making described server corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value.
Optionally, describedly from preset memory threshold table, find out the target audio play parameter corresponding with described target memory value, comprising:
The parameter request of carrying the unit type of described terminal equipment and/or the scene information of described application scenarios is sent to server;
Receive described server and respond the memory threshold table corresponding with described unit type and/or described application scenarios that described parameter request returns, described memory threshold table comprises at least one memory value and audio frequency play parameter corresponding to memory value described in each;
From described memory threshold table, find out the memory value mated with described target memory value, and from described memory threshold table, determine the target audio play parameter that the memory value of described coupling is corresponding.
Optionally, describedly from preset memory threshold table, find out the target audio play parameter corresponding with described target memory value, comprising:
The parameter request of carrying the unit type of described terminal equipment, the scene information of described application scenarios and described target memory value is sent to server, to make described server find out the memory value mated with described target memory value from described unit type and memory threshold table corresponding to described application scenarios, and from described memory threshold table, determine the target audio play parameter that the memory value of described coupling is corresponding;
Receive described server and respond the target audio play parameter that described parameter request returns.
Optionally, described described minimum real-time free memory value and described target audio play parameter are sent to server, comprise:
The scene information of described unit type, described application scenarios, described minimum real-time free memory value and described target audio play parameter are sent to server, upgrade with the memory value making described server corresponding to target audio play parameter described in described unit type and memory threshold table corresponding to described application scenarios according to described minimum real-time free memory value.
Optionally, described target audio play parameter comprises target sampling rate and target bit rate; Describedly according to described target audio play parameter, transcoding process is carried out to the music file under described application scenarios, obtains target sound music file, comprising:
Obtain current sample rate and the current bit rate of the music file under described application scenarios;
With described current sample rate and described current bit rate for foundation, transcoding process is carried out to described music file, generate described target sampling rate and target sound music file corresponding to described target bit rate.
Correspondingly, the embodiment of the present invention additionally provides a kind of music file loading method, comprising:
The minimum real-time free memory value that receiving terminal apparatus sends and target audio play parameter, described minimum real-time free memory value is memory value minimum in the real-time free memory value all under current application scene of described terminal equipment;
The memory value corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value upgrades, wherein, described memory threshold table comprises at least one memory value and audio frequency play parameter corresponding to memory value described in each.
Optionally, described method also comprises:
Obtain the unit type of described terminal equipment and/or the scene information of described application scenarios;
The described memory value corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value upgrades, and comprising:
From at least one the memory threshold table stored, find out described unit type and/or memory threshold table corresponding to described application scenarios, and find out the audio frequency play parameter of mating with described target audio play parameter in described memory threshold table;
The memory value corresponding to the audio frequency play parameter of mating described in described memory threshold table according to described minimum real-time free memory value upgrades.
Optionally, the described memory value corresponding to the audio frequency play parameter of mating described in described memory threshold table according to described minimum real-time free memory value upgrades, and comprising:
Using memory value corresponding for the audio frequency play parameter of mating described in described memory threshold table as initial memory value, and described initial memory value and described minimum real-time free memory value are compared;
If described initial memory value lower than described minimum real-time free memory value, then heightens described initial memory value;
If described initial memory value higher than described minimum real-time free memory value, then turns down described initial memory value.
Correspondingly, the embodiment of the present invention additionally provides a kind of terminal equipment, comprising:
Acquisition module, for obtaining the target memory value of terminal equipment under current application scene, and finds out the target audio play parameter corresponding with described target memory value from preset memory threshold table;
Transcoding module, carries out transcoding process for the described target audio play parameter found out according to described acquisition module to the music file under described application scenarios, obtains target sound music file;
Load-on module, is loaded in described application scenarios for the described target sound music file described transcoding module obtained.
Optionally, described terminal equipment also comprises:
Monitoring module, for the real-time free memory value that described terminal equipment under monitoring described application scenarios is all;
Screening module, filters out minimum real-time free memory value in all real-time values of monitoring from described monitoring module;
Information sending module, for described minimum real-time free memory value and described target audio play parameter are sent to server, upgrade with the memory value making described server corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value.
Optionally, described acquisition module comprises:
First request unit, for sending the parameter request of carrying the unit type of described terminal equipment and/or the scene information of described application scenarios to server;
First receiving element, respond for receiving described server the memory threshold table corresponding with described unit type and/or described application scenarios that described parameter request returns, described memory threshold table comprises at least one memory value and audio frequency play parameter corresponding to memory value described in each;
Parameter determination unit, for obtaining the target memory value of terminal equipment under current application scene, from the described memory threshold table that described first receiving element receives, find out the memory value mated with described target memory value, and from described memory threshold table, determine the target audio play parameter that the memory value of described coupling is corresponding.
Optionally, described acquisition module comprises:
Second request unit, for obtaining the target memory value of terminal equipment under current application scene, the parameter request of carrying the unit type of described terminal equipment, the scene information of described application scenarios and described target memory value is sent to server, to make described server find out the memory value mated with described target memory value from described unit type and memory threshold table corresponding to described application scenarios, and from described memory threshold table, determine the target audio play parameter that the memory value of described coupling is corresponding;
Second receiving element, responds for receiving described server the target audio play parameter that described parameter request returns.
Optionally, described information sending module specifically for:
The scene information of described unit type, described application scenarios, described minimum real-time free memory value and described target audio play parameter are sent to server, upgrade with the memory value making described server corresponding to target audio play parameter described in described unit type and memory threshold table corresponding to described application scenarios according to described minimum real-time free memory value.
Optionally, described target audio play parameter comprises target sampling rate and target bit rate; Described transcoding module comprises:
Information acquisition unit, for obtaining current sample rate and the current bit rate of the music file under described application scenarios;
File generating unit, for the described current sample rate that obtains with described information acquisition unit and described current bit rate for foundation, carries out transcoding process to described music file, generates described target sampling rate and target sound music file corresponding to described target bit rate.
Correspondingly, the embodiment of the present invention additionally provides a kind of server, comprising:
Information receiving module, the minimum real-time free memory value sent for receiving terminal apparatus and target audio play parameter, described minimum real-time free memory value is memory value minimum in the real-time free memory value all under current application scene of described terminal equipment;
Update module, upgrade for the memory value corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value, wherein, described memory threshold table comprises at least one memory value and audio frequency play parameter corresponding to memory value described in each.
Optionally, described server also comprises:
Data obtaining module, for the scene information of the unit type and/or described application scenarios that obtain described terminal equipment;
Described update module comprises:
Search unit, for finding out described unit type and/or memory threshold table corresponding to described application scenarios from least one the memory threshold table stored, and find out the audio frequency play parameter of mating with described target audio play parameter in described memory threshold table;
Information updating unit, upgrades for the memory value corresponding to the audio frequency play parameter of mating described in described memory threshold table according to described minimum real-time free memory value.
Optionally, described information updating unit specifically for:
Using memory value corresponding for the audio frequency play parameter of mating described in described memory threshold table as initial memory value, and described initial memory value and described minimum real-time free memory value are compared;
If described initial memory value lower than described minimum real-time free memory value, then heightens described initial memory value;
If described initial memory value higher than described minimum real-time free memory value, then turns down described initial memory value.
Implement the embodiment of the present invention, there is following beneficial effect:
The embodiment of the present invention is by the target memory value of terminal equipment under acquisition current application scene, and the audio frequency play parameter corresponding with this target memory value is found out from preset memory threshold table, thus according to the audio frequency play parameter that this finds out, transcoding process is carried out to the music file under this application scenarios, generate a target sound music file corresponding with this audio frequency play parameter, play so that this target sound music file is loaded in this application scenarios, make it possible to carry out corresponding music file loading processing for the terminal of different internal memory, flexibility is higher, and without the need to repacking issue, make the time saving associated user such as application designer and terminal use etc.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of music file loading method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of music file loading method that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of another music file loading method that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of terminal equipment that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the another kind of terminal equipment that the embodiment of the present invention provides;
Fig. 6 is the structural representation of a kind of server that the embodiment of the present invention provides;
Fig. 7 is the structural representation of a kind of music file loading system that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of music file loading method, relevant device and system, the music file to the terminal of different internal memory loaded targets association neatly can be realized.Below be described in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of music file loading method that the embodiment of the present invention provides, and concrete, the described method of the embodiment of the present invention can comprise the following steps:
S101: the target memory value of terminal equipment under acquisition current application scene, and the target audio play parameter corresponding with described target memory value is found out from preset memory threshold table.
It should be noted that, the described method of the embodiment of the present invention can be applied particularly to smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, mobile internet device (MobileInternetDevices, be called for short " MID "), in the terminal equipment (or being called for short terminal) such as personal digital assistant (PersonalDigitalAssistant, be called for short " PDA ").
In specific embodiment, the memory threshold table of the audio frequency play parameter obtaining comprising multiple memory value and correspondence thereof can be pre-set, the corresponding one group of audio frequency play parameter of each memory value (can be the corresponding one group of audio frequency play parameter of multiple memory value) in this memory threshold table.Wherein, often organize audio frequency play parameter and can comprise the parameter such as sample rate, bit rate.This memory threshold table can be stored in this terminal equipment or server, and the embodiment of the present invention does not limit.
Concrete, when terminal operating is a certain need load music file application as game application time, the target memory value of this terminal under current application scene can be obtained, and the memory value mated with this target memory value is found out from this preset memory threshold table, and from this memory threshold table, determine the audio frequency play parameter that this memory value is corresponding and target audio play parameter, to process according to the music file of this target audio play parameter to current application scene.Wherein, this target memory value can refer to the current committed memory value of terminal, or the free memory value that terminal is current.The memory value mated with this target memory value can be memory value identical with this target memory value in this memory threshold table, or, it can also be memory value minimum with the absolute value of the difference of this target memory value in this memory threshold table, or, it can also be the memory value interval (this target memory value is in this memory value interval range, the corresponding one group of audio frequency play parameter of all memory values in this memory value interval) in this memory threshold table.
S102: carry out transcoding process to the music file under described application scenarios according to described target audio play parameter, obtains target sound music file.
Further, can be in advance application corresponding to current application scene as game application configuration multi-media transcoding framework, i.e. integrated multimedia transcoding framework in game application.Wherein, this multi-media transcoding framework can include but not limited to FFMPEG, GStreamer etc.According to described target audio play parameter, transcoding process is carried out to the music file under described application scenarios then, obtain target sound music file, can be specially: receive the transcoding order corresponding with described multi-media transcoding framework; Respond described transcoding order, and according to described target audio play parameter, transcoding process is carried out to the music file under described application scenarios, obtain target sound music file.
Concrete, namely this target audio play parameter determined can be used as the play parameter of the music file needing conversion, to the music file (i.e. original music file) under current application scene, as the original music file under application scenarios of playing carries out transcoding process, obtain the target sound music file corresponding with this target play parameter, and can not original music file be modified, thus without the need to repacking issue application version, provide cost savings.
S103: described target sound music file is loaded in described application scenarios.
After being converted to target sound music file, this target sound music file can being loaded into current application scene as play in game application scenarios, running this game application.
Further, after this target sound music file is loaded into current application scene, under also can monitoring described application scenarios, as the real-time free memory value that under application scenarios of playing, namely described in game play, terminal equipment is all, and minimum real-time free memory value is filtered out from all real-time values monitored, to upgrade memory value corresponding with described target audio play parameter in this memory threshold table according to described minimum real-time free memory value, thus promote the accuracy of the corresponding relation of memory value and audio frequency play parameter.
In embodiments of the present invention, by the target memory value of terminal equipment under acquisition current application scene, and the audio frequency play parameter corresponding with this target memory value is found out from preset memory threshold table, thus according to the audio frequency play parameter that this finds out, transcoding process is carried out to the music file under this application scenarios, generate a target sound music file corresponding with this audio frequency play parameter, play so that this target sound music file is loaded in this application scenarios, make it possible to carry out corresponding music file loading processing for the terminal of different internal memory, flexibility is higher, and without the need to repacking issue, make the time saving associated user such as application designer and terminal use etc.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the another kind of music file loading method that the embodiment of the present invention provides, the described method of the embodiment of the present invention can be applied particularly in terminal equipment, concrete, and the described method of the embodiment of the present invention can comprise the following steps:
S201: the target memory value of terminal equipment under acquisition current application scene, and the target audio play parameter corresponding with described target memory value is found out from preset memory threshold table, described target audio play parameter comprises target sampling rate and target bit rate.
Optionally, describedly from preset memory threshold table, find out the target audio play parameter corresponding with described target memory value, can be specially: send the parameter request of carrying the unit type of described terminal equipment and/or the scene information of described application scenarios to server; Receive described server and respond the memory threshold table corresponding with described unit type and/or described application scenarios that described parameter request returns, described memory threshold table comprises at least one memory value and audio frequency play parameter corresponding to memory value described in each; From described memory threshold table, find out the memory value mated with described target memory value, and from described memory threshold table, determine the target audio play parameter that the memory value of described coupling is corresponding.
Optionally, describedly from preset memory threshold table, find out the target audio play parameter corresponding with described target memory value, can also be specially: send the parameter request of carrying the unit type of described terminal equipment, the scene information of described application scenarios and described target memory value to server, to make described server find out the memory value mated with described target memory value from described unit type and memory threshold table corresponding to described application scenarios, and from described memory threshold table, determine the target audio play parameter that the memory value of described coupling is corresponding; Receive described server and respond the target audio play parameter that described parameter request returns.
That is, in specific embodiment, the sample rate of the music file that can use due to different terminal equipment is different with bit rate, therefore, can be the memory threshold table that this terminal preset obtains including multiple memory value and the sample rate corresponding with each memory value and bit rate according to the unit type of different terminal equipment.Further, this memory threshold table can also be obtained according to current application scene is preset, such as combining game application scenarios, web page background music application scene or other application scenarioss are preset obtains different memory threshold tables, or difference game being classified (as classified according to game committed memory size), presetly obtaining different memory threshold tables.Wherein, the memory value in this memory threshold table can the free memory value of concrete counterpart terminal equipment, and this memory threshold table can presetly in this terminal equipment or server obtain, and the embodiment of the present invention is to be described at preset this memory threshold table that obtains of server.
Concrete, store the terminal equipment of various unit type and/or memory threshold table corresponding to application scenarios in server.Server is after the memory threshold table request receiving the Portable device model that terminal equipment sends, the memory threshold table of the memory threshold table corresponding with this unit type as the terminal equipment of this request can be found out according to this unit type and/or application scenarios, and send to this terminal equipment.Or, terminal is also by server transmitting apparatus model and current target memory value, current application scene and target memory value, or any one combination parameter in unit type, current application scene and target memory value these three kinds combination, the memory threshold table corresponding with this unit type and/or application scenarios is got to make server, and from this memory threshold table, find out the memory value mated with this target memory value, and from this memory threshold table, determine that the audio frequency play parameter that this memory value is corresponding and target audio play parameter return to terminal equipment.Such as, this memory threshold table can be as shown in table 1 below:
Table 1
Memory value Sample rate Bit rate
More than 50M 22050Hz 192kbps
41-50M 22050Hz 128kbps
36-40M 22050Hz 64kbps
31-35M 11025Hz 128kbps
26-30M 11025Hz 64kbps
20-25M 8000Hz 128kbps
Below 20M 8000Hz 64kbps
Wherein, this memory threshold table comprises multiple memory value and the sample rate corresponding with each memory value and bit rate, and is specifically divided by this memory value in order to multiple memory value is interval, and the sample rate that the memory value of each interval range is corresponding is identical with bit rate.
Concrete, the memory value mated with this target memory value can be memory value identical with this target memory value in this memory threshold table, or, it can also be memory value minimum with the absolute value of the difference of this target memory value in this memory threshold table, or, it can also be the memory value interval (this target memory value is in this memory value interval range, the corresponding one group of audio frequency play parameter of all memory values in this memory value interval) in this memory threshold table.For table 1, the memory value then mated with this target memory value is then a memory value interval, such as, target memory value such as the current free memory value of terminal equipment is 30M, the memory value then mated with this target memory value in memory threshold table is that this memory value of 26-30M is interval, and the target sampling rate of its correspondence is 11025Hz, target bit rate is 64kbps.
S202: the current sample rate and the current bit rate that obtain the music file under described application scenarios.
S203: with described current sample rate and described current bit rate for foundation, carry out transcoding process to described music file, generates described target sampling rate and target sound music file corresponding to described target bit rate.
S204: described target sound music file is loaded in described application scenarios.
In specific embodiment, the current sample rate of the music file under terminal equipment also needs to obtain current application scene as under game application scenarios and current bit rate, the sample rate of namely original game music file and bit rate.After acquiring this current sample rate, current bit rate, target sampling rate and target bit rate, transcoding process can be carried out to this game music file, generate this target sampling rate and target sound music file corresponding to target bit rate, and be loaded in this game application scenarios by this target sound music file, and run this game.That is, the embodiment of the present invention is the loading processing of carrying out music file by generating a music file in addition, and without the need to modifying to original game music file, namely without the need to repacking issue game version.
Concrete, can be that application such as the game application that this application scenarios is corresponding configures multi-media transcoding framework, i.e. integrated multimedia transcoding framework in game application in advance.Wherein, this multi-media transcoding framework can include but not limited to FFMPEG, GStreamer etc.Then terminal equipment can receive the transcoding order corresponding with described multi-media transcoding framework, for FFMPEG, then terminal equipment can receive the order of FFMPEG transcoding, and respond this FFMPEG transcoding order, obtain sample rate and the bit rate of original game music file, thus the music file be associated to this game and original game music file carry out transcoding process, generate this target sampling rate and target sound music file corresponding to described target bit rate.For example, this FFMPEG transcoding order can be as follows:
ffmpeg-iinput_music-ab64-ar22050output_music.mp3
Wherein, i represents the path of music file and the target sound music file of specifying needs to change; Ar is sample rate, and ab is bit rate.If be set to stereo ac, need arrange with the half of bit rate, such as 192kbps is just set to 96kbps.
S205: the real-time free memory value that under monitoring described application scenarios, described terminal equipment is all.
S206: filter out minimum real-time free memory value from all real-time values monitored.
S207: described minimum real-time free memory value and described target sampling rate and described target bit rate are sent to server, upgrade with the memory value making described server corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value.
Concrete, when entering first interface, after game startup completes, the free memory of a thread to terminal equipment can be opened monitor, monitor all real-time free memory values (specifically by all real-time occupation value of monitor terminal, and obtaining real-time free memory value corresponding to this real-time occupation value according to tag memory calculation of total) in this game play.When after game over, therefrom can filter out minimum real-time free memory value and report server.Specifically can report server again when upper once startup game, this content reported comprises this minimum real-time free memory value, target sampling rate and target bit rate, upgrades according to this minimum real-time free memory value to make described server to this target sampling rate in internal memory threshold value table and target memory value corresponding to target bit rate.Further, if this memory threshold table is according to the unit type of terminal equipment and/or application scenarios is preset obtains, also further the scene information of the unit type of this terminal equipment and/or current application scene can be sent to server, to make server, this unit type and/or memory threshold table corresponding to application scenarios be upgraded.Wherein, this renewal rewards theory can be that server carries out automatically according to preset rules, or manually carried out according to the content that terminal equipment reports by server side technical staff.
In embodiments of the present invention, by the target memory value of terminal equipment under acquisition current application scene, and the sample rate corresponding with this target memory value and bit rate is found out from this memory threshold table, thus carry out transcoding process according to the current sample rate of this sample rate found out and bit rate and original game music file and the current bit rate game music file original to this, generate a game music file corresponding with the sample rate that this finds out and bit rate and target sound music file, thus this target sound music file is loaded in going game application scenarios plays, and running game.The embodiment of the present invention can carry out corresponding game music files loading process for the terminal of different internal memory, flexibility is higher, and without the need to modifying to original game music file, without the need to repacking issue game version, make the time saving the associated user such as game programmer and terminal use, and the impact reduced game life cycle, save development of games cost.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of another music file loading method that the embodiment of the present invention provides, and the described method of the embodiment of the present invention can be applied particularly in server, concrete, and the described method of the embodiment of the present invention can comprise the following steps:
S301: the minimum real-time free memory value that receiving terminal apparatus sends and target audio play parameter, described minimum real-time free memory value is memory value minimum in the real-time free memory value all under current application scene of described terminal equipment.
In specific embodiment, the target audio play parameter that terminal equipment is being determined according to the target memory value under current application scene carries out transcoding to the original music file under this application scenarios, generate target sound music file, and after being loaded on current application scene, running application corresponding to this application scenarios as in game application process, real-time free memory values all under can monitoring current application scene, and therefrom filter out minimum memory value and minimum real-time free memory value sends to server.In addition, also this target audio play parameter can be sent to server.Server receives memory value and the audio frequency play parameter of the transmission of this terminal equipment.
S302: the memory value corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value upgrades.
Wherein, described memory threshold table comprises at least one memory value and audio frequency play parameter corresponding to memory value described in each.
Server is after receiving the memory value and audio frequency play parameter and target audio play parameter that this terminal equipment sends, the audio frequency play parameter of mating with this target audio play parameter can be found out from preset memory threshold table, and from this memory threshold table, determine the memory value that the audio frequency play parameter of this coupling is corresponding, thus according to the minimum real-time free memory value of this reception, the memory value that this is determined is upgraded, make the accuracy improving audio frequency play parameter and memory value corresponding relation.
Further, this memory threshold table can also be according to the unit type of terminal equipment and/or application scenarios is preset obtains.Then server also can obtain the unit type of described terminal equipment and/or the scene information of described application scenarios, and the unit type of this terminal equipment and/or the scene information of described application scenarios can be specifically that terminal sends to server when sending this minimum real-time free memory value and this target audio play parameter to server.Further, the described memory value corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value upgrades, can be specially: from least one the memory threshold table stored, find out described unit type and/or memory threshold table corresponding to described application scenarios, and find out the audio frequency play parameter of mating with described target audio play parameter in described memory threshold table; The memory value corresponding to the audio frequency play parameter of mating described in described memory threshold table according to described minimum real-time free memory value upgrades.
Optionally, the described memory value corresponding to the audio frequency play parameter of mating described in described memory threshold table according to described minimum real-time free memory value upgrades, can be specially: using memory value corresponding for the audio frequency play parameter of mating described in described memory threshold table as initial memory value, and described initial memory value and described minimum real-time free memory value are compared; If described initial memory value lower than described minimum real-time free memory value, then heightens described initial memory value; If described initial memory value higher than described minimum real-time free memory value, then turns down described initial memory value.That is, server the memory value sent according to the terminal equipment received and minimum real-time free memory value correspondence memory threshold value table as the unit type of terminal equipment and/or as described in this target audio play parameter is corresponding in memory threshold table corresponding to application scenarios memory value (initial memory value) upgrade time, the median of this initial memory value and this minimum real-time free memory value can be determined according to the algorithm preset, and this median and this target audio play parameter are carried out corresponding stored, to realize the adjustment to this memory value.
In embodiments of the present invention, server can when receiving memory value and the audio frequency play parameter of terminal equipment transmission, the memory value corresponding according to the audio frequency play parameter of memory value to this reception in preset memory threshold table of this reception upgrades, thus improve the accuracy of the corresponding relation of this memory threshold table sound intermediate frequency play parameter and memory value further, make follow-up carry out music file load time the free memory value current according to terminal can determine one group of audio frequency play parameter of more mating with this memory value, to realize the music file loading processing to the terminal of different internal memory.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of terminal equipment that the embodiment of the present invention provides, concrete, and the described terminal equipment of the embodiment of the present invention can comprise acquisition module 11, transcoding module 12 and load-on module 13.Wherein,
Described acquisition module 11, for obtaining the target memory value of terminal equipment under current application scene, and finds out the target audio play parameter corresponding with described target memory value from preset memory threshold table.
It should be noted that, the described terminal equipment (abbreviation terminal) of the embodiment of the present invention can be specially smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, mobile internet device (MobileInternetDevices, be called for short " MID "), the terminal such as personal digital assistant (PersonalDigitalAssistant, be called for short " PDA ").
In specific embodiment, the memory threshold table of the audio frequency play parameter comprising multiple memory value and correspondence thereof is previously provided with, the corresponding one group of audio frequency play parameter of each memory value (can be the corresponding one group of audio frequency play parameter of multiple memory value) in this memory threshold table in terminal equipment or server corresponding to this terminal equipment.Wherein, often organize audio frequency play parameter and can comprise the parameter such as sample rate, bit rate.
Concrete, when acquisition module 11 detects that a certain application needing to load music file of terminal operating is applied as game, the target memory value of this terminal under current application scene can be acquired, and the memory value mated with this target memory value is found out from this preset memory threshold table, and from this memory threshold table, determine the audio frequency play parameter that this memory value is corresponding and target audio play parameter, to process according to the music file of this target audio play parameter to current application scene.Wherein, this target memory value can refer to the current committed memory value of terminal, or the free memory value that terminal is current.The memory value mated with this target memory value can be memory value identical with this target memory value in this memory threshold table, or, it can also be memory value minimum with the absolute value of the difference of this target memory value in this memory threshold table, or, it can also be the memory value interval (this target memory value is in this memory value interval range, the corresponding one group of audio frequency play parameter of all memory values in this memory value interval) in this memory threshold table.
Described transcoding module 12, carries out transcoding process for the described target audio play parameter found out according to described acquisition module 11 to the music file under described application scenarios, obtains target sound music file.
Concrete, namely the target audio play parameter that this acquisition module 11 is determined can be used as the play parameter of the music file needing conversion, transcoding module 12 can according to this parameter to the music file (original music file) under current application scene, as the original music file under application scenarios of playing carries out transcoding process, obtain this target sound music file, and can not original music file be modified, thus without the need to repacking issue application version, provide cost savings.
Described load-on module 13, is loaded in described application scenarios for the described target sound music file described transcoding module 12 obtained.
After transcoding module 12 is converted to target sound music file, namely by load-on module 13, this target sound music file is loaded into current application scene as play in game application scenarios, and runs this game application.
In embodiments of the present invention, by the target memory value of terminal equipment under acquisition current application scene, and the audio frequency play parameter corresponding with this target memory value is found out from preset memory threshold table, thus according to the audio frequency play parameter that this finds out, transcoding process is carried out to the music file under this application scenarios, generate a target sound music file corresponding with this audio frequency play parameter, play so that this target sound music file is loaded in this application scenarios, make it possible to carry out corresponding music file loading processing for the terminal of different internal memory, flexibility is higher, and without the need to repacking issue, make the time saving associated user such as application designer and terminal use etc.
Further, refer to Fig. 5, Fig. 5 is the structural representation of the another kind of terminal equipment that the embodiment of the present invention provides, concrete, and the described terminal equipment of the embodiment of the present invention can comprise the acquisition module 11 of above-mentioned terminal equipment, transcoding module 12 and load-on module 13.Further, in embodiments of the present invention, described terminal equipment also can comprise:
Monitoring module 14, for the real-time free memory value that described terminal equipment under monitoring described application scenarios is all;
Screening module 15, filters out minimum real-time free memory value in all real-time values of monitoring from described monitoring module 14;
Information sending module 16, for described minimum real-time free memory value and described target audio play parameter are sent to server, upgrade with the memory value making described server corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value.
In specific embodiment, this target sound music file is loaded into current application scene as game application scenarios after, namely by monitoring module 14, the real-time free memory value in this game play is monitored.Concrete, when entering first interface, after game startup completes, free memory by monitoring module 14 pairs of terminal equipments is monitored, monitor all real-time free memory values (specifically by all real-time occupation value of monitor terminal, and obtaining real-time free memory value corresponding to this real-time occupation value according to tag memory calculation of total) in this game play.When after game over, screening module 15 can filter out minimum real-time free memory value from the memory value that this monitoring module 14 monitors, and reports server by information sending module 16, specifically can report server again when upper once startup game.This content reported comprises this minimum real-time free memory value, target audio play parameter, upgrade with the memory value making described server corresponding to this target audio play parameter in internal memory threshold value table according to this minimum real-time free memory value, thus promote the accuracy of the corresponding relation of memory value and audio frequency play parameter.Wherein, this target audio play parameter can specifically comprise target sampling rate and target bit rate.
Further alternative, in embodiments of the present invention, described target audio play parameter comprises target sampling rate and target bit rate; Then described transcoding module 12 specifically can comprise (not shown):
Information acquisition unit 121, for obtaining current sample rate and the current bit rate of the music file under described application scenarios;
File generating unit 122, for the described current sample rate that obtains with described information acquisition unit 121 and described current bit rate for foundation, transcoding process is carried out to described music file, generates described target sampling rate and target sound music file corresponding to described target bit rate.
In specific embodiment, terminal equipment also needs to obtain current application scene as the current sample rate of the music file under game application scenarios and current bit rate, the sample rate of namely original game music file and bit rate by information acquisition unit 121.After acquiring this current sample rate, current bit rate, target sampling rate and target bit rate, file generating unit 122 can carry out transcoding process by the game music file original to this, generates this target sampling rate and target sound music file corresponding to target bit rate.
Further, in embodiments of the present invention, described terminal equipment also comprises (not shown):
Configuration module 17, for being described target application configuration multi-media transcoding framework;
Described transcoding module 12 can be specifically for:
Receive the transcoding order corresponding with described multi-media transcoding framework; Respond described transcoding order, and according to described target audio play parameter, transcoding process is carried out to the music file under described application scenarios, obtain target sound music file.
Further, by configuration module 17 be in advance application under this application scenarios as game application configuration multi-media transcoding framework, i.e. integrated multimedia transcoding framework in game application.Wherein, this multi-media transcoding framework can include but not limited to FFMPEG, GStreamer etc.Then transcoding module 12 can when receiving the transcoding order corresponding with this multi-media transcoding framework as the order of FFMPEG transcoding, obtain sample rate and the bit rate of music file under this game application scenarios and original game music file, thus the game music file original to this carries out transcoding process, generate this target sampling rate and target sound music file corresponding to described target bit rate, and be loaded in game by this target sound music file, and run this game application.That is, the embodiment of the present invention carries out the loading processing of music file by generating a music file in addition, and without the need to modifying to original game music file, namely without the need to repacking issue game version.
Optionally, described acquisition module 11 specifically can comprise (not shown):
First request unit 111, for sending the parameter request of carrying the unit type of described terminal equipment and/or the scene information of described application scenarios to server;
First receiving element 112, respond for receiving described server the memory threshold table corresponding with described unit type and/or described application scenarios that described parameter request returns, described memory threshold table comprises at least one memory value and audio frequency play parameter corresponding to memory value described in each;
Parameter determination unit 113, for obtaining the target memory value of terminal equipment under current application scene, from the described memory threshold table that described first receiving element receives, find out the memory value mated with described target memory value, and from described memory threshold table, determine the target audio play parameter that the memory value of described coupling is corresponding.
Wherein, this target memory value can refer to the current committed memory value of terminal, or the free memory value that terminal is current, and the embodiment of the present invention is described for this free memory value for this target memory value.
Optionally, described acquisition module 11 also can comprise (not shown):
Second request unit 114, for obtaining the target memory value of terminal equipment under current application scene, the parameter request of carrying the unit type of described terminal equipment, the scene information of described application scenarios and described target memory value is sent to server, to make described server find out the memory value mated with described target memory value from described unit type and memory threshold table corresponding to described application scenarios, and from described memory threshold table, determine the target audio play parameter that the memory value of described coupling is corresponding;
Second receiving element 115, responds for receiving described server the target audio play parameter that described parameter request returns.
Concrete, store the terminal equipment of various unit type and/or memory threshold table corresponding to application scenarios in server.Such as, the sample rate of the music file that can use due to different terminal equipment is different with bit rate, then can obtain the memory threshold table including multiple memory value and the sample rate corresponding with each memory value and bit rate according to the unit type of different terminal equipment server is preset.The then memory threshold table request of the scene information of the Portable device model that sends to server by the first request unit 111 of terminal equipment and/or application scenarios, server can find out the memory threshold table of the memory threshold table corresponding with this unit type as the terminal equipment of this request according to the scene information of this unit type and/or application scenarios, and send to this terminal equipment, terminal equipment receives this memory threshold table by the first receiving element 112, parameter determination unit 113 can search the target audio play parameter corresponding with current goal memory value from this memory threshold table.Or, terminal also by the second request unit 114 to server transmitting apparatus model and current target memory value, current application scene and target memory value, or unit type, any one combination parameter during current application scene and target memory value these three kinds combine, server is made to get the memory threshold table corresponding with this unit type and/or application scenarios, and from this memory threshold table, find out the memory value mated with this target memory value, and from this memory threshold table, determine the audio frequency play parameter that this memory value is corresponding and target audio play parameter, thus this target audio play parameter is sent to terminal equipment, terminal equipment receives by the second receiving element 115 the audio frequency play parameter that this server returns.
Further, described information sending module 16 can be specifically for:
The scene information of described unit type, described application scenarios, described minimum real-time free memory value and described target audio play parameter are sent to server, upgrade with the memory value making described server corresponding to target audio play parameter described in described unit type and memory threshold table corresponding to described application scenarios according to described minimum real-time free memory value.
Further, if this memory threshold table is according to the unit type of terminal equipment and/or application scenarios is preset obtains, also further the scene information of the unit type of this terminal equipment and/or current application scene is sent to server by information sending module 16, to make server, this target sampling rate in this unit type and/or memory threshold table corresponding to application scenarios and memory value corresponding to target bit rate are upgraded, thus promote the accuracy of the corresponding relation of memory value and audio frequency play parameter further, make follow-up carry out music file load time the free memory value current according to terminal can determine one group of audio frequency play parameter of more mating with this memory value.
In embodiments of the present invention, by the target memory value of terminal equipment under acquisition current application scene, and the sample rate corresponding with this target memory value and bit rate is found out from this memory threshold table, thus carry out transcoding process according to the current sample rate of this sample rate found out and bit rate and original game music file and the current bit rate game music file original to this, generate a game music file corresponding with the sample rate that this finds out and bit rate and target sound music file, thus this target sound music file is loaded in going game application scenarios plays, and running game.The embodiment of the present invention can carry out corresponding game music files loading process for the terminal of different internal memory, flexibility is higher, and without the need to modifying to original game music file, without the need to repacking issue game version, make the time saving the associated user such as game programmer and terminal use, and the impact reduced game life cycle, save development of games cost.
Refer to Fig. 6, Fig. 6 is the structural representation of a kind of server that the embodiment of the present invention provides, concrete, and the described server of the embodiment of the present invention can comprise information receiving module 21 and update module 22.Wherein,
Shown information receiving module 21, the minimum real-time free memory value sent for receiving terminal apparatus and target audio play parameter, described minimum real-time free memory value is memory value minimum in the real-time free memory value all under current application scene of described terminal equipment;
Described update module 22, upgrades for the memory value corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value.
Wherein, described memory threshold table comprises at least one memory value and audio frequency play parameter corresponding to memory value described in each.
In specific embodiment, after information receiving module 21 receives the memory value and audio frequency play parameter and target audio play parameter that this terminal equipment sends, update module 22 can find out the audio frequency play parameter of mating with this target audio play parameter from preset memory threshold table, and from this memory threshold table, determine the memory value that the audio frequency play parameter of this coupling is corresponding, thus according to the minimum real-time free memory value of this reception, the memory value that this is determined is upgraded, thus promote the accuracy of this memory threshold table sound intermediate frequency play parameter and memory value corresponding relation.
Further, in an alternate embodiment of the invention, described server also can comprise (not shown):
Data obtaining module 23, for the scene information of the unit type and/or described application scenarios that obtain described terminal equipment;
Described update module 22 specifically can comprise (not shown):
Search unit 221, for finding out described unit type and/or memory threshold table corresponding to described application scenarios from least one the memory threshold table stored, and find out the audio frequency play parameter of mating with described target audio play parameter in described memory threshold table;
Information updating unit 222, upgrades for the memory value corresponding to the audio frequency play parameter of mating described in described memory threshold table according to described minimum real-time free memory value.
Further, described information updating unit 222 can be specifically for:
Using memory value corresponding for the audio frequency play parameter of mating described in described memory threshold table as initial memory value, and described initial memory value and described minimum real-time free memory value are compared; If described initial memory value lower than described minimum real-time free memory value, then heightens described initial memory value; If described initial memory value higher than described minimum real-time free memory value, then turns down described initial memory value.
That is, server the memory value sent according to the terminal equipment received and minimum real-time free memory value correspondence memory threshold value table as the unit type of terminal equipment and/or as described in this target audio play parameter is corresponding in memory threshold table corresponding to application scenarios memory value (initial memory value) upgrade time, the median of this initial memory value and this minimum real-time free memory value can be determined according to the algorithm preset, and this median and this target audio play parameter are carried out corresponding stored, to realize the adjustment to this memory value.
In embodiments of the present invention, server can when receiving memory value and the audio frequency play parameter of terminal equipment transmission, the memory value corresponding according to the audio frequency play parameter of memory value to this reception in preset memory threshold table of this reception upgrades, thus improve the accuracy of the corresponding relation of audio frequency play parameter and memory value further, make follow-up carry out music file load time the free memory value current according to terminal can determine one group of audio frequency play parameter of more mating with this memory value, to realize the music file loading processing to the terminal of different internal memory.
Further, referring to Fig. 7, is the structural representation of a kind of music file loading system that the embodiment of the present invention provides, and concrete, as shown in Figure 7, the described system of the embodiment of the present invention comprises: terminal equipment 10 and server 20.Wherein,
Described terminal equipment 10, for obtaining the target memory value of terminal equipment under current application scene, and finds out the target audio play parameter corresponding with described target memory value from preset memory threshold table; According to described target audio play parameter, transcoding process is carried out to the music file under described application scenarios, obtain target sound music file; The real-time free memory value that under monitoring described application scenarios, described terminal equipment is all, and minimum real-time free memory value is filtered out from all real-time values monitored; Described minimum real-time free memory value and described target audio play parameter are sent to server 20;
Described server 20, the minimum real-time free memory value sent for receiving terminal apparatus 10 and target audio play parameter, described minimum real-time free memory value is memory value minimum in the real-time free memory value all under current application scene of described terminal equipment; The memory value corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value upgrades.
Wherein, described memory threshold table comprises at least one memory value and audio frequency play parameter corresponding to memory value described in each, and described target memory value can be specially the current free memory value of terminal equipment.
Concrete, the mode that should find out the target audio play parameter corresponding with described target memory value from preset memory threshold table can be that terminal equipment 10 asks memory threshold table to server 20, thus from this memory threshold table, find out target audio play parameter corresponding to this target memory value, or can be the target audio play parameter of directly asking this target memory value corresponding to server, etc., specifically can refer to the associated description of above-described embodiment, repeat no more herein.
Further, this memory threshold table can also be according to the unit type of terminal equipment and/or application scenarios is preset obtains.If this memory threshold table is according to the unit type of terminal equipment and/or application scenarios is preset obtains, then the scene information of the unit type of this terminal equipment and/or current application scene also can be sent to server 20 by terminal equipment 10 further, then server 20 can upgrade by the memory value corresponding to this target audio play parameter in this unit type and/or memory threshold table corresponding to application scenarios according to this minimum real-time free memory value.Thus promote the accuracy of the corresponding relation of memory value and audio frequency play parameter further, make follow-up carry out music file load time the free memory value current according to terminal can determine one group of audio frequency play parameter of more mating with this memory value, to realize the music file loading processing of the terminal to different internal memory.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In the description of this specification, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " specific embodiment " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this specification or example and different embodiment or example can carry out combining and combining by those skilled in the art.
Describe and can be understood in flow chart or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this specification, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasablely edit read-only memory (EPROM or flash memory), fiber device, and portable optic disk read-only memory (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanner to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer storage.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.

Claims (10)

1. a music file loading method, is characterized in that, comprising:
The target memory value of terminal equipment under acquisition current application scene, and the target audio play parameter corresponding with described target memory value is found out from preset memory threshold table;
According to described target audio play parameter, transcoding process is carried out to the music file under described application scenarios, obtain target sound music file;
Described target sound music file is loaded in described application scenarios.
2. method according to claim 1, is characterized in that, described described target sound music file is loaded in described application scenarios after, described method also comprises:
The real-time free memory value that under monitoring described application scenarios, described terminal equipment is all;
Minimum real-time free memory value is filtered out from all real-time values monitored;
Described minimum real-time free memory value and described target audio play parameter are sent to server, upgrade with the memory value making described server corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value.
3. method according to claim 2, is characterized in that, describedly from preset memory threshold table, finds out the target audio play parameter corresponding with described target memory value, comprising:
The parameter request of carrying the unit type of described terminal equipment and/or the scene information of described application scenarios is sent to server;
Receive described server and respond the memory threshold table corresponding with described unit type and/or described application scenarios that described parameter request returns, described memory threshold table comprises at least one memory value and audio frequency play parameter corresponding to memory value described in each;
From described memory threshold table, find out the memory value mated with described target memory value, and from described memory threshold table, determine the target audio play parameter that the memory value of described coupling is corresponding.
4. method according to claim 3, is characterized in that, described described minimum real-time free memory value and described target audio play parameter is sent to server, comprising:
The scene information of described unit type, described application scenarios, described minimum real-time free memory value and described target audio play parameter are sent to server, upgrade with the memory value making described server corresponding to target audio play parameter described in described unit type and memory threshold table corresponding to described application scenarios according to described minimum real-time free memory value.
5. a music file loading method, is characterized in that, comprising:
The minimum real-time free memory value that receiving terminal apparatus sends and target audio play parameter, described minimum real-time free memory value is memory value minimum in the real-time free memory value all under current application scene of described terminal equipment;
The memory value corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value upgrades, wherein, described memory threshold table comprises at least one memory value and audio frequency play parameter corresponding to memory value described in each.
6. a terminal equipment, is characterized in that, comprising:
Acquisition module, for obtaining the target memory value of terminal equipment under current application scene, and finds out the target audio play parameter corresponding with described target memory value from preset memory threshold table;
Transcoding module, carries out transcoding process for the described target audio play parameter found out according to described acquisition module to the music file under described application scenarios, obtains target sound music file;
Load-on module, is loaded in described application scenarios for the described target sound music file described transcoding module obtained.
7. terminal equipment according to claim 6, is characterized in that, described terminal equipment also comprises:
Monitoring module, for the real-time free memory value that described terminal equipment under monitoring described application scenarios is all;
Screening module, filters out minimum real-time free memory value in all real-time values of monitoring from described monitoring module;
Information sending module, for described minimum real-time free memory value and described target audio play parameter are sent to server, upgrade with the memory value making described server corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value.
8. terminal equipment according to claim 7, is characterized in that, described acquisition module comprises:
First request unit, for sending the parameter request of carrying the unit type of described terminal equipment and/or the scene information of described application scenarios to server;
First receiving element, respond for receiving described server the memory threshold table corresponding with described unit type and/or described application scenarios that described parameter request returns, described memory threshold table comprises at least one memory value and audio frequency play parameter corresponding to memory value described in each;
Parameter determination unit, for obtaining the target memory value of terminal equipment under current application scene, from the described memory threshold table that described first receiving element receives, find out the memory value mated with described target memory value, and from described memory threshold table, determine the target audio play parameter that the memory value of described coupling is corresponding.
9. terminal equipment according to claim 8, is characterized in that, described information sending module specifically for:
The scene information of described unit type, described application scenarios, described minimum real-time free memory value and described target audio play parameter are sent to server, upgrade with the memory value making described server corresponding to target audio play parameter described in described unit type and memory threshold table corresponding to described application scenarios according to described minimum real-time free memory value.
10. a server, is characterized in that, comprising:
Information receiving module, the minimum real-time free memory value sent for receiving terminal apparatus and target audio play parameter, described minimum real-time free memory value is memory value minimum in the real-time free memory value all under current application scene of described terminal equipment;
Update module, upgrade for the memory value corresponding to target audio play parameter described in preset memory threshold table according to described minimum real-time free memory value, wherein, described memory threshold table comprises at least one memory value and audio frequency play parameter corresponding to memory value described in each.
CN201510596114.1A 2015-09-17 2015-09-17 Music file loading method and related equipment Active CN105262797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510596114.1A CN105262797B (en) 2015-09-17 2015-09-17 Music file loading method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510596114.1A CN105262797B (en) 2015-09-17 2015-09-17 Music file loading method and related equipment

Publications (2)

Publication Number Publication Date
CN105262797A true CN105262797A (en) 2016-01-20
CN105262797B CN105262797B (en) 2019-03-15

Family

ID=55102301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510596114.1A Active CN105262797B (en) 2015-09-17 2015-09-17 Music file loading method and related equipment

Country Status (1)

Country Link
CN (1) CN105262797B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126176A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 A kind of audio collocation method and mobile terminal
WO2017173571A1 (en) * 2016-04-05 2017-10-12 张阳 Theater music control method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010148799A1 (en) * 2009-11-24 2010-12-29 中兴通讯股份有限公司 Image adapting method and server
CN102780728A (en) * 2011-05-13 2012-11-14 腾讯科技(深圳)有限公司 Media file transcoding and downloading method and client
WO2014015732A1 (en) * 2012-07-27 2014-01-30 中兴通讯股份有限公司 Method and system for generating terminal capability description information
CN103577663A (en) * 2012-07-18 2014-02-12 人人游戏网络科技发展(上海)有限公司 Information sending and displaying method and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010148799A1 (en) * 2009-11-24 2010-12-29 中兴通讯股份有限公司 Image adapting method and server
CN102780728A (en) * 2011-05-13 2012-11-14 腾讯科技(深圳)有限公司 Media file transcoding and downloading method and client
CN103577663A (en) * 2012-07-18 2014-02-12 人人游戏网络科技发展(上海)有限公司 Information sending and displaying method and device thereof
WO2014015732A1 (en) * 2012-07-27 2014-01-30 中兴通讯股份有限公司 Method and system for generating terminal capability description information

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017173571A1 (en) * 2016-04-05 2017-10-12 张阳 Theater music control method and system
CN106126176A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 A kind of audio collocation method and mobile terminal
CN106126176B (en) * 2016-06-16 2018-05-29 广东欧珀移动通信有限公司 A kind of audio collocation method and mobile terminal
US10359992B2 (en) 2016-06-16 2019-07-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Sound effect configuration method and related device
US10628118B2 (en) 2016-06-16 2020-04-21 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Sound effect configuration method and related device

Also Published As

Publication number Publication date
CN105262797B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN105335277A (en) Fault information processing method and device as well as terminal
CN104216740A (en) Application software management method and device and terminal
CN105573896A (en) Running reminding method and device for application program
CN103927607A (en) Data processing method and device
CN105355213A (en) Method and device for directional recording
WO2019128829A1 (en) Action execution method and apparatus, storage medium and electronic apparatus
CN110221944B (en) Method and system for self-testing by using audio equipment to be tested
CN105160030A (en) Method and device for transmitting media cache files on mobile terminal
CN105404617A (en) Remote desktop control method, controlled end and control system
CN105262797A (en) Music file loading method and related equipment
CN104461545A (en) Method and device of providing contents in mobile terminals to users
CN106649654A (en) Data updating method and device
CN103645921A (en) MCU software upgrading method and main equipment
CN103338258B (en) Conference audio equipment management and control method based on cloud technology
CN104219243A (en) Method and device for managing client function
CN105404537A (en) Application program unloading method and device
CN105957542B (en) A kind of audio file editing method and device
CN105630466A (en) Business control method and apparatus
CN107169045A (en) A kind of query word method for automatically completing and device based on temporal signatures
CN104268231B (en) A kind of file access method, device and Intelligent File System
CN116594958A (en) Graph dataset loading method, system, electronic device and medium
CN105656520A (en) Method and device for controlling bluetooth module of playing equipment and audio/video playing system
CN105810225B (en) Voice segment recombinates output method and device
CN104268093A (en) Memory allocation method and device
CN110570854B (en) Intelligent voice output method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant